Skip to content

Commit 4077665

Browse files
committed
feat: update to node 14.8.2
1 parent 1836aec commit 4077665

File tree

6 files changed

+292
-17
lines changed

6 files changed

+292
-17
lines changed

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
14.18.2

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ git:
1717
language: node_js
1818

1919
node_js:
20-
- 8.11.2
20+
- 14.8.2
2121

2222
before_install:
2323
- npm i -g [email protected]

azure-pipelines.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ stages:
4848
vmImage: 'windows-2022'
4949

5050
steps:
51-
- task: UseNode@1
51+
- task: NodeTool@0
5252
inputs:
53-
version: '10.16.3'
54-
displayName: 'Install Node.js 10.16.3'
55-
- script: yarn install
53+
versionSpec: '14.18.2'
54+
displayName: 'Install Node.js 14.18.2'
55+
- script: yarn install --ignore-optional
5656
displayName: 'Run yarn install'
5757
- script: yarn gulp release --win64
5858
displayName: 'Run yarn release for win64'
@@ -71,13 +71,13 @@ stages:
7171
vmImage: 'macos-10.15'
7272

7373
steps:
74-
- task: UseNode@1
74+
- task: NodeTool@0
7575
inputs:
76-
version: '10.16.3'
77-
displayName: 'Install Node.js 10.16.3'
76+
versionSpec: '14.18.2'
77+
displayName: 'Install Node.js 14.18.2'
7878
- script: npm install -g gulp
7979
displayName: 'Install Gulp'
80-
- script: yarn install
80+
- script: yarn install --ignore-optional
8181
displayName: 'Run yarn install'
8282
- script: yarn gulp release --osx64
8383
displayName: 'Run yarn release for OSX'
@@ -96,11 +96,11 @@ stages:
9696
vmImage: '$(linuxVmImage)'
9797

9898
steps:
99-
- task: UseNode@1
99+
- task: NodeTool@0
100100
inputs:
101-
version: '10.16.3'
102-
displayName: 'Install Node.js 10.16.3'
103-
- script: yarn install
101+
versionSpec: '14.18.2'
102+
displayName: 'Install Node.js 14.18.2'
103+
- script: yarn install --ignore-optional
104104
displayName: 'Run yarn install'
105105
- script: yarn gulp release --linux64
106106
displayName: 'Run yarn release for linux'

gulp-appdmg.js

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
2+
const appdmg = require('appdmg');
3+
const through = require('through2');
4+
const gutil = require('gulp-util');
5+
6+
const PluginError = gutil.PluginError;
7+
const PLUGIN_NAME = 'gulp-appdmg';
8+
9+
module.exports = function(options) {
10+
const stream = through.obj(function(file, encoding, next) {
11+
next();
12+
}, function(callback) {
13+
const self = this;
14+
const ee = appdmg(options);
15+
16+
ee.on('progress', function(info) {
17+
gutil.log(info.current + '/' + info.total + ' ' + info.type + ' ' + (info.title || info.status));
18+
});
19+
20+
ee.on('error', function(err) {
21+
self.emit('error', new PluginError(PLUGIN_NAME, err));
22+
callback();
23+
});
24+
25+
ee.on('finish', callback);
26+
});
27+
28+
// returning the file stream
29+
stream.resume();
30+
return stream;
31+
};

package.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"gulp-concat": "~2.6.1",
3939
"gulp-debian": "~0.1.8",
4040
"gulp-rename": "^2.0.0",
41+
"gulp-util": "3.0.8",
4142
"gulp-yarn": "^2.0.0",
4243
"gulp-zip": "^5.0.0",
4344
"inflection": "1.12.0",
@@ -46,11 +47,18 @@
4647
"platform-dependent-modules": "0.0.14",
4748
"rpm-builder": "^1.0.0",
4849
"temp": "^0.9.0",
50+
"through2": "4.0.2",
4951
"yarn": "^1.22.0"
5052
},
53+
"optionalDependencies": {
54+
"appdmg": "^0.6.2"
55+
},
5156
"resolutions": {
5257
"**/**/lodash.template": "^4.5.0"
5358
},
59+
"engines": {
60+
"node": "14.x"
61+
},
5462
"config": {
5563
"platformDependentModules": {
5664
"darwin": [

0 commit comments

Comments
 (0)