Updated Nodejs/Gulp stack
diff --git a/README.md b/README.md
index 4c6004e..941b3b1 100644
--- a/README.md
+++ b/README.md
@@ -13,7 +13,7 @@
Before building for the first time:
* JDK 8 must be used (tried with 1.8.0_20)
* Apache Ant must be installed (tried with 1.8.1), and use JDK 8 for building.
-* [Node.js](https://nodejs.org/) must be installed (tried with v0.12.4).
+* [Node.js](https://nodejs.org/) must be installed (tried with v10.16.2).
* Create a `build.properties` file based on `build.properties.sample`
* Issue `npm install` from the project directory to install Node.js
dependencies. This need to be repeated if you add new dependencies
diff --git a/gulpfile.js b/gulpfile.js
index 1def2e2..3ff9e1d 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -41,7 +41,7 @@
+ " * <#DO_NOT_UPDATE_COPYRIGHT>\n"
+ " */\n\n"
-gulp.task('styles', function() {
+gulp.task('styles', gulp.series(function(done) {
gulp.src(path.join(BASE_DIR, 'less', 'styles.less'))
.pipe(less({ paths: path.join(__dirname, 'node_modules') }))
@@ -60,9 +60,10 @@
}))
.pipe(headerfooter.header(copyrightHeader))
.pipe(gulp.dest(OUT_DIR));
-});
+ done();
+}));
-gulp.task('js', function() {
+gulp.task('js', gulp.series(function(done) {
return gulp.src([
path.join(BASE_DIR, 'js', 'use-strict.js'),
path.join(BASE_DIR, 'js', 'make-toc.js'),
@@ -76,11 +77,13 @@
.pipe(rename({ suffix: '.min' }))
.pipe(headerfooter.header(copyrightHeader))
.pipe(gulp.dest(OUT_DIR));
-});
+ done();
+}));
-gulp.task('default', ['styles', 'js']);
+gulp.task('default', gulp.series(['styles', 'js']));
-gulp.task('watch-less', ['styles'], function() {
+gulp.task('watch-less', gulp.series(['styles'], function(done) {
// watch less files
gulp.watch([path.join(BASE_DIR, 'less', '**', '*')], ['styles']);
-});
+ done();
+}));
diff --git a/package.json b/package.json
index d402648..26bb02c 100644
--- a/package.json
+++ b/package.json
@@ -7,19 +7,19 @@
"lint": "./node_modules/.bin/eslint --ext .js ./src/main/org/freemarker/docgen/js/"
},
"dependencies": {
- "clean-css": "3.4.8",
+ "gulp-clean-css": "4.2.0",
"eslint": "1.10.2",
- "gulp": "3.9.0",
- "gulp-autoprefixer": "3.1.0",
- "gulp-concat": "2.6.0",
- "gulp-less": "3.0.5",
- "gulp-minify-css": "1.2.1",
- "gulp-rename": "1.2.2",
- "gulp-uglify": "1.5.1",
+ "gulp": "4.0.2",
+ "gulp-autoprefixer": "6.1.0",
+ "gulp-concat": "2.6.1",
+ "gulp-less": "4.0.1",
+ "gulp-minify-css": "1.2.4",
+ "gulp-rename": "1.4.0",
+ "gulp-uglify": "3.0.2",
"gulp-headerfooter": "1.0.3",
- "less": "2.5.3"
+ "less": "3.10.0"
},
"engines": {
- "node": ">=0.12.4"
+ "node": ">=10.0.0"
}
}