From 9cfd95f5ba73dedbd933332fa783d724515dd394 Mon Sep 17 00:00:00 2001 From: Andy Joslin Date: Sat, 8 Mar 2014 12:37:44 -0700 Subject: [PATCH] chore(build): make bundle have proper banner --- gulpfile.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index aba64a56c6..1f6421d2ce 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -26,11 +26,13 @@ var banner = _.template(buildConfig.banner, { pkg: pkg }); var IS_RELEASE_BUILD = !!argv.release; if (IS_RELEASE_BUILD) { - gutil.log(gutil.colors.red('--release:'), + gutil.log( + gutil.colors.red('--release:'), 'Building release version (minified, debugs stripped)...' ); } + gulp.task('default', ['build']); gulp.task('build', ['bundle', 'sass']); @@ -59,7 +61,6 @@ 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)); @@ -96,8 +97,8 @@ gulp.task('vendor', function() { gulp.task('scripts', function() { return gulp.src(buildConfig.ionicFiles) - .pipe(concat('ionic.js')) .pipe(gulpif(IS_RELEASE_BUILD, stripDebug())) + .pipe(concat('ionic.js')) .pipe(header(banner)) .pipe(gulp.dest(buildConfig.distJs)) .pipe(gulpif(IS_RELEASE_BUILD, uglify()))