Update gulpfile sequence
parent
ab35c2814f
commit
1b4a823d1d
|
@ -2,9 +2,10 @@ const gulp = require('gulp');
|
|||
const cleanCSS = require('gulp-clean-css');
|
||||
const minify = require('gulp-minify');
|
||||
const rename = require('gulp-rename');
|
||||
const runsequence = require('run-sequence');
|
||||
|
||||
gulp.task('compressJS', () => {
|
||||
gulp.src(['public/javascripts/*.js', '!public/javascripts/*.min.js'])
|
||||
return gulp.src(['public/javascripts/*.js', '!public/javascripts/*.min.js'])
|
||||
.pipe(minify({
|
||||
ext: {
|
||||
src: '.js',
|
||||
|
@ -29,4 +30,6 @@ gulp.task('compressCSS', () => {
|
|||
});
|
||||
|
||||
// run the tasks
|
||||
gulp.task('deploy', ['compressJS', 'compressCSS']);
|
||||
gulp.task('deploy', (callback) => {
|
||||
runsequence('compressJS', 'compressCSS', callback);
|
||||
});
|
||||
|
|
13
package.json
13
package.json
|
@ -49,7 +49,8 @@
|
|||
"gulp": "latest",
|
||||
"gulp-clean-css": "^3.9.2",
|
||||
"gulp-minify": "^2.1.0",
|
||||
"gulp-rename": "^1.2.2"
|
||||
"gulp-rename": "^1.2.2",
|
||||
"run-sequence": "^2.2.1"
|
||||
},
|
||||
"main": "app.js",
|
||||
"keywords": [
|
||||
|
@ -64,5 +65,13 @@
|
|||
"shopping"
|
||||
],
|
||||
"author": "Mark Moffat",
|
||||
"homepage": "https://expresscart.markmoffat.com"
|
||||
"homepage": "https://expresscart.markmoffat.com",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/mrvautin/expressCart.git"
|
||||
},
|
||||
"license": "ISC",
|
||||
"bugs": {
|
||||
"url": "https://github.com/mrvautin/expressCart/issues"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue