File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 40
40
"gulp-bump" : " 3.1.3" ,
41
41
"gulp-eslint" : " 6.0.0" ,
42
42
"gulp-git" : " 2.10.0" ,
43
+ "gulp-header-comment" : " 0.6.1" ,
43
44
"gulp-jasmine" : " 4.0.0" ,
45
+ "gulp-strip-banner" : " 0.0.2" ,
44
46
"jasmine-core" : " 3.5.0" ,
45
47
"rimraf" : " 3.0.2" ,
46
48
"rollup" : " 1.32.0" ,
Original file line number Diff line number Diff line change 25
25
const path = require ( 'path' ) ;
26
26
const gulp = require ( 'gulp' ) ;
27
27
const babel = require ( 'gulp-babel' ) ;
28
+ const stripBanner = require ( 'gulp-strip-banner' ) ;
29
+ const headerComment = require ( 'gulp-header-comment' ) ;
28
30
const config = require ( '../config' ) ;
29
31
30
32
module . exports = function build ( ) {
31
33
return gulp . src ( path . join ( config . src , '**' , '*.js' ) )
34
+ . pipe ( stripBanner ( ) )
32
35
. pipe ( babel ( ) )
36
+ . pipe ( headerComment ( { file : path . join ( config . root , 'LICENSE' ) } ) )
33
37
. pipe ( gulp . dest ( config . dist ) ) ;
34
38
} ;
You can’t perform that action at this time.
0 commit comments