Create branch
git clone branch-url
npm run coverage
npm run beautify
git add -A
git commit -m msg
git push
npm run build
First, make sure that you have previously issued npm adduser
. Also make sure that you have tin installed, e.g. npm install -g tin
. Then:
git checkout master
git pull origin master
tin -v VERSION
git diff # check that only version changed
npm run build-and-publish
This requires having david installed globally.
david update
npm run test
node_modules/mocha/bin/mocha -g regex test
node_modules/istanbul/lib/cli.js cover _mocha -- -g regex test
$ node-inspector # leave this running in this window
Use *Chrome* to visit http://127.0.0.1:8080/?ws=127.0.0.1:8080&port=5858
$ mocha -g regex test/index.js --debug-brk
$ npm run browser-coverage-full-test
You can filter full browser tests using the GREP env variable, e.g.
$ GREP='e2e basic' npm run browser-coverage-full-test
$ npm run browser-test-phantomjs
You can filter the PhantomJS tests using the GREP env variable, e.g.
$ GREP='e2e basic' npm run browser-test-phantomjs
Currently, this cannot be done in the VM as this project has not been configured to run Chrome and Firefox via Selenium headlessly. You can however use
$ npm run test-firefox
$ npm run test-chrome
to test outside the VM, assuming you have Firefox and Chrome installed.
$ npm run browser-server
Use browser to visit http://127.0.0.1:8001/test/browser/index.html
$ CLIENT="saucelabs:internet explorer:9" SAUCE_USERNAME=paste-image-user
SAUCE_ACCESS_KEY=323f6977-df33-4713-8967-511394cb07e5 npm run browser-test
git checkout gh-pages
git merge master
git push origin gh-pages
git checkout master