luma.gl

v5.2.0-alpha.9
A WebGL JavaScript visualization library.
webgl visualization animation 3d

start

cat < docs/get-started/examples.md

clean

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

build-es6

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

build-esm

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

build-es5

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

build-size

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

build

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

cover

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

lint

eslint src test && npm run lint-yarn

lint-examples

eslint examples

lint-yarn

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

publish-prod

npm run build && npm run test-fast && npm publish

publish-beta

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

bench

node test/bench/node.js

bench-browser

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

test

npm run lint && npm run build && npm run test-node && npm run test-dist && npm run collect-metrics

test-cover

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

test-fast

node test/node.js

test-fp64

(cd src/shadertools/test && webpack-dev-server --progress --hot --open)

test-node

node test/node.js | faucet

test-dist

npm run build-es6 && node test/start.js test-dist

test-browser

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

test-browser-puppet

node test/start.js test-browser

test-shader

npm run build-dist && budo src/test/fp64-shader.spec.js:build/test-bundle.js --dir test --live --open --watch-glob '**/*.{html,css,scss,js,glsl}' -- -t babelify -t brfs-babel

test-size-es6

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

test-size-esm

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

collect-metrics

./test/scripts/collect-metrics.sh

Metadata

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

Downloads