npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

generator-reactjs-flux

v0.1.5

Published

React, Flux, Sass, Require, Grunt, Jasmine, Istanbul, JSHint and JSCS all wired up and ready to go.

Downloads

7

Readme

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
  • 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
  • JSHint Detect errors and potential problems in JavaScript code and enforce your team's coding conventions
  • JSCS JavaScript Code Style checker
  • 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

On Windows, we suggest you use an improved command line tool such as cmder or PowerShell to improve the experience.

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.