- Generated base code from react-starter-kit
Just clone the repo and start hacking:
$ npm install # Install Node.js components listed in ./package.json
$ npm start # Compile and launch
$ npm run build # or, `npm run build -- --release`
By default, it builds in debug mode. If you need to build in release
mode, just add a -- --release
flag. This will optimize the output bundle for
production.
$ npm start # or, `npm start -- --release`
This will start a light-weight development server with "live reload" and synchronized browsing across multiple devices and browsers.
$ npm run deploy # or, `npm run deploy -- --production`
For more information see tools/deploy.js
.
You can always fetch and merge recent changes from this repo back into your own project:
$ git checkout master
$ git fetch react-starter-kit
$ git merge react-starter-kit/master
$ npm install
Run unit tests powered by Jest with the following npm command:
$ npm test
Test any javascript module by creating a __tests__/
directory where
the file is. Append -test.js
to the filename and Jest will do the rest.
- Credit https://github.com/lukehaas/css-loaders for spinner css