-
-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #495 from chmelevskij/master
chore: use node 14
- Loading branch information
Showing
7 changed files
with
653 additions
and
385 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
14.18.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ git: | |
language: node_js | ||
|
||
node_js: | ||
- 8.11.2 | ||
- 14.8.2 | ||
|
||
before_install: | ||
- npm i -g [email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
|
||
const appdmg = require('appdmg'); | ||
const through = require('through2'); | ||
const gutil = require('gulp-util'); | ||
|
||
const PluginError = gutil.PluginError; | ||
const PLUGIN_NAME = 'gulp-appdmg'; | ||
|
||
module.exports = function(options) { | ||
const stream = through.obj(function(file, encoding, next) { | ||
next(); | ||
}, function(callback) { | ||
const self = this; | ||
const ee = appdmg(options); | ||
|
||
ee.on('progress', function(info) { | ||
gutil.log(info.current + '/' + info.total + ' ' + info.type + ' ' + (info.title || info.status)); | ||
}); | ||
|
||
ee.on('error', function(err) { | ||
self.emit('error', new PluginError(PLUGIN_NAME, err)); | ||
callback(); | ||
}); | ||
|
||
ee.on('finish', callback); | ||
}); | ||
|
||
// returning the file stream | ||
stream.resume(); | ||
return stream; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,6 @@ | |
"default_locale": "en", | ||
"scripts": { | ||
"start": "gulp debug", | ||
"postinstall": "platform-dependent-modules", | ||
"gulp": "gulp", | ||
"release": "gulp release" | ||
}, | ||
|
@@ -35,27 +34,26 @@ | |
"command-exists": "^1.2.8", | ||
"del": "^5.0.0", | ||
"gulp": "^4.0.1", | ||
"gulp-concat": "~2.6.1", | ||
"gulp-debian": "~0.1.8", | ||
"gulp-rename": "^2.0.0", | ||
"gulp-yarn": "^2.0.0", | ||
"gulp-util": "3.0.8", | ||
"gulp-yarn": "^3.0.0", | ||
"gulp-zip": "^5.0.0", | ||
"inflection": "1.12.0", | ||
"nw-builder": "^3.5.7", | ||
"os": "^0.1.1", | ||
"platform-dependent-modules": "0.0.14", | ||
"rpm-builder": "^1.0.0", | ||
"temp": "^0.9.0", | ||
"through2": "4.0.2", | ||
"yarn": "^1.22.0" | ||
}, | ||
"optionalDependencies": { | ||
"appdmg": "^0.6.2" | ||
}, | ||
"resolutions": { | ||
"**/**/lodash.template": "^4.5.0" | ||
}, | ||
"config": { | ||
"platformDependentModules": { | ||
"darwin": [ | ||
"[email protected]" | ||
] | ||
} | ||
"engines": { | ||
"node": "14.x" | ||
} | ||
} |
Oops, something went wrong.