Skip to content

LuisMorrison/generator-reactjs-flux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

generator-reactjs-flux

Yeoman generator for Facebook's React framework and Flux application architecture.

What's inside?

  • React JavaScript library for building user interfaces
  • Flux Application architecture for building user interfaces
  • ESLint The pluggable linting utility for JavaScript and JSX
  • Compass Css authoring framework
  • Sass CSS with superpowers
  • Require JavaScript file and module loader optimized for in-browser use
  • Grunt JavaScript task runner for performing repetitive tasks like minification, compilation, unit testing, linting, etc
  • Jasmine Behavior-driven development framework for testing JavaScript code
  • Istanbul JavaScript statement, line, function, and branch code coverage when running unit tests
  • Watch Automated JSX and Sass compilation when watched file patterns are added, changed, or deleted

Getting Started

Install Yeoman

$ npm install -g yo grunt-cli react-tools

Install and use Generators

To install generator-reactjs-flux run the following command:

$ npm install generator-reactjs-flux -g

Finally, initiate the generator:

$ cd ~/path/to/project/root
$ yo reactjs-flux

NPM Troubles? npm ERR! Are you seeing something like: Error: EACCES, mkdir '/Users/user/.npm/dargs/2.1.0' ? Try the following commands and try the previous step again:

$ cd ~/Users/user
$ sudo chown -R $(whoami) .npm

Install Compass & Sass

$ gem install compass

If you find your css build results are empty, update your sass gem.

Grunt Tasks

The default grunt task will compile jsx and scss files as well as start a watcher for them.

$ grunt

Same as the default grunt task, however it will reinstall dependencies.

$ grunt init

Run Jasmine unit tests, JSHint, and JSCS

$ grunt test

Same as grunt test, however, this task will run code coverage and launch the code coverage in your browser.

$ grunt test:cov

Run unit tests in the browser on actual source rather than instrumented files from istanbul.

$ grunt jasmineDebug --filter {/folder|file}

Run unit tests for a filtered set of folders or files without code coverage thresholds.

$ grunt jasmineFilter --filter {/folder|file}

License

MIT

Special Thanks To:

Randy Lien for the work done on the react-gulp-browserify generator.

The Yeoman team.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published