Browse Source

Istanbul code coverage

sanex3339 9 years ago
parent
commit
c35b6abcda
1 changed files with 4 additions and 5 deletions
  1. 4 5
      package.json

+ 4 - 5
package.json

@@ -40,15 +40,14 @@
     "url": "git+https://github.com/sanex3339/javascript-obfuscator.git"
   },
   "scripts": {
-    "lite": "lite-server",
+    "start": "npm run watch",
     "webpack": "node_modules/.bin/webpack",
     "build": "npm run webpack && npm test",
     "watch": "node_modules/.bin/webpack --watch",
-    "start": "concurrent \"npm run tsc:w\" \"npm run lite\" ",
-    "test:compile": "tsc -p tsconfig-test.json",
+    "test:compile": "node_modules/.bin/tsc -p tsconfig-test.json",
     "test:dev": "node test/dev/test.js",
-    "test:full": "npm run test:compile && istanbul cover _mocha -- test-tmp/test/**/**.spec.js && npm run test:removeTestTmpDir",
-    "test:mocha": "npm run test:compile && mocha -- test-tmp/test/**/**.spec.js && npm run test:removeTestTmpDir",
+    "test:full": "npm run test:compile && node_modules/.bin/istanbul cover node_modules/.bin/_mocha -- test-tmp/test/**/**.spec.js && npm run test:removeTestTmpDir",
+    "test:mocha": "npm run test:compile && node_modules/.bin/mocha -- test-tmp/test/**/**.spec.js && npm run test:removeTestTmpDir",
     "test:removeTestTmpDir": "rm -rf test-tmp",
     "test": "npm run test:dev && npm run test:full",
     "typings": "node_modules/.bin/typings install"