You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ra...@apache.org on 2019/10/16 19:24:33 UTC

[cordova-cli] branch master updated: chore: replace istanbul with nyc (#459)

This is an automated email from the ASF dual-hosted git repository.

raphinesse pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-cli.git


The following commit(s) were added to refs/heads/master by this push:
     new 46225e7  chore: replace istanbul with nyc (#459)
46225e7 is described below

commit 46225e7facad4d61f385da8f296968fb262c0d2b
Author: エリス <er...@users.noreply.github.com>
AuthorDate: Thu Oct 17 04:24:28 2019 +0900

    chore: replace istanbul with nyc (#459)
---
 .gitignore   |  1 +
 .npmignore   |  1 +
 package.json | 18 ++++++++++++++----
 3 files changed, 16 insertions(+), 4 deletions(-)

diff --git a/.gitignore b/.gitignore
index f2b11bc..50762d0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,5 @@
 coverage
+.nyc_output
 node_modules
 npm-debug.log
 temp
diff --git a/.npmignore b/.npmignore
index aa277ff..ecb3f03 100644
--- a/.npmignore
+++ b/.npmignore
@@ -2,3 +2,4 @@ temp
 spec
 e2e
 coverage
+.nyc_output
diff --git a/package.json b/package.json
index 2929197..0ec7aec 100644
--- a/package.json
+++ b/package.json
@@ -11,9 +11,9 @@
     "cordova": "./bin/cordova"
   },
   "scripts": {
-    "test": "npm run eslint && jasmine",
+    "test": "npm run eslint && npm run cover",
     "eslint": "eslint . bin/cordova",
-    "cover": "istanbul cover --root src --print detail jasmine"
+    "cover": "nyc jasmine"
   },
   "repository": {
     "type": "git",
@@ -47,8 +47,8 @@
     "eslint-plugin-node": "^8.0.1",
     "eslint-plugin-promise": "^4.0.1",
     "eslint-plugin-standard": "^4.0.0",
-    "istanbul": "^0.4.5",
     "jasmine": "^3.3.1",
+    "nyc": "^14.1.1",
     "rewire": "^4.0.1"
   },
   "author": "Anis Kadri",
@@ -150,5 +150,15 @@
       "email": "purplecabbage@gmail.com"
     }
   ],
-  "license": "Apache-2.0"
+  "license": "Apache-2.0",
+  "nyc": {
+    "include": [
+      "bin/**",
+      "src/**"
+    ],
+    "reporter": [
+      "lcov",
+      "text"
+    ]
+  }
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org