diff --git a/gulpfile.js b/gulpfile.js index a1adf03..8919e52 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -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() { diff --git a/package.json b/package.json index ee928d6..efb33fc 100644 --- a/package.json +++ b/package.json @@ -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": [ {