@dword-design/base 9.2.3 → 9.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/__snapshots__/index.spec.js.snap +2 -0
- package/dist/commands/{depcheck.js → depcheck/index.js} +0 -0
- package/dist/get-generated-files/get-github-workflow/__snapshots__/index.spec.js.snap +143 -0
- package/dist/get-generated-files/get-github-workflow/strategies/job-matrix.js +2 -2
- package/dist/index.js +3 -2
- package/package.json +6 -6
|
File without changes
|
|
@@ -147,6 +147,149 @@ Object {
|
|
|
147
147
|
}
|
|
148
148
|
`;
|
|
149
149
|
|
|
150
|
+
exports[`index job matrix no windows 1`] = `
|
|
151
|
+
Object {
|
|
152
|
+
"jobs": Object {
|
|
153
|
+
"cancel-existing": Object {
|
|
154
|
+
"if": "!contains(github.event.head_commit.message, '[skip ci]')",
|
|
155
|
+
"runs-on": "ubuntu-latest",
|
|
156
|
+
"steps": Array [
|
|
157
|
+
Object {
|
|
158
|
+
"env": Object {
|
|
159
|
+
"GITHUB_TOKEN": "\${{ secrets.GITHUB_TOKEN }}",
|
|
160
|
+
},
|
|
161
|
+
"uses": "rokroskar/workflow-run-cleanup-action@v0.3.3",
|
|
162
|
+
},
|
|
163
|
+
],
|
|
164
|
+
},
|
|
165
|
+
"release": Object {
|
|
166
|
+
"needs": "test",
|
|
167
|
+
"runs-on": "ubuntu-latest",
|
|
168
|
+
"steps": Array [
|
|
169
|
+
Object {
|
|
170
|
+
"uses": "actions/checkout@v3",
|
|
171
|
+
"with": Object {
|
|
172
|
+
"lfs": true,
|
|
173
|
+
"ref": "\${{ github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.head.ref || '' }}",
|
|
174
|
+
},
|
|
175
|
+
},
|
|
176
|
+
Object {
|
|
177
|
+
"uses": "actions/setup-node@v3",
|
|
178
|
+
"with": Object {
|
|
179
|
+
"node-version": 16,
|
|
180
|
+
},
|
|
181
|
+
},
|
|
182
|
+
Object {
|
|
183
|
+
"run": "git config --global user.email \\"actions@github.com\\"",
|
|
184
|
+
},
|
|
185
|
+
Object {
|
|
186
|
+
"run": "git config --global user.name \\"GitHub Actions\\"",
|
|
187
|
+
},
|
|
188
|
+
Object {
|
|
189
|
+
"run": "yarn --frozen-lockfile",
|
|
190
|
+
},
|
|
191
|
+
Object {
|
|
192
|
+
"run": "yarn checkUnknownFiles",
|
|
193
|
+
},
|
|
194
|
+
Object {
|
|
195
|
+
"run": "yarn lint",
|
|
196
|
+
},
|
|
197
|
+
Object {
|
|
198
|
+
"env": Object {
|
|
199
|
+
"GITHUB_REPOSITORY": "\${{ secrets.GITHUB_REPOSITORY }}",
|
|
200
|
+
"GITHUB_TOKEN": "\${{ secrets.GITHUB_TOKEN }}",
|
|
201
|
+
},
|
|
202
|
+
"name": "Push changed files",
|
|
203
|
+
"run": "yarn dw-ci push-changed-files",
|
|
204
|
+
},
|
|
205
|
+
Object {
|
|
206
|
+
"env": Object {
|
|
207
|
+
"GITHUB_TOKEN": "\${{ secrets.GITHUB_TOKEN }}",
|
|
208
|
+
},
|
|
209
|
+
"if": "github.ref == 'refs/heads/master'",
|
|
210
|
+
"name": "Release",
|
|
211
|
+
"run": "yarn semantic-release",
|
|
212
|
+
},
|
|
213
|
+
],
|
|
214
|
+
},
|
|
215
|
+
"test": Object {
|
|
216
|
+
"needs": "cancel-existing",
|
|
217
|
+
"runs-on": "\${{ matrix.os }}",
|
|
218
|
+
"steps": Array [
|
|
219
|
+
Object {
|
|
220
|
+
"uses": "actions/checkout@v3",
|
|
221
|
+
"with": Object {
|
|
222
|
+
"fetch-depth": 0,
|
|
223
|
+
"lfs": true,
|
|
224
|
+
},
|
|
225
|
+
},
|
|
226
|
+
Object {
|
|
227
|
+
"uses": "actions/setup-node@v3",
|
|
228
|
+
"with": Object {
|
|
229
|
+
"node-version": "\${{ matrix.node }}",
|
|
230
|
+
},
|
|
231
|
+
},
|
|
232
|
+
Object {
|
|
233
|
+
"run": "yarn --frozen-lockfile",
|
|
234
|
+
},
|
|
235
|
+
Object {
|
|
236
|
+
"env": Object {
|
|
237
|
+
"GH_TOKEN": "\${{ secrets.GITHUB_TOKEN }}",
|
|
238
|
+
},
|
|
239
|
+
"run": "yarn test",
|
|
240
|
+
},
|
|
241
|
+
Object {
|
|
242
|
+
"if": "failure()",
|
|
243
|
+
"uses": "actions/upload-artifact@v3",
|
|
244
|
+
"with": Object {
|
|
245
|
+
"name": "Image Snapshot Diffs",
|
|
246
|
+
"path": "**/__image_snapshots__/__diff_output__",
|
|
247
|
+
},
|
|
248
|
+
},
|
|
249
|
+
Object {
|
|
250
|
+
"if": "matrix.os == 'ubuntu-latest' && matrix.node == 16",
|
|
251
|
+
"uses": "codecov/codecov-action@v3",
|
|
252
|
+
"with": Object {
|
|
253
|
+
"token": "\${{ secrets.CODECOV_TOKEN }}",
|
|
254
|
+
},
|
|
255
|
+
},
|
|
256
|
+
],
|
|
257
|
+
"strategy": Object {
|
|
258
|
+
"matrix": Object {
|
|
259
|
+
"include": Array [
|
|
260
|
+
Object {
|
|
261
|
+
"node": 14,
|
|
262
|
+
"os": "ubuntu-latest",
|
|
263
|
+
},
|
|
264
|
+
Object {
|
|
265
|
+
"node": 16,
|
|
266
|
+
"os": "ubuntu-latest",
|
|
267
|
+
},
|
|
268
|
+
Object {
|
|
269
|
+
"node": 18,
|
|
270
|
+
"os": "ubuntu-latest",
|
|
271
|
+
},
|
|
272
|
+
Object {
|
|
273
|
+
"node": 16,
|
|
274
|
+
"os": "macos-latest",
|
|
275
|
+
},
|
|
276
|
+
],
|
|
277
|
+
},
|
|
278
|
+
},
|
|
279
|
+
},
|
|
280
|
+
},
|
|
281
|
+
"name": "build",
|
|
282
|
+
"on": Object {
|
|
283
|
+
"pull_request": Object {},
|
|
284
|
+
"push": Object {
|
|
285
|
+
"branches": Array [
|
|
286
|
+
"master",
|
|
287
|
+
],
|
|
288
|
+
},
|
|
289
|
+
},
|
|
290
|
+
}
|
|
291
|
+
`;
|
|
292
|
+
|
|
150
293
|
exports[`index no job matrix 1`] = `
|
|
151
294
|
Object {
|
|
152
295
|
"jobs": Object {
|
package/dist/index.js
CHANGED
|
@@ -13,7 +13,7 @@ import P from 'path';
|
|
|
13
13
|
import { transform as pluginNameToPackageName } from 'plugin-name-to-package-name';
|
|
14
14
|
import checkUnknownFiles from "./commands/check-unknown-files/index.js";
|
|
15
15
|
import commit from "./commands/commit/index.js";
|
|
16
|
-
import depcheckMethod from "./commands/depcheck.js";
|
|
16
|
+
import depcheckMethod from "./commands/depcheck/index.js";
|
|
17
17
|
import lint from "./commands/lint/index.js";
|
|
18
18
|
import prepare from "./commands/prepare/index.js";
|
|
19
19
|
import test from "./commands/test/index.js";
|
|
@@ -90,7 +90,8 @@ class Base {
|
|
|
90
90
|
`,
|
|
91
91
|
seeAlso: [],
|
|
92
92
|
supportedNodeVersions: [14, 16, 18],
|
|
93
|
-
syncKeywords: true
|
|
93
|
+
syncKeywords: true,
|
|
94
|
+
windows: true
|
|
94
95
|
};
|
|
95
96
|
const mergeOptions = {
|
|
96
97
|
customMerge: key => key === 'supportedNodeVersions' ? (a, b) => b : undefined
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dword-design/base",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.3.0",
|
|
4
4
|
"description": "Base package for projects.",
|
|
5
5
|
"repository": "dword-design/base",
|
|
6
6
|
"funding": "https://github.com/sponsors/dword-design",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@dword-design/package-json-schema": "^2.0.0",
|
|
38
38
|
"@dword-design/personal-data": "^1.0.1",
|
|
39
39
|
"@dword-design/pretest": "^1.0.0",
|
|
40
|
-
"@dword-design/setup-test": "^1.0.
|
|
40
|
+
"@dword-design/setup-test": "^1.0.2",
|
|
41
41
|
"@dword-design/suppress-babel-register-esm-warning": "^1.1.0",
|
|
42
42
|
"@semantic-release/changelog": "^5.0.0",
|
|
43
43
|
"@semantic-release/git": "^9.0.0",
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
"depcheck": "npm:@dword-design/depcheck",
|
|
53
53
|
"depcheck-detector-execa": "^3.0.4",
|
|
54
54
|
"depcheck-detector-package-name": "^3.0.0",
|
|
55
|
-
"depcheck-package-name": "^
|
|
56
|
-
"depcheck-parser-babel": "^
|
|
55
|
+
"depcheck-package-name": "^3.0.0",
|
|
56
|
+
"depcheck-parser-babel": "^3.0.1",
|
|
57
57
|
"eslint": "~7.32.0",
|
|
58
58
|
"execa": "^6.1.0",
|
|
59
59
|
"find-up": "^6.3.0",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"is-ci": "^3.0.0",
|
|
67
67
|
"jiti": "^1.16.0",
|
|
68
68
|
"load-pkg": "^4.0.0",
|
|
69
|
-
"make-cli": "^
|
|
69
|
+
"make-cli": "^3.0.0",
|
|
70
70
|
"mocha": "^10.2.0",
|
|
71
71
|
"mocha-spec-reporter-with-file-names": "npm:@dword-design/mocha-spec-reporter-with-file-names",
|
|
72
72
|
"mocha-ui-exports-auto-describe": "^2.0.0",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
},
|
|
87
87
|
"devDependencies": {
|
|
88
88
|
"@babel/cli": "^7.6.4",
|
|
89
|
-
"@dword-design/chdir": "^
|
|
89
|
+
"@dword-design/chdir": "^3.0.0",
|
|
90
90
|
"@dword-design/tester": "^2.0.0",
|
|
91
91
|
"@dword-design/tester-plugin-tmp-dir": "^2.0.0",
|
|
92
92
|
"is-docker": "^3.0.0",
|