You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by dp...@apache.org on 2019/01/16 05:57:19 UTC
[cordova-android] 05/07: Cleanup package scripts
This is an automated email from the ASF dual-hosted git repository.
dpogue pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-android.git
commit 3976685e4edba2e33e20e4cfd6053fd2857dbc64
Author: エリス <el...@gmail.com>
AuthorDate: Tue Jan 8 15:50:41 2019 +0900
Cleanup package scripts
---
package.json | 9 +++------
spec/coverage.json | 9 +++++++++
2 files changed, 12 insertions(+), 6 deletions(-)
diff --git a/package.json b/package.json
index e5ab0f9..eb3a461 100644
--- a/package.json
+++ b/package.json
@@ -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"
diff --git a/spec/coverage.json b/spec/coverage.json
new file mode 100644
index 0000000..a9476c9
--- /dev/null
+++ b/spec/coverage.json
@@ -0,0 +1,9 @@
+{
+ "spec_dir": "spec",
+ "spec_files": [
+ "unit/**/*[sS]pec.js",
+ "e2e/**/*[sS]pec.js"
+ ],
+ "stopSpecOnExpectationFailure": false,
+ "random": false
+}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org