Skip to content

Commit

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

ionicBundleFiles: [
'dist/js/ionic.js',
'dist/js/angular/angular.js',
'dist/js/angular/angular-animate.js',
'dist/js/angular/angular-sanitize.js',
'dist/js/angular-ui/angular-ui-router.js',
'dist/js/ionic-angular.js'
'js/ionic.js',
'js/angular/angular.js',
'js/angular/angular-animate.js',
'js/angular/angular-sanitize.js',
'js/angular-ui/angular-ui-router.js',
'js/ionic-angular.js'
],

//Exclamation can be no longer than 14 chars
Expand Down
5 changes: 4 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,10 @@ gulp.task('bundle', [
.pipe(concat('ionic.bundle.min.js'))
.pipe(gulp.dest(buildConfig.dist + '/js'));

return gulp.src(buildConfig.ionicBundleFiles)
return gulp.src(buildConfig.ionicBundleFiles, {
base: buildConfig.dist,
cwd: buildConfig.dist
})
.pipe(header(buildConfig.bundleBanner))
.pipe(concat('ionic.bundle.js'))
.pipe(gulp.dest(buildConfig.dist + '/js'));
Expand Down

0 comments on commit afd670b

Please sign in to comment.