[dependencies] Upgrade packages dependencies

This commit is contained in:
Joxit 2017-09-05 23:09:19 +02:00
parent 961342d34c
commit 83e2befd5d
2 changed files with 11 additions and 9 deletions

View file

@ -14,7 +14,7 @@ var uglify = require('uglify-js-harmony');
var useref = require('gulp-useref'); var useref = require('gulp-useref');
gulp.task('html', function() { gulp.task('html', function() {
var htmlFilter = filter('**/*.html'); var htmlFilter = filter('**/*.html', {restore: true});
return gulp.src(['src/index.html']) return gulp.src(['src/index.html'])
.pipe(useref()) .pipe(useref())
.pipe(gIf(['*.js', '!*.min.js'], minifier({}, uglify))) // FIXME .pipe(gIf(['*.js', '!*.min.js'], minifier({}, uglify))) // FIXME
@ -26,12 +26,12 @@ gulp.task('html', function() {
removeEmptyAttributes: true, removeEmptyAttributes: true,
minifyJS: uglify minifyJS: uglify
})) }))
.pipe(htmlFilter.restore()) .pipe(htmlFilter.restore)
.pipe(gulp.dest('dist')); .pipe(gulp.dest('dist'));
}); });
gulp.task('clean', function(done) { gulp.task('clean', function(done) {
del(['dist'], done); return del(['dist']);
}); });
gulp.task('riot-tag', ['html'], function() { gulp.task('riot-tag', ['html'], function() {

View file

@ -14,21 +14,23 @@
"dependencies": { "dependencies": {
}, },
"devDependencies": { "devDependencies": {
"del": "^0.1.3", "del": "^3.0.0",
"dialog-polyfill": "^0.4", "dialog-polyfill": "^0.4",
"gulp": "^3.9", "gulp": "^3.9",
"gulp-clean-css": "^3.7.0",
"gulp-concat": "^2.6.0", "gulp-concat": "^2.6.0",
"gulp-filter": "^1.0.0", "gulp-filter": "^5.0.1",
"gulp-htmlmin": "^2.0.0", "gulp-htmlmin": "^3.0.0",
"gulp-if": "^2.0.0", "gulp-if": "^2.0.0",
"gulp-license": "^1.1.0", "gulp-license": "^1.1.0",
"gulp-clean-css": "^2.0.11",
"gulp-riot": "^0.5.2", "gulp-riot": "^0.5.2",
"gulp-uglify": "^1.0.0", "gulp-uglify": "^2.1.2",
"gulp-useref": "^3.0.0", "gulp-useref": "^3.0.0",
"material-design-lite": "^1.1", "material-design-lite": "^1.1",
"pump": "^1.0.2",
"riot": "^2.3", "riot": "^2.3",
"riotgear-router": "^1.3.1", "riotgear-router": "^1.3.1",
"uglify-js-harmony": "^2.6.2" "uglify-js": "^3.0.28",
"uglify-js-harmony": "^2.7.7"
} }
} }