Browse Source

Merge pull request #3 from maraoz/feature/karma

add npm install hook for browserify
patch-2
Braydon Fuller 10 years ago
parent
commit
6af3559a97
  1. 6
      gulpfile.js
  2. 3
      package.json

6
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() {

3
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": [
{

Loading…
Cancel
Save