Repository: bengrunfeld/react-flux-simple-app Branch: master Commit: 1ea9d67c8f5d Files: 11 Total size: 3.7 KB Directory structure: gitextract_aesk4fad/ ├── .gitignore ├── README.md ├── gulpfile.js ├── package.json └── src/ ├── index.html └── js/ ├── actions/ │ └── AppActions.js ├── components/ │ └── app.js ├── constants/ │ └── AppConstants.js ├── dispatcher/ │ └── AppDispatcher.js ├── main.js └── stores/ └── AppStore.js ================================================ FILE CONTENTS ================================================ ================================================ FILE: .gitignore ================================================ .DS_Store dist node_modules ================================================ FILE: README.md ================================================ # React Flux Simple App This is the simples possible App that I can think of that implements the React framework on top of the Flux architecture. ## Installation git clone git@github.com:bengrunfeld/react-flux-simple-app.git cd react-flux-simple-app npm install gulp ## Usage * Open up `dist/index.html` in Chrome * Hit `Cmd + Option + j` to bring up the Dev Tools window * Click on the text in the UI and you'll see the log show up in the console. ## Questions For any question about Flux, hit me up on Twitter at: [@bengrunfeld](https://twitter.com/bengrunfeld) ================================================ FILE: gulpfile.js ================================================ var gulp = require('gulp'); var browserify = require('gulp-browserify'); var concat = require('gulp-concat'); gulp.task('browserify', function() { gulp.src('src/js/main.js') .pipe(browserify({transform:'reactify'})) .pipe(concat('main.js')) .pipe(gulp.dest('dist/js')); }); gulp.task('copy', function() { gulp.src('src/index.html') .pipe(gulp.dest('dist')); }); gulp.task('default',['browserify', 'copy']); gulp.task('watch', function() { gulp.watch('src/**/*.*', ['default']); }); ================================================ FILE: package.json ================================================ { "name": "flux", "version": "0.0.1", "description": "A simple TODOS app in React and Flux", "author": "Ben Grunfeld", "repository": "https://github.com/bengrunfeld/flux-react-todos", "readme": "https://github.com/bengrunfeld/flux-react-todos/README.md", "license": "Apache 2", "devDependencies": { "gulp": "^3.8.11", "gulp-browserify": "^0.5.0", "gulp-concat": "^2.2.0", "react": "^0.12.2", "reactify": "^0.13.1", "es6-promise": "^1.0.0", "flux": "^2.0.1", "object-assign": "^1.0.0" } } ================================================ FILE: src/index.html ================================================