Istanbul code coverage

This commit is contained in:
sanex3339
2016-06-18 14:32:16 +03:00
parent d9323e2fb1
commit 365c5fda10
3 changed files with 30 additions and 8 deletions
+4 -2
View File
@@ -1,5 +1,7 @@
.idea
node_modules
npm-debug.log
*.js.map
tmp
/coverage
/node_modules
/test-tmp
/tmp
+9 -6
View File
@@ -24,6 +24,7 @@
"babel-polyfill": "^6.9.1",
"babel-preset-es2015": "^6.9.0",
"chai": "^3.5.0",
"istanbul": "^1.0.0-alpha.2",
"lite-server": "^1.3.1",
"mocha": "^2.5.3",
"source-map-support": "^0.4.0",
@@ -39,15 +40,17 @@
"url": "git+https://github.com/sanex3339/javascript-obfuscator.git"
},
"scripts": {
"tsc": "tsc",
"tsc:w": "tsc -w",
"webpack": "node_modules/.bin/webpack",
"watch": "node_modules/.bin/webpack --watch",
"lite": "lite-server",
"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:dev": "node test/dev/test.js",
"test:mocha": "mocha --require ts-node/register test/**/*.spec.ts",
"test": "npm run test:dev && npm run test:mocha",
"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:removeTestTmpDir": "rm -rf test-tmp",
"test": "npm run test:dev && npm run test:full",
"typings": "node_modules/.bin/typings install"
},
"author": {
+17
View File
@@ -0,0 +1,17 @@
{
"compilerOptions": {
"outDir": "test-tmp",
"target": "ES6",
"module": "commonjs",
"sourceMap": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"removeComments": true,
"noImplicitAny": true
},
"exclude": [
"node_modules",
"typings/browser",
"typings/browser.d.ts"
]
}