math.gl

v1.1.0-alpha.1
Array-based 3D Math Classes optimized for WebGL applications
webgl javascript math matrix matrix4 vector vector2 vector3 vector4 and 6 more...

lint

eslint src test examples && npm run lint-yarn

test

npm run lint && npm run build && npm run test-node

bench

node test/bench/node.js

build

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

clean

rm -fr dist && mkdir -p dist/es5 dist/esm dist/es6

cover

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

start

(cd examples/layer-browser && (path-exists node_modules || npm i) && npm run start-local)

pretty

prettier --write "{src,examples,test}/**/*.js" --loglevel warn

build-es5

BABEL_ENV=es5 babel src --out-dir dist/es5 --source-maps

build-es6

BABEL_ENV=es6 babel src --out-dir dist/es6 --source-maps

build-esm

BABEL_ENV=esm babel src --out-dir dist/esm --source-maps

lint-yarn

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

test-dist

node test/node-dist.js

test-fast

npm run test-node | faucet

test-node

node test/node.js

test-cover

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

publish-beta

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

publish-prod

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

test-browser

webpack-dev-server --config test/webpack.config.js --env.test --progress --hot --open

bench-browser

webpack-dev-server --config test/webpack.config.js --env.bench --progress --hot --open

test-size-es6

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

test-size-esm

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

Metadata

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

Downloads