@gameinpl/beerpoly v1.0.0
#Intro This is a bare-bones boilerplate for a ReactJS project. It uses Babel to transpile ESNext JavaScript into ES5, Browserify to bundle the modules up for the browser, Mocha + Chai for Unit test assertions, Enzyme to unit test React components, Sass for the CSS Preprocessor. Gulp is the automated task runner and BrowserSync is used to fire up a dev-server that syncs up to file changes.
##Setup
First
npm install
Then choose one of the following:
Run Gulp in develop mode, this will watch over files for changes and sync them with BrowserSync, this mode also generates sourcemaps.
npm start
Run Gulp in production mode, this will ensure all files output are minified without sourcemaps.
npm run build:production
Run the JS and SASS linters. These are not automatically run in develop or production modes as they slow down the compilation process.
npm run lint
Run linting and the unit test suite (Mocha + Chai + Enzyme). Again this isn't run automatically on the develop or production modes to ensure things run quickly. It's recommended that you run this task frequently as per the TDD recommendation of test first.
npm t
6 years ago