Skip to content

Commit

Permalink
添加部署命令 gulp dist:all
Browse files Browse the repository at this point in the history
  • Loading branch information
amio committed Jun 3, 2014
1 parent 5dc17b8 commit c8cb320
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ var BUILD_STAMP = '<!--BUILDSTAMP-->';

gulp.task('html2js', function () {
return gulp.src(SOURCE_ROOT + "/partials/*.html")
.pipe($.replace(BUILD_STAMP, 'Build:'+ new Date().toISOString().replace(/-|T.*/g,'')))
.pipe($.replace(BUILD_STAMP, 'Build:' + new Date().toISOString().replace(/-|T.*/g, '')))
.pipe($.ngHtml2js({
moduleName: "toHELL",
prefix: "partials/"
Expand Down Expand Up @@ -151,7 +151,7 @@ gulp.task('copy', function () {
// Homepage
gulp.src(['app/fonts/**/*'])
.pipe(gulp.dest('dist/home/fonts'));
gulp.src(['app/images/intro-*','app/images/un-team.png'])
gulp.src(['app/images/intro-*', 'app/images/un-team.png'])
.pipe(gulp.dest('dist/home/images/'));
});

Expand Down Expand Up @@ -207,6 +207,8 @@ gulp.task('dist', function () {
distribution('debug');
});

gulp.task('dist:all', ['dist', 'dist:ctqa', 'dist:io']);

/**
* =====================================
* General Tasks
Expand Down

0 comments on commit c8cb320

Please sign in to comment.