This repository is archived and superceded by https://github.com/danielleng/webpack-react-redux-jest-babel-eslint-boilerplate
React dev stack for the following Javascript libraries:
- React + ReactDOM
- Jest
- Gulp
- Babel
- Browserify + Babelify
A configured stack for you to quickly get up to speed with React development and experimenting with a slightly different React ecosystem, one without Webpack.
- Jest for testing: https://facebook.github.io/jest/
- Gulp for build and deployment: http://gulpjs.com/
- Babel for transpiling ES6: https://babeljs.io/
- Browserify for using
require
on front-end: http://browserify.org/
Note: I'm also using Babelify (https://github.com/babel/babelify) as a Browserify transform, so Gulp can transpile first, before running Browserify's bundling functionality.
More info on Babelify: http://egorsmirnov.me/2015/05/25/browserify-babelify-and-es6.html
Also included is a Gulp config file with barebones settings to get everything up and running:
gulp clean
- Transpile + bundle everything starting from top-level file js/app.jsgulp test
- Runs Jest tests, if anygulp watch
- Watches file changes in js/ directory, excluding .test.js files and the usual node modules folders. Runsgulp clean
on file changesgulp build
- Production-ready build in dist/ folder
Install dependencies:
npm install
Run an initial bundle:
gulp clean
You can then start development and watch file changes with gulp watch
.
- tbc
- tbc
- tbc