Skip to content

Commit b4c07e7

Browse files
committed
chore: improve build output
1 parent 8a46a48 commit b4c07e7

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@
4040
"gulp-bump": "3.1.3",
4141
"gulp-eslint": "6.0.0",
4242
"gulp-git": "2.10.0",
43+
"gulp-header-comment": "0.6.1",
4344
"gulp-jasmine": "4.0.0",
45+
"gulp-strip-banner": "0.0.2",
4446
"jasmine-core": "3.5.0",
4547
"rimraf": "3.0.2",
4648
"rollup": "1.32.0",

scripts/build/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,14 @@
2525
const path = require('path');
2626
const gulp = require('gulp');
2727
const babel = require('gulp-babel');
28+
const stripBanner = require('gulp-strip-banner');
29+
const headerComment = require('gulp-header-comment');
2830
const config = require('../config');
2931

3032
module.exports = function build() {
3133
return gulp.src(path.join(config.src, '**', '*.js'))
34+
.pipe(stripBanner())
3235
.pipe(babel())
36+
.pipe(headerComment({file: path.join(config.root, 'LICENSE')}))
3337
.pipe(gulp.dest(config.dist));
3438
};

0 commit comments

Comments
 (0)