Skip to content

Instantly share code, notes, and snippets.

@dannyfritz
Created January 14, 2015 21:37
Show Gist options
  • Save dannyfritz/e0ec2bb00a064eb297bd to your computer and use it in GitHub Desktop.
Save dannyfritz/e0ec2bb00a064eb297bd to your computer and use it in GitHub Desktop.
...
var legacyScriptsArr = [
'./path/to/legacy-script1.js',
'./path/to/legacy-script2.js',
'./path/to/legacy-script3.js',
'./path/to/legacy-script4.js',
'./path/to/legacy-script5.js',
];
gulp.task('testCompile1', function(done){
return browserify(browserifyEntries)
.transform(hbsfy)
.transform(uglifyify)
.bundle()
.pipe(source('browserified.js'))
.pipe(gulp.src(legacyScriptsArr))
.pipe(tap(0))
.pipe(gulp.dest('./assets/compiled/'))
.on('end', done);
});
gulp.task('testCompile2', function(){
return gulp.src(legacyScriptsArr)
.pipe(tap(0))
.pipe(gulp.dest('./assets/compiled/'));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment