forked from visgl/deck.gl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9880581
commit 732b72e
Showing
6 changed files
with
84 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/sh | ||
# Script to check code styles | ||
|
||
set -e | ||
|
||
prettier-check "{modules,examples,test}/**/*.js" || echo "Running prettier." && prettier --write "{modules,examples,test}/**/*.js" --loglevel warn | ||
|
||
eslint modules test examples | ||
|
||
# check if yarn.lock contains private registery information | ||
!(grep -q unpm.u yarn.lock) && echo 'Lockfile valid.' || (echo 'Please rebuild yarn file using public npmrc' && false) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
#!/bin/sh | ||
# Automated tests | ||
|
||
set -e | ||
|
||
MODE=$1 | ||
|
||
npm run lint | ||
|
||
case $MODE in | ||
"fast") | ||
node test/start.js test | ||
break;; | ||
|
||
"bench") | ||
node test/start.js bench | ||
node test/start.js bench-browser | ||
break;; | ||
|
||
"ci") | ||
# run by Travis CI | ||
node test/start.js test-ci | ||
npm run build | ||
npm run collect-metrics | ||
break;; | ||
|
||
"cover") | ||
NODE_ENV=test tape -r babel-register test/node.js | ||
nyc report | ||
break;; | ||
|
||
"dist") | ||
npm run build | ||
node test/start.js test-dist | ||
break;; | ||
|
||
"examples") | ||
node test/node-examples.js | ||
break;; | ||
|
||
"size-es6") | ||
npm run build | ||
NODE_ENV=production webpack --config test/webpack.config.js --env.import-nothing --env.es6 | ||
break;; | ||
|
||
*) | ||
# default test | ||
node test/start.js test | ||
node test/start.js test-browser | ||
node test/start.js render | ||
;; | ||
esac |