template for new projects
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
bin
.editorconfig
.eslintrc
.gitignore
LICENSE
README.md
index.html
package.json
webpack.config.js

README.md

No longer maintained but do check out [Create React App] (https://github.com/facebookincubator/create-react-app)

A simple template for react (or not [at all!]) projects

Contributions (not any more!) welcome

Features

no gulp or grunt eslint

Install

npm install

Run

npm start or on a custom port PORT=3000 npm start

Lint

npm run eslint

Build

npm run build

What now?

You might want to do these things once you have this setup

  • move all the dev deps into deps (if you use CI to build this, or expect other team members to have the same tools. for sure!)
  • shrinkwrap (this will speed up CI and consistency with other devs)
  • Add other loaders and file types
  • setup eslint
  • read the horrible webpack docs
  • raises issues about how you think the defaults here should change!

Further reading

Airbnb's Javascript styleguide Pete Hunt's webpack howto Macropod's Guide to setting up sublime with eslint