Code Monkey home page Code Monkey logo

isomorphic-hot-loader's Introduction

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

isomorphic-hot-loader's People

Contributors

irvinebroque avatar gaearon avatar zigomir avatar clintandrewhall avatar matthewryanscott avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.