Skip to content

Commit

Permalink
chore(build): make ionic-angular.js have proper banner
Browse files Browse the repository at this point in the history
  • Loading branch information
ajoslin committed Mar 8, 2014
1 parent 5c6190e commit 1130f60
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down Expand Up @@ -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));
Expand Down

0 comments on commit 1130f60

Please sign in to comment.