Delete output lib folder before instrumenting
This commit is contained in:
Родитель
491f69df80
Коммит
9299921ee9
|
@ -7,11 +7,14 @@ var glob = require('glob')
|
|||
var Instrumenter = require('istanbul').Instrumenter
|
||||
var mkdirp = require('mkdirp')
|
||||
var path = require('path')
|
||||
var rimraf = require('rimraf')
|
||||
|
||||
var instrumenter = new Instrumenter()
|
||||
var outputPath = path.join(__dirname, '..', '..', 'out', 'coverage')
|
||||
var libPath = path.join(__dirname, '..', '..', 'lib')
|
||||
|
||||
rimraf.sync(path.join(outputPath, 'lib'))
|
||||
|
||||
glob.sync('**/*.js', {cwd: libPath}).forEach(function (relativePath) {
|
||||
var rawPath = path.join(libPath, relativePath)
|
||||
var raw = fs.readFileSync(rawPath, 'utf8')
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
"mocha": "2.1.0",
|
||||
"multiparty": "4.1.2",
|
||||
"q": "0.9.7",
|
||||
"rimraf": "^2.5.4",
|
||||
"temp": "0.8.1",
|
||||
"walkdir": "0.0.7",
|
||||
"ws": "0.7.2",
|
||||
|
|
Загрузка…
Ссылка в новой задаче