preact-compat
v3.13.0 preact react compatibility
build
npm-run-all transpile minify size
transpile
rollup -c rollup.config.js
minify
uglifyjs $npm_package_main -c dead_code,evaluate -m -o $npm_package_minified_main -p relative --in-source-map ${npm_package_main}.map --source-map ${npm_package_minified_main}.map
size
echo "gzip size: $(gzip-size $npm_package_minified_main | pretty-bytes)"
test
npm-run-all lint build test:karma
lint
eslint {src,test}
test:karma
karma start --single-run
test:watch
karma start
prepublish
npm-run-all build test
release
npm run -s build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish
start
node server.js