Skip to content

Commit d515edc

Browse files
chore(deps): update (#434)
1 parent 4c1e3f3 commit d515edc

File tree

6 files changed

+274
-167
lines changed

6 files changed

+274
-167
lines changed

.editorconfig

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,4 @@ insert_final_newline = true
99
trim_trailing_whitespace = true
1010

1111
[*.md]
12-
insert_final_newline = true
13-
trim_trailing_whitespace = false
12+
trim_trailing_whitespace = false

azure-pipelines.yml

Lines changed: 45 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@ trigger:
22
- master
33
- next
44

5+
variables:
6+
npm_config_cache: $(Pipeline.Workspace)/.npm
7+
58
jobs:
69
- job: Lint
710
pool:
8-
vmImage: ubuntu-16.04
11+
vmImage: ubuntu-latest
912
steps:
1013
- task: NodeTool@0
1114
inputs:
@@ -20,26 +23,29 @@ jobs:
2023
node -v
2124
npm -v
2225
displayName: 'Print versions'
23-
- task: Npm@1
26+
- task: CacheBeta@1
2427
inputs:
25-
command: custom
26-
customCommand: ci
28+
key: npm | $(Agent.OS) | package-lock.json
29+
path: $(npm_config_cache)
30+
displayName: 'Cache npm'
31+
- script: npm ci
2732
displayName: 'Install dependencies'
2833
- script: npm run lint
2934
displayName: 'Run lint'
3035
- script: npm run security
3136
displayName: 'Run NPM audit'
3237
- script: ./node_modules/.bin/commitlint-azure-pipelines
3338
displayName: 'Run lint commit message'
34-
- script: npm run validate:runtime
35-
displayName: 'Lint runtime code'
3639

3740
- job: Linux
3841
pool:
39-
vmImage: ubuntu-16.04
42+
vmImage: ubuntu-latest
4043
strategy:
41-
maxParallel: 4
44+
maxParallel: 5
4245
matrix:
46+
node-13:
47+
node_version: ^13.0.0
48+
webpack_version: latest
4349
node-12:
4450
node_version: ^12.0.0
4551
webpack_version: latest
@@ -49,8 +55,8 @@ jobs:
4955
node-8:
5056
node_version: ^8.9.0
5157
webpack_version: latest
52-
node-8-canary:
53-
node_version: ^8.9.0
58+
node-10-canary:
59+
node_version: ^10.13.0
5460
webpack_version: next
5561
continue_on_error: true
5662
steps:
@@ -67,10 +73,12 @@ jobs:
6773
node -v
6874
npm -v
6975
displayName: 'Print versions'
70-
- task: Npm@1
76+
- task: CacheBeta@1
7177
inputs:
72-
command: custom
73-
customCommand: ci
78+
key: npm | $(Agent.OS) | package-lock.json
79+
path: $(npm_config_cache)
80+
displayName: 'Cache npm'
81+
- script: npm ci
7482
displayName: 'Install dependencies'
7583
- script: npm i webpack@$(webpack_version)
7684
displayName: 'Install "webpack@$(webpack_version)"'
@@ -88,10 +96,13 @@ jobs:
8896

8997
- job: macOS
9098
pool:
91-
vmImage: macOS-10.14
99+
vmImage: macOS-latest
92100
strategy:
93-
maxParallel: 4
101+
maxParallel: 5
94102
matrix:
103+
node-13:
104+
node_version: ^13.0.0
105+
webpack_version: latest
95106
node-12:
96107
node_version: ^12.0.0
97108
webpack_version: latest
@@ -101,8 +112,8 @@ jobs:
101112
node-8:
102113
node_version: ^8.9.0
103114
webpack_version: latest
104-
node-8-canary:
105-
node_version: ^8.9.0
115+
node-10-canary:
116+
node_version: ^10.13.0
106117
webpack_version: next
107118
continue_on_error: true
108119
steps:
@@ -119,10 +130,12 @@ jobs:
119130
node -v
120131
npm -v
121132
displayName: 'Print versions'
122-
- task: Npm@1
133+
- task: CacheBeta@1
123134
inputs:
124-
command: custom
125-
customCommand: ci
135+
key: npm | $(Agent.OS) | package-lock.json
136+
path: $(npm_config_cache)
137+
displayName: 'Cache npm'
138+
- script: npm ci
126139
displayName: 'Install dependencies'
127140
- script: npm i webpack@$(webpack_version)
128141
displayName: 'Install "webpack@$(webpack_version)"'
@@ -140,10 +153,13 @@ jobs:
140153

141154
- job: Windows
142155
pool:
143-
vmImage: windows-2019
156+
vmImage: windows-latest
144157
strategy:
145-
maxParallel: 4
158+
maxParallel: 5
146159
matrix:
160+
node-13:
161+
node_version: ^13.0.0
162+
webpack_version: latest
147163
node-12:
148164
node_version: ^12.0.0
149165
webpack_version: latest
@@ -153,8 +169,8 @@ jobs:
153169
node-8:
154170
node_version: ^8.9.0
155171
webpack_version: latest
156-
node-8-canary:
157-
node_version: ^8.9.0
172+
node-10-canary:
173+
node_version: ^10.13.0
158174
webpack_version: next
159175
continue_on_error: true
160176
steps:
@@ -174,10 +190,12 @@ jobs:
174190
node -v
175191
npm -v
176192
displayName: 'Print versions'
177-
- task: Npm@1
193+
- task: CacheBeta@1
178194
inputs:
179-
command: custom
180-
customCommand: ci
195+
key: npm | $(Agent.OS) | package-lock.json
196+
path: $(npm_config_cache)
197+
displayName: 'Cache npm'
198+
- script: npm ci
181199
displayName: 'Install dependencies'
182200
- script: npm i webpack@$(webpack_version)
183201
displayName: 'Install "webpack@$(webpack_version)"'

lint-staged.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
module.exports = {
22
'*.js': ['prettier --write', 'eslint --fix', 'git add'],
3-
'*.{json,md,yml,css}': ['prettier --write', 'git add'],
3+
'*.{json,md,yml,css,ts}': ['prettier --write', 'git add'],
44
};

0 commit comments

Comments
 (0)