mirror of
https://github.com/donl/plivo-node.git
synced 2026-05-25 22:07:10 -06:00
Resolving nsp issue.
This commit is contained in:
parent
3858a25021
commit
f59cfc3114
2 changed files with 4 additions and 10 deletions
11
gulpfile.js
11
gulpfile.js
|
|
@ -4,7 +4,6 @@ var eslint = require('gulp-eslint');
|
|||
var excludeGitignore = require('gulp-exclude-gitignore');
|
||||
var mocha = require('gulp-mocha');
|
||||
var istanbul = require('gulp-babel-istanbul');
|
||||
var nsp = require('gulp-nsp');
|
||||
var plumber = require('gulp-plumber');
|
||||
var coveralls = require('gulp-coveralls');
|
||||
var babel = require('gulp-babel');
|
||||
|
|
@ -31,10 +30,6 @@ gulp.task('static', function () {
|
|||
.pipe(eslint.failAfterError());
|
||||
});
|
||||
|
||||
gulp.task('nsp', function (cb) {
|
||||
nsp({package: path.resolve('package.json')}, cb);
|
||||
});
|
||||
|
||||
gulp.task('pre-test', function () {
|
||||
return gulp.src('lib/**/*.js')
|
||||
.pipe(excludeGitignore())
|
||||
|
|
@ -50,10 +45,10 @@ gulp.task('test', ['pre-test'], function (cb) {
|
|||
|
||||
gulp.src('test/**/*.js')
|
||||
.pipe(plumber())
|
||||
.pipe(mocha({reporter: 'spec'}))
|
||||
.pipe(mocha({ reporter: 'spec' }))
|
||||
.on('error', function (err) {
|
||||
mochaErr = err;
|
||||
throw(err)
|
||||
throw (err)
|
||||
})
|
||||
.pipe(istanbul.writeReports())
|
||||
.on('end', function () {
|
||||
|
|
@ -93,5 +88,5 @@ gulp.task('clean', function () {
|
|||
return del('dist');
|
||||
});
|
||||
|
||||
gulp.task('prepublish', ['nsp', 'babel']);
|
||||
gulp.task('prepublish', ['babel']);
|
||||
gulp.task('default', ['static', 'test', 'coveralls']);
|
||||
|
|
|
|||
|
|
@ -38,7 +38,6 @@
|
|||
"gulp-istanbul": "^1.0.0",
|
||||
"gulp-line-ending-corrector": "^1.0.1",
|
||||
"gulp-mocha": "^3.0.1",
|
||||
"gulp-nsp": "^2.1.0",
|
||||
"gulp-plumber": "^1.0.0",
|
||||
"isparta": "^4.0.0",
|
||||
"sinon": "^2.1.0"
|
||||
|
|
@ -67,4 +66,4 @@
|
|||
"uri-parser": "^1.0.0",
|
||||
"utf8": "^2.1.2"
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue