Skip to content

Commit

Permalink
chore(build): make sure bundle file is built if dist changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ajoslin committed May 23, 2014
1 parent afd670b commit cdac1dd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 3 additions & 3 deletions config/build.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ module.exports = {

angularIonicFiles: [
'js/angular/*.js',
'js/angular/service/**/*.js',
'js/angular/controller/**/*.js',
'js/angular/directive/**/*.js',
'js/angular/service/*/*.js',
'js/angular/controller/*/*.js',
'js/angular/directive/*/*.js',
],

//Which vendor files to include in dist, used by build
Expand Down
5 changes: 4 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,10 @@ gulp.task('bundle', [
], function() {
IS_RELEASE_BUILD && gulp.src(buildConfig.ionicBundleFiles.map(function(src) {
return src.replace(/.js$/, '.min.js');
}))
}), {
base: buildConfig.dist,
cwd: buildConfig.dist
})
.pipe(header(buildConfig.bundleBanner))
.pipe(concat('ionic.bundle.min.js'))
.pipe(gulp.dest(buildConfig.dist + '/js'));
Expand Down

0 comments on commit cdac1dd

Please sign in to comment.