diff --git a/gulpfile.js b/gulpfile.js index a1adf03..9ea31e9 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -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 8274dae..956ab26 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": "gulp browser-all" }, "contributors": [ {