Skip to content

Commit

Permalink
chore(bundle): apply licensify on build
Browse files Browse the repository at this point in the history
  • Loading branch information
twada committed Jul 11, 2015
1 parent 3fdc077 commit 79be7f4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gulpfile.js
Expand Up @@ -9,6 +9,7 @@ var del = require('del');
var source = require('vinyl-source-stream');
var through = require('through2');
var browserify = require('browserify');
var licensify = require('licensify');
var derequire = require('gulp-derequire');
var dereserve = require('gulp-dereserve');
var config = {
Expand Down Expand Up @@ -111,7 +112,9 @@ gulp.task('clean_coverage', function (done) {
});

gulp.task('bundle', ['clean_bundle'], function() {
var bundleStream = browserify({entries: config.bundle.srcFile, standalone: config.bundle.standalone}).bundle();
var b = browserify({entries: config.bundle.srcFile, standalone: config.bundle.standalone});
b.plugin(licensify);
var bundleStream = b.bundle();
return bundleStream
.pipe(source(config.bundle.destName))
.pipe(dereserve())
Expand Down
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -41,6 +41,7 @@
"gulp-util": "^3.0.5",
"gulp-webserver": "^0.9.1",
"jshint-stylish": "^2.0.1",
"licensify": "^1.1.0",
"mocha": "^2.2.5",
"mocha-lcov-reporter": "^0.0.2",
"through2": "^2.0.0",
Expand Down

0 comments on commit 79be7f4

Please sign in to comment.