From c35b6abcdaefe7b215dce5db1b9c77d53ffd49a9 Mon Sep 17 00:00:00 2001 From: sanex3339 Date: Sat, 18 Jun 2016 15:38:04 +0300 Subject: [PATCH] Istanbul code coverage --- package.json | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index c27f32db..96bf0dce 100644 --- a/package.json +++ b/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"