style: add convenience script to run all examples

This commit is contained in:
Michael Vines 2018-09-30 18:54:49 -07:00
parent ca6965f8c2
commit a878cdccf3
2 changed files with 2 additions and 1 deletions

View File

@ -14,7 +14,7 @@ script:
- npm run doc
- npm run flow
- npm run lint
- for example in examples/*.js; do node $example; done
- npm run examples
- npm run codecov
before_deploy:

View File

@ -39,6 +39,7 @@
"lint:watch": "watch 'npm run lint:fix' . --wait=1 --ignoreDirectoryPattern=/doc/",
"ok": "npm run lint && npm run flow && npm run test && npm run doc",
"prepare": "npm run clean && npm run ok && npm run build",
"examples": "set -ex; for example in examples/*.js; do node $example; done",
"re": "semantic-release --repository-url git@github.com:solana-labs/solana-web3.js.git"
},
"dependencies": {