git checkout dev
git pull origin dev
git checkout -b my_branch
npm run preversion
npm install
npm run watch
npm run watch:test # in another terminal window or pane
npm script commands are defined in the scripts section of package.json
.
To see a full list of available npm commands, run:
npm run
npm install
npm run compile
npm run watch
One time.
npm test
Watch continuously and run tests when code or specs change.
npm run watch:test
Remove node_modules/
and vender/bower
npm run clean:all
Remove compiled node_modules/
and vender/bower
; reinstall
node modules and bower components; recompile code.
npm run reset
To build a distribution and tag it, run one of the following commands.
npm version patch -m "Bumped to %s"
npm version minor -m "Bumped to %s"
npm version major -m "Bumped to %s"
There's a 'preversion' script in package.json that does the following:
- Remove the
node_modules
andvendor/bower
directories. - Install all npm and bower packages.
- Compile the application source and specs.
- Run the tests.
- Remove the
dist/
directory and rebuild the distribution.
Just build a distribution.
npm run build
- The
dist/
directory must be part of the repo. Don't gitignore it!