You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flagon.apache.org by po...@apache.org on 2019/03/29 00:33:02 UTC
[incubator-flagon-useralejs] 03/03: [Patch: SENSSOFT-340] Updates
to NPM dep. in package.js, including engines (NPM/NJS), Rollup,
and Rollup-plugin-json
This is an automated email from the ASF dual-hosted git repository.
poorejc pushed a commit to branch FLAGON-336
in repository https://gitbox.apache.org/repos/asf/incubator-flagon-useralejs.git
commit 73a4f61e99c20d9e16f9460cfc2fe413975bb82f
Author: poorejc <po...@apache.org>
AuthorDate: Fri Mar 1 01:39:28 2019 -0500
[Patch: SENSSOFT-340] Updates to NPM dep. in package.js, including engines (NPM/NJS), Rollup, and Rollup-plugin-json
---
gulpfile.js | 27 +++++++++++++++------------
package.json | 8 ++++----
2 files changed, 19 insertions(+), 16 deletions(-)
diff --git a/gulpfile.js b/gulpfile.js
index 7fc8d34..626831c 100755
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -42,16 +42,16 @@ gulp.task('clean', function() {
// Build the module with Rollup
gulp.task('rollup', function() {
return rollup({
- entry : 'src/main.js',
+ input : 'src/main.js',
plugins : [
json()
]
})
.then(function(bundle) {
return bundle.write({
+ file : 'build/' + userale + '.js',
format : 'iife',
- moduleName : 'userale',
- dest : 'build/' + userale + '.js'
+ name : 'userale',
});
});
});
@@ -60,15 +60,16 @@ gulp.task('rollup', function() {
// Build the module with Rollup
gulp.task('rollup-web-ext-content', function() {
return rollup({
- entry : 'src/' + userAleWebExtDirName + '/content.js',
+ input : 'src/' + userAleWebExtDirName + '/content.js',
plugins : [
json()
]
})
.then(function(bundle) {
return bundle.write({
- moduleName : 'user-ale-ext-content',
- dest : 'build/' + userAleWebExtDirName + '/content.js'
+ file : 'build/' + userAleWebExtDirName + '/content.js',
+ name : 'user-ale-ext-content',
+ format : 'esm'
});
});
});
@@ -76,15 +77,16 @@ gulp.task('rollup-web-ext-content', function() {
// Build the module with Rollup
gulp.task('rollup-web-ext-background', function() {
return rollup({
- entry : 'src/' + userAleWebExtDirName + '/background.js',
+ input : 'src/' + userAleWebExtDirName + '/background.js',
plugins : [
json()
]
})
.then(function(bundle) {
return bundle.write({
- moduleName : 'user-ale-ext-background',
- dest : 'build/' + userAleWebExtDirName + '/background.js'
+ file : 'build/' + userAleWebExtDirName + '/background.js',
+ name : 'user-ale-ext-background',
+ format : 'esm'
});
});
});
@@ -92,15 +94,16 @@ gulp.task('rollup-web-ext-background', function() {
// Build the module with Rollup
gulp.task('rollup-web-ext-options', function() {
return rollup({
- entry : 'src/' + userAleWebExtDirName + '/options.js',
+ input : 'src/' + userAleWebExtDirName + '/options.js',
plugins : [
json()
]
})
.then(function(bundle) {
return bundle.write({
- moduleName : 'user-ale-ext-options',
- dest : 'build/' + userAleWebExtDirName + '/options.js'
+ file : 'build/' + userAleWebExtDirName + '/options.js',
+ name : 'user-ale-ext-options',
+ format : "esm"
});
});
});
diff --git a/package.json b/package.json
index bb61ea9..9765f23 100755
--- a/package.json
+++ b/package.json
@@ -33,8 +33,8 @@
},
"homepage": "http://senssoft.incubator.apache.org",
"engines": {
- "node": "~8.2.1",
- "npm": "~5.3.0"
+ "node": "~11.10.1",
+ "npm": "~6.7.0"
},
"devDependencies": {
"babel-preset-env": "^1.7.0",
@@ -54,8 +54,8 @@
"gulp-uglify": "^3.0.1",
"jsdom": "^8.4.0",
"nodemon": "^1.9.2",
- "rollup": "^0.26.0",
- "rollup-plugin-json": "^2.0.1",
+ "rollup": "^1.3.2",
+ "rollup-plugin-json": "^3.1.0",
"sinon": "^1.17.6"
},
"dependencies": {