Update gulpfile sequence

react_convert
Mark Moffat 2018-02-03 20:13:14 +01:00
parent ab35c2814f
commit 1b4a823d1d
2 changed files with 16 additions and 4 deletions

View File

@ -2,9 +2,10 @@ const gulp = require('gulp');
const cleanCSS = require('gulp-clean-css'); const cleanCSS = require('gulp-clean-css');
const minify = require('gulp-minify'); const minify = require('gulp-minify');
const rename = require('gulp-rename'); const rename = require('gulp-rename');
const runsequence = require('run-sequence');
gulp.task('compressJS', () => { gulp.task('compressJS', () => {
gulp.src(['public/javascripts/*.js', '!public/javascripts/*.min.js']) return gulp.src(['public/javascripts/*.js', '!public/javascripts/*.min.js'])
.pipe(minify({ .pipe(minify({
ext: { ext: {
src: '.js', src: '.js',
@ -29,4 +30,6 @@ gulp.task('compressCSS', () => {
}); });
// run the tasks // run the tasks
gulp.task('deploy', ['compressJS', 'compressCSS']); gulp.task('deploy', (callback) => {
runsequence('compressJS', 'compressCSS', callback);
});

View File

@ -49,7 +49,8 @@
"gulp": "latest", "gulp": "latest",
"gulp-clean-css": "^3.9.2", "gulp-clean-css": "^3.9.2",
"gulp-minify": "^2.1.0", "gulp-minify": "^2.1.0",
"gulp-rename": "^1.2.2" "gulp-rename": "^1.2.2",
"run-sequence": "^2.2.1"
}, },
"main": "app.js", "main": "app.js",
"keywords": [ "keywords": [
@ -64,5 +65,13 @@
"shopping" "shopping"
], ],
"author": "Mark Moffat", "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"
}
} }