Merge pull request #3 from maraoz/feature/karma
add npm install hook for browserify
This commit is contained in:
commit
6af3559a97
|
@ -67,7 +67,7 @@ gulp.task('watch:lint', function() {
|
|||
});
|
||||
|
||||
gulp.task('watch:browser', function() {
|
||||
return gulp.watch(alljs, ['browser', 'browser-test']);
|
||||
return gulp.watch(alljs, ['browser-all']);
|
||||
});
|
||||
|
||||
gulp.task('coverage', shell.task(['istanbul cover _mocha -- --recursive']));
|
||||
|
@ -102,6 +102,10 @@ gulp.task('browser-test', function() {
|
|||
]);
|
||||
});
|
||||
|
||||
gulp.task('browser-all', function(callback) {
|
||||
runSequence(['browser'], ['browser-test'], callback);
|
||||
});
|
||||
|
||||
gulp.task('karma', testKarma);
|
||||
|
||||
gulp.task('minify', function() {
|
||||
|
|
|
@ -8,7 +8,8 @@
|
|||
"lint": "gulp lint",
|
||||
"test": "gulp test-all",
|
||||
"coverage": "gulp coverage",
|
||||
"build": "gulp"
|
||||
"build": "gulp",
|
||||
"postinstall": "node_modules/gulp/bin/gulp.js browser-all"
|
||||
},
|
||||
"contributors": [
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue