init
typings install
clean
rm -rf typings/ lib/ && find src | grep \.js$ | xargs rm
compile
if [ ! -f typings/main.d.ts ]; then npm run init; fi; tsc && babel --presets es2015 -q -d lib src
build
npm run compile && browserify -d -r ./index.js:hydrolysis -o hydrolysis.js
release
npm run compile && browserify -r ./index.js:hydrolysis -o hydrolysis.js
build:watch
watch 'npm run build' ./src
apidocs
node_modules/jsdoc-to-markdown/bin/cli.js {index.js,lib/{analyzer,loader/*}.js} > API.md
test
npm run build && wct && mocha
testNode
npm run build && mocha