A boilerplate for modern JavaScript development.
This is a very basic starter package and there's lot that can be added. But to get the a solution bootstrapped quickly, this should cover most bases.
git clone
this repo- Run
yarn
ornpm i
to install dependencies - Update
.babelrc
to target different browsers (see BrowserList to write an appropriate query).
These can be triggered using yarn COMMAND
or npm run COMMAND
.
build
- One time build and quit
watch
- Watches for file changes and builds when something has changed
start
- Like watch, but runs a web server for easy front-end development
- Run
yarn add babel-preset-flow flow-bin
- in
.bablerc
addflow
to thepresets
array.
(If you're running npm
then change yarn add
to npm add --save
.)