chore(build): make ionic-angular.js have proper banner

This commit is contained in:
Andy Joslin
2014-03-08 11:33:52 -07:00
parent 5c6190e8a6
commit 1130f60902

View File

@@ -59,6 +59,7 @@ gulp.task('bundle', [
IS_RELEASE_BUILD && gulp.src(buildConfig.ionicBundleFiles.map(function(src) {
return src.replace(/.js$/, '.min.js');
}))
.pipe(header(buildConfig.bundleBanner))
.pipe(header(buildConfig.bundleBanner))
.pipe(concat('ionic.bundle.min.js'))
.pipe(gulp.dest(buildConfig.distJs));
@@ -107,11 +108,11 @@ gulp.task('scripts', function() {
gulp.task('scripts-ng', function() {
return gulp.src(buildConfig.angularIonicFiles)
.pipe(gulpif(IS_RELEASE_BUILD, stripDebug()))
.pipe(concat('ionic-angular.js'))
.pipe(gulpif(IS_RELEASE_BUILD, uglify()))
.pipe(header(banner))
.pipe(gulp.dest(buildConfig.distJs))
.pipe(gulpif(IS_RELEASE_BUILD, stripDebug()))
.pipe(gulpif(IS_RELEASE_BUILD, uglify()))
.pipe(rename({ extname: '.min.js' }))
.pipe(header(banner))
.pipe(gulp.dest(buildConfig.distJs));