Skip to content

Add subscribeTo method in order to track additional eventStreams #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
/dist
/src
/spec
/gulpfile.ls
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ Right now the library includes a single React mixin, `BaconMixin`.

`BaconMixin` provides a few different methods for your components:

### component.propsProperty(_[propName]_)
### component.streamProps(_[propName]_)

Returns a memoized `Bacon.Property` backed by the component's props, skipping duplicate values. When a `propName` is present, the values of the property are those of the given prop. If no `propName` is given, the property's values are the whole props objects of the component.

The properties returned are cleaned up with a `Bacon.End` when the component unmounts.

### component.stateProperty(_[stateName]_)
### component.streamState(_[stateName]_)

Like `propsProperty(propName)`, but for state values.
Like `streamProps(propName)`, but for state values.

### component.eventStream(functionName)

Expand Down
10 changes: 10 additions & 0 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/maps/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/maps/mixin.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/maps/resolver.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

141 changes: 141 additions & 0 deletions dist/mixin.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

106 changes: 0 additions & 106 deletions dist/react-bacon.js

This file was deleted.

2 changes: 2 additions & 0 deletions dist/resolver.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

39 changes: 0 additions & 39 deletions gruntfile.js

This file was deleted.

11 changes: 11 additions & 0 deletions gulpfile.ls
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
gulp = require 'gulp'
gutil = require 'gulp-util'
livescript = require 'gulp-livescript'
sourcemaps = require 'gulp-sourcemaps'

gulp.task 'default', ->
gulp.src './src/*.ls'
.pipe sourcemaps.init()
.pipe livescript bare: true .on('error', gutil.log)
.pipe sourcemaps.write('./maps')
.pipe gulp.dest('./dist')
Loading