├── .npmignore ├── .gitignore ├── package.json ├── gruntfile.js ├── LICENSE ├── README.md ├── spec └── react-bacon_spec.js ├── src └── react-bacon.js └── dist └── react-bacon.js /.npmignore: -------------------------------------------------------------------------------- 1 | /dist 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | tmp 3 | 4 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "react-bacon", 3 | "version": "0.0.4", 4 | "description": "A little module for using React with Bacon.js", 5 | "main": "src/react-bacon.js", 6 | "repository": { 7 | "type": "git", 8 | "url": "https://github.com/jamesmacaulay/react-bacon" 9 | }, 10 | "author": "James MacAulay", 11 | "license": "MIT", 12 | "bugs": { 13 | "url": "https://github.com/jamesmacaulay/react-bacon/issues" 14 | }, 15 | "homepage": "https://github.com/jamesmacaulay/react-bacon", 16 | "devDependencies": { 17 | "react": "~0.10.0", 18 | "grunt": "~0.4.4", 19 | "grunt-contrib-jasmine": "~0.6.3", 20 | "browserify": "~3.44.2", 21 | "grunt-browserify": "~2.0.8", 22 | "reactify": "~0.13.1", 23 | "browserify-shim": "~3.4.1" 24 | }, 25 | "dependencies": { 26 | "baconjs": "~0.7.10" 27 | }, 28 | "browserify-shim": { 29 | "baconjs": "global:Bacon" 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /gruntfile.js: -------------------------------------------------------------------------------- 1 | module.exports = function(grunt) { 2 | grunt.loadNpmTasks('grunt-contrib-jasmine'); 3 | grunt.loadNpmTasks('grunt-browserify'); 4 | 5 | grunt.initConfig({ 6 | browserify: { 7 | umd: { 8 | files: { 9 | 'dist/react-bacon.js': './src/react-bacon.js' 10 | }, 11 | options: { 12 | bundleOptions: { 13 | standalone: 'ReactBacon' 14 | }, 15 | transform: ['browserify-shim'] 16 | } 17 | }, 18 | test: { 19 | files: { 20 | 'tmp/specs.js': './spec/**/*_spec.js' 21 | }, 22 | options: { 23 | alias: ['./src/react-bacon.js:react-bacon'], 24 | transform: ['reactify'] 25 | } 26 | } 27 | }, 28 | jasmine: { 29 | options: { 30 | specs: ['tmp/specs.js'], 31 | reporter: 'spec' 32 | }, 33 | src: ['dist/react-bacon.js'] 34 | } 35 | }); 36 | 37 | grunt.registerTask('spec', ['browserify:test', 'jasmine']); 38 | grunt.registerTask('default', 'spec'); 39 | }; 40 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014 James MacAulay 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ### _This project is no longer maintained_ 2 | 3 | It probably still works, but maybe not for long with the latest versions of React and/or Bacon.js. It's not a lot of code, so I encourage you to fork the project and turn it into exactly what you need. 4 | 5 | If you'd like to take over maintenance of this project, feel free to get in touch either over [twitter](https://twitter.com/jamesmacaulay) or by [opening an issue](https://github.com/jamesmacaulay/react-bacon/issues/new). 6 | 7 | # react-bacon 8 | 9 | A little module for using [React](http://facebook.github.io/) with [Bacon.js](http://baconjs.github.io/). 10 | 11 | Here's [a JSFiddle](http://jsfiddle.net/jamesmacaulay/Wc7bb/)! 12 | 13 | ## Installation 14 | 15 | For [browserify](http://browserify.org/) projects, `npm install --save react-bacon`. 16 | 17 | For other projects, use the [UMD](https://github.com/umdjs/umd) distribution in [/dist/react-bacon.js](https://raw.githubusercontent.com/jamesmacaulay/react-bacon/master/dist/react-bacon.js). 18 | 19 | If you are just putting it in a `