probe.gl

v1.0.0-alpha.10
JavaScript Console Instrumentation and Benchmarking for Browser and Node
javascript profiling instrumentation logging

build-clean

rm -fr dist dist-es6 && mkdir -p dist dist-es6

build-es6

rm -fr dist-es6 && babel src --out-dir dist-es6 --source-maps

build-es5

rm -fr dist && babel src --out-dir dist --plugins=transform-es2015-modules-commonjs --source-maps

build-size

(echo "dist size" ; find dist/lib -name '*.js' | xargs cat | wc -c) && (echo "dist-es6 size" ; find dist-es6/lib -name '*.js' | xargs cat | wc -c) && (echo "source size" ; find src/lib -name '*.js' | xargs cat | wc -c)

build

npm run build-clean && npm run build-es5 && npm run build-es6 && npm run build-size

cover

NODE_ENV=test nyc --reporter html --reporter cobertura --reporter=lcov npm run test-cover

lint

eslint src test examples && npm run lint-yarn

lint-yarn

!(grep -q unpm.u yarn.lock) || (echo 'Please rebuild yarn file using public npmrc' && false)

publish-prod

npm run test && npm run test-dist && npm publish

publish-beta

npm run test && npm run test-dist && npm publish --tag beta

test

node test/start.js test && node test/start.js log && npm run build

test-fast

node test/start.js test | tap-diff

test-dist

node test/start.js test-dist

test-cover

NODE_ENV=test tape -r babel-register test/node.js && nyc report

test-size

npm run build && webpack --config test/webpack.config.js --env.import-nothing

bench

node test/start.js bench

test-browser

webpack-dev-server --env.test --progress --hot --open

bench-browser

webpack-dev-server --env.bench --progress --hot --open

Metadata

  • MIT
  • Whatever
  • Unknown
  • released 3/19/2018

Downloads