|
17 | 17 | "mocha": "--require ./resources/mocha-bootload --check-leaks --full-trace --timeout 15000 src/**/__tests__/**/*-test.js"
|
18 | 18 | },
|
19 | 19 | "scripts": {
|
| 20 | + "watch": "babel-node ./resources/watch.js", |
20 | 21 | "test": "npm run lint && npm run check && npm run testonly",
|
21 |
| - "testonly": "babel-node ./node_modules/.bin/_mocha $npm_package_options_mocha", |
| 22 | + "test:ci": "npm run lint && npm run check && npm run testonly:coveralls", |
22 | 23 | "t": "babel-node ./node_modules/.bin/_mocha --require ./resources/mocha-bootload",
|
| 24 | + "testonly": "babel-node ./node_modules/.bin/_mocha $npm_package_options_mocha", |
| 25 | + "testonly:cover": "babel-node ./node_modules/.bin/isparta cover --root src --report html _mocha -- $npm_package_options_mocha", |
| 26 | + "testonly:coveralls": "babel-node ./node_modules/.bin/isparta cover --root src --report lcovonly _mocha -- $npm_package_options_mocha && cat ./coverage/lcov.info | coveralls", |
23 | 27 | "lint": "eslint --rulesdir ./resources/lint src || (printf '\\033[33mTry: \\033[7m npm run lint -- --fix \\033[0m\\n' && exit 1)",
|
24 | 28 | "prettier": "prettier --write 'src/**/*.js'",
|
25 | 29 | "check": "flow check",
|
|
32 | 36 | "build:npm-flow": "find ./src -name '*.js' -not -path '*/__tests__*' | while read filepath; do cp $filepath `echo $filepath | sed 's/\\/src\\//\\/dist\\//g'`.flow; done",
|
33 | 37 | "build:module": "BABEL_MODULES=1 babel src --optional runtime --ignore __tests__ --out-dir dist/module/",
|
34 | 38 | "build:module-flow": "find ./src -name '*.js' -not -path '*/__tests__*' | while read filepath; do cp $filepath `echo $filepath | sed 's/\\/src\\//\\/dist\\/module\\//g'`.flow; done",
|
35 |
| - "watch": "babel-node ./resources/watch.js", |
36 |
| - "cover": "babel-node ./node_modules/.bin/isparta cover --root src --report html _mocha -- $npm_package_options_mocha", |
37 |
| - "cover:lcov": "babel-node ./node_modules/.bin/isparta cover --root src --report lcovonly _mocha -- $npm_package_options_mocha", |
38 | 39 | "preversion": ". ./resources/checkgit.sh && npm test",
|
39 | 40 | "prepublish": ". ./resources/prepublish.sh",
|
40 | 41 | "gitpublish": ". ./resources/gitpublish.sh"
|
|
0 commit comments