Skip to content
This repository has been archived by the owner on Jul 21, 2019. It is now read-only.

Commit

Permalink
add copy images task (#161)
Browse files Browse the repository at this point in the history
* add copy images task

* add copy images to default gulp
  • Loading branch information
mattstratton authored Feb 2, 2017
1 parent 480d1c8 commit f658d62
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions gulp/tasks/copy-static-files.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,10 @@ gulp.task('copy-static-files', function(callback) {
callback
)
})

gulp.task('copy-images', function(callback) {
return gulp.src(['public/**/*.png', 'public/**/*.jpg',
'!public/favicon*', '!public/apple-icon*', '!public/android-icon*', '!public/ms-icon*'
])
.pipe(gulp.dest('staging'));
})
2 changes: 1 addition & 1 deletion gulp/tasks/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ var gulp = require('gulp'),
runSequence = require('run-sequence');

gulp.task('default', function (callback) {
runSequence('copy-js', 'copy-css', 'copy-html', 'revision', 'revision-update', 'copy-static-files',
runSequence('copy-js', 'copy-css', 'copy-images', 'copy-html', 'revision', 'revision-update', 'copy-static-files',
callback
)
})
Expand Down

0 comments on commit f658d62

Please sign in to comment.