Skip to content

LouisStAmour/isomorphic-hot-loader

 
 

Repository files navigation

Circle CI Gitter chat

Goal: To provide a starter project for React.js projects with sane defaults and community-driven best practices.

Install

  1. Install node.js (brew install node).
  2. Install Flow (brew install flow) for inferred type checking in development with no extra work.
  3. Clone this repository
  4. 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

About

An actively maintained starter project for building isomorphic web apps with React.js

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%