From 79be7f42387b19baaff368422b09f8d4365f798d Mon Sep 17 00:00:00 2001 From: Takuto Wada Date: Sat, 11 Jul 2015 15:48:01 +0900 Subject: [PATCH] chore(bundle): apply licensify on build --- gulpfile.js | 5 ++++- package.json | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index 64d8a51..faf55de 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -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 = { @@ -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()) diff --git a/package.json b/package.json index 18454cd..d65ed12 100644 --- a/package.json +++ b/package.json @@ -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",