You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@freemarker.apache.org by dd...@apache.org on 2019/08/17 20:49:02 UTC
[freemarker-docgen] branch master updated: Updated Nodejs/Gulp stack
This is an automated email from the ASF dual-hosted git repository.
ddekany pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/freemarker-docgen.git
The following commit(s) were added to refs/heads/master by this push:
new 517a8f3 Updated Nodejs/Gulp stack
517a8f3 is described below
commit 517a8f36c34792b6c479e728b9e8310473b7a6a3
Author: ddekany <dd...@apache.org>
AuthorDate: Sat Aug 17 22:35:12 2019 +0200
Updated Nodejs/Gulp stack
---
README.md | 2 +-
gulpfile.js | 17 ++++++++++-------
package.json | 20 ++++++++++----------
3 files changed, 21 insertions(+), 18 deletions(-)
diff --git a/README.md b/README.md
index 4c6004e..941b3b1 100644
--- a/README.md
+++ b/README.md
@@ -13,7 +13,7 @@ it tries to be reusable in other projects as well.
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 @@ var doNotEditHeader = "/*\n"
+ " * <#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 @@ gulp.task('styles', function() {
}))
.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 @@ gulp.task('js', function() {
.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"
}
}