Skip to content

Simple production ready boilerplate for React, Webpack (using Babel, SASS and React hot reloading), tests and coverage.

License

Notifications You must be signed in to change notification settings

shilu89757/react-webpack-boilerplate

 
 

Repository files navigation

react-webpack-boilerplate

Build Status Dependency Status Build Status

Simple production-ready boilerplate for React and Webpack (SASS and React hot reloading)

Install

Clone repository and run:

$ npm install

Alternatively, you can deploy your own copy with one click using this button:

Deploy

iojs

If you'd rather want to use iojs you need to install a newer version of jest than what is currently available on npm. Jest uses a newer version of jsdom where support for <= 0.12 has been dropped in order to move the project further. As of #374, Jest should work on latest io.js. It's currently in a separate branch, facebook/jest/tree/0.5.x, and can also be installed via npm facebook/jest#0.5.x.

Development

$ npm start

Go to http://localhost:3001 and see the magic happen.

Production

If you want to run the project in production, set the NODE_ENV environment variable to production.

$ NODE_ENV=production npm start

Also build the production bundle:

$ npm run dist

Tests

$ npm test

Only run specific tests

$ npm test -- NotFoundComponent

Coverage

$ npm test -- --coverage

License

MIT © Søren Brokær

About

Simple production ready boilerplate for React, Webpack (using Babel, SASS and React hot reloading), tests and coverage.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 98.6%
  • CSS 1.4%