pretest
npm run build
test
npm run test-only --
posttest
npm run lint
test-only
mocha --reporter spec --full-trace dist/tests/tests.js
test-watch
mocha --reporter spec --full-trace dist/tests/tests.js --watch
coverage
istanbul cover ./node_modules/.bin/_mocha -- --reporter dot --full-trace dist/tests/tests.js
postcoverage
remap-istanbul --input coverage/coverage.json --type lcovonly --output coverage/lcov.info
lint
tslint --type-check -p tsconfig.json src/*.ts && tslint --type-check -p tsconfig.json tests/*.ts
prebuild
npm run clean:dist
build
tsc -p .
postbuild
cp -R ./dist/src/. ./lib
watch
tsc -w -p .
clean
npm run clean:dist && npm run clean:coverage
clean:dist
rimraf dist/* && rimraf lib/*
clean:coverage
rimraf coverage/*
prepublishOnly
npm run clean && npm run build
compile:browser
browserify ./dist/src/index.js --i apollo-cache-core --i apollo-utilities -o=./dist/index.js && npm run minify:browser
minify:browser
uglifyjs -c -m -o ./dist/index.min.js -- ./dist/index.js
filesize
npm run compile:browser