Cleanup package scripts

This commit is contained in:
エリス 2019-01-08 15:50:41 +09:00 committed by Darryl Pogue
parent f7688bc64e
commit 3976685e4e
2 changed files with 12 additions and 6 deletions

View File

@ -19,14 +19,12 @@
"apache"
],
"scripts": {
"test": "run-s eslint unit-tests java-unit-tests e2e-tests",
"test": "npm run eslint && npm run cover && npm run java-unit-tests",
"unit-tests": "jasmine --config=spec/unit/jasmine.json",
"cover": "nyc jasmine --config=spec/unit/jasmine.json",
"cover": "nyc jasmine --config=spec/coverage.json",
"e2e-tests": "jasmine --config=spec/e2e/jasmine.json",
"java-unit-tests": "node test/run_java_unit_tests.js",
"eslint": "run-s -c eslint:*",
"eslint:scripts": "eslint bin spec test",
"eslint:bins": "eslint 'bin/**/*' --ignore-pattern '**/*.*' --ignore-pattern '**/gitignore' --ignore-pattern 'bin/templates/cordova/version'"
"eslint": "eslint bin spec test"
},
"author": "Apache Software Foundation",
"license": "Apache-2.0",
@ -48,7 +46,6 @@
"eslint-plugin-promise": "^4.0.1",
"eslint-plugin-standard": "^4.0.0",
"jasmine": "^3.3.1",
"npm-run-all": "^4.1.5",
"nyc": "^13.1.0",
"promise-matchers": "~0",
"rewire": "^4.0.1"

9
spec/coverage.json Normal file
View File

@ -0,0 +1,9 @@
{
"spec_dir": "spec",
"spec_files": [
"unit/**/*[sS]pec.js",
"e2e/**/*[sS]pec.js"
],
"stopSpecOnExpectationFailure": false,
"random": false
}