isomorphic-hot-loader
isomorphic-hot-loader copied to clipboard
No longer maintained
Goal: To provide a starter project for React.js projects with sane defaults and community-driven best practices.
- Features
Install
- Install node.js (
brew install node
). - Install Flow (
brew install flow
) for inferred type checking in development with no extra work. - Clone this repository
-
npm install
Run it locally
npm run dev
Runs our server with node-supervisor to restart when any javascript changes, and a webpack hot loader that pushes the compiled javascript bundle into the client via websockets, for fast incremental live-reload.
CSS/JS Builds
npm run build
Runs webpack to generate a production build. This minifies the javascript and uses static analysis to perform dead code elimination, which reduces our total bundle considerably, especially when requiring large libraries like moment.js.
Which will generate the proper webpack bundle. Then run npm run prod
.
Tests
npm run test
Runs all jest unit tests within __tests__
directories.
Linting & Style Checking
npm run lint
Runs eslint. The eslint config is stored as "eslintConfig"
within package.json
, and is configured to work with both ES6 and JSX.
License
MIT