From bb7cd52305fb91db9de5ba91d9d7ae8f9209caae Mon Sep 17 00:00:00 2001 From: "stephane lacoin (aka nxmatic)" Date: Mon, 15 Jan 2024 10:37:27 +0000 Subject: [PATCH] gulp alignment --- gulpfile.babel.js | 8 ++++---- package.json | 8 +++++--- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/gulpfile.babel.js b/gulpfile.babel.js index 183333ea..2f00fa47 100644 --- a/gulpfile.babel.js +++ b/gulpfile.babel.js @@ -9,19 +9,19 @@ import gulpLoadPlugins from 'gulp-load-plugins'; import ls from 'list-directory-contents'; import minimist from 'minimist'; import moment from 'moment'; -import ms from 'merge-stream'; import path from 'path'; import replace from 'gulp-replace'; import runSequence from 'run-sequence'; -import { stream as wiredep } from 'wiredep'; import util from 'gulp-util'; +const $ = gulpLoadPlugins({ + config: process.cwd() + '/package.json' +}); const knownOptions = { string: 'env', default: { env: process.env.NODE_ENV || 'test' } }; const options = minimist(process.argv.slice(2), knownOptions); -const $ = gulpLoadPlugins(); const test = options.env; const copyrighted = [ 'app/*.html', @@ -571,4 +571,4 @@ gulp.task('zip:source', () => { return gulp.src(['./**','!/dist/**','!./package/**','!./node_modules/**','!.git*','!./.git/**']).pipe($.zip(filename)).pipe(gulp.dest('.')); }); -gulp.task('create-source-archive', gulp.series('clean','zip:source')); \ No newline at end of file +gulp.task('create-source-archive', gulp.series('clean','zip:source')); diff --git a/package.json b/package.json index 2629ad09..b54c74fc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nuxeo-extension", - "type": "module", + "type": "module", "private": true, "engines": { "node": ">=10.12.0" @@ -11,12 +11,13 @@ "@babel/preset-env": "^7.5.5", "@babel/register": "^7.5.5", "@wdio/cli": "^5.12.5", - "@wdio/cucumber-framework": "^5.12.3", + "@wdio/cucumber-framework": "^6.0.13", "@wdio/local-runner": "^5.12.5", "@wdio/selenium-standalone-service": "^5.12.1", "@wdio/spec-reporter": "^5.12.1", "@wdio/sync": "^5.12.3", "babel-eslint": "^10.0.3", + "babel-register": "^6.26.0", "del": "^5.1.0", "eslint-config-airbnb-base": "^14.0.0", "eslint-plugin-import": "^2.18.2", @@ -28,13 +29,14 @@ "gulp-eslint": "^6.0.0", "gulp-filter": "^6.0.0", "gulp-livereload": "^4.0.1", - "gulp-load-plugins": "^2.0.1", + "gulp-load-plugins": "^2.0.8", "gulp-replace": "^1.0.0", "gulp-size": "^3.0.0", "gulp-util": "^3.0.8", "gulp-zip": "^5.0.0", "list-directory-contents": "0.0.3", "merge-stream": "^2.0.0", + "minimist": "1.2.8", "moment": "^2.24.0", "request-promise": "^4.2.4", "run-sequence": "^2.2.1",