Skip to content

Commit

Permalink
Merge pull request ericduran#59 from lauriii/revert-57-fix-403-on-build
Browse files Browse the repository at this point in the history
Revert "Remove the clean command so the site doesn't go down during a…
  • Loading branch information
lewisnyman committed May 11, 2015
2 parents a47834f + 88b4706 commit 502cabf
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,21 +72,21 @@ gulp.task('clean', function(cb) {
});

// Copy all javascripts
gulp.task('javascripts', function() {
gulp.task('javascripts', ['clean'], function() {
return gulp.src(paths.scripts)
.pipe(gulp.dest('dist/js'));
});

// Copy all static images
gulp.task('images', function() {
gulp.task('images', ['clean'], function() {
return gulp.src(paths.images)
// Pass in options to the task
.pipe(imagemin({optimizationLevel: 5}))
.pipe(gulp.dest('dist/images'));
});

// Compile Sass
gulp.task('sass', function () {
gulp.task('sass', ['clean'], function () {
return gulp.src(paths.scss)
.pipe(sass())
.pipe(gulp.dest('dist/css'));
Expand Down Expand Up @@ -122,7 +122,7 @@ gulp.task('minifyhtml', function() {

// The whole shebang
gulp.task('default', function(callback) {
runSequence(['bower', 'drupalcore'],
runSequence(['clean', 'bower', 'drupalcore'],
['buildcontributors', 'buildcompanies', 'buildjson', 'javascripts', 'images', 'sass'],
'usemin',
'minifyhtml',
Expand All @@ -131,7 +131,7 @@ gulp.task('default', function(callback) {

// Run contributors only, because companies can take ages the first time
gulp.task('contributors', function(callback) {
runSequence(['bower', 'drupalcore'],
runSequence(['clean', 'bower', 'drupalcore'],
['buildcontributors', 'buildjson', 'javascripts', 'images', 'sass'],
'usemin',
'minifyhtml',
Expand Down

0 comments on commit 502cabf

Please sign in to comment.