@dword-design/base 11.3.5 → 11.3.7
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/commands/depcheck/index.js +2 -2
- package/dist/get-generated-files/get-github-workflow/__snapshots__/index.spec.js.snap +8 -0
- package/dist/get-generated-files/get-github-workflow/steps/get-test.js +1 -0
- package/dist/get-generated-files/github-codespaces.js +3 -0
- package/dist/get-generated-files/index.js +3 -3
- package/dist/index.js +2 -2
- package/package.json +1 -1
- package/dist/get-generated-files/get-github-codespaces/__snapshots__/index.spec.js.snap +0 -12
- package/dist/get-generated-files/get-github-codespaces/index.js +0 -10
|
@@ -6,13 +6,13 @@ export default async function () {
|
|
|
6
6
|
package: (_this$packageConfig = this.packageConfig, omit(['devDependencies'])(_this$packageConfig)),
|
|
7
7
|
skipMissing: true,
|
|
8
8
|
...this.config.depcheckConfig,
|
|
9
|
-
ignorePatterns: ['*.spec.js', this.config.testRunner === 'playwright' ? '/playwright.config.js' : '/global-test-hooks.js', 'package.json']
|
|
9
|
+
ignorePatterns: ['*.spec.js', ...(this.config.testRunner === 'playwright' ? ['/fixtures', '/playwright.config.js'] : ['/global-test-hooks.js']), 'package.json']
|
|
10
10
|
});
|
|
11
11
|
const devDependenciesResult = await depcheck('.', {
|
|
12
12
|
package: (_this$packageConfig2 = this.packageConfig, omit(['dependencies'])(_this$packageConfig2)),
|
|
13
13
|
skipMissing: true,
|
|
14
14
|
...this.config.depcheckConfig,
|
|
15
|
-
ignorePatterns: ['!*.spec.js', this.config.testRunner === 'playwright' ? '!/playwright.config.js' : '!/global-test-hooks.js']
|
|
15
|
+
ignorePatterns: ['!*.spec.js', this.config.testRunner === 'playwright' ? ['!/fixtures', '!/playwright.config.js'] : ['!/global-test-hooks.js']]
|
|
16
16
|
});
|
|
17
17
|
const result = {
|
|
18
18
|
dependencies: dependenciesResult.dependencies,
|
|
@@ -108,6 +108,7 @@ Object {
|
|
|
108
108
|
"if": "always()",
|
|
109
109
|
"uses": "actions/upload-artifact@v4",
|
|
110
110
|
"with": Object {
|
|
111
|
+
"if-no-files-found": "ignore",
|
|
111
112
|
"name": "Images from tests",
|
|
112
113
|
"path": "**/__image_snapshots__/__diff_output__
|
|
113
114
|
test-results/*/trace.zip",
|
|
@@ -265,6 +266,7 @@ Object {
|
|
|
265
266
|
"if": "always()",
|
|
266
267
|
"uses": "actions/upload-artifact@v4",
|
|
267
268
|
"with": Object {
|
|
269
|
+
"if-no-files-found": "ignore",
|
|
268
270
|
"name": "Images from tests",
|
|
269
271
|
"path": "**/__image_snapshots__/__diff_output__
|
|
270
272
|
test-results/*/trace.zip",
|
|
@@ -418,6 +420,7 @@ Object {
|
|
|
418
420
|
"if": "always()",
|
|
419
421
|
"uses": "actions/upload-artifact@v4",
|
|
420
422
|
"with": Object {
|
|
423
|
+
"if-no-files-found": "ignore",
|
|
421
424
|
"name": "Images from tests",
|
|
422
425
|
"path": "**/__image_snapshots__/__diff_output__
|
|
423
426
|
test-results/*/trace.zip",
|
|
@@ -516,6 +519,7 @@ Object {
|
|
|
516
519
|
"if": "always()",
|
|
517
520
|
"uses": "actions/upload-artifact@v4",
|
|
518
521
|
"with": Object {
|
|
522
|
+
"if-no-files-found": "ignore",
|
|
519
523
|
"name": "Images from tests",
|
|
520
524
|
"path": "**/__image_snapshots__/__diff_output__
|
|
521
525
|
test-results/*/trace.zip",
|
|
@@ -670,6 +674,7 @@ Object {
|
|
|
670
674
|
"if": "always()",
|
|
671
675
|
"uses": "actions/upload-artifact@v4",
|
|
672
676
|
"with": Object {
|
|
677
|
+
"if-no-files-found": "ignore",
|
|
673
678
|
"name": "Images from tests",
|
|
674
679
|
"path": "**/__image_snapshots__/__diff_output__
|
|
675
680
|
test-results/*/trace.zip",
|
|
@@ -829,6 +834,7 @@ Object {
|
|
|
829
834
|
"if": "always()",
|
|
830
835
|
"uses": "actions/upload-artifact@v4",
|
|
831
836
|
"with": Object {
|
|
837
|
+
"if-no-files-found": "ignore",
|
|
832
838
|
"name": "Images from tests",
|
|
833
839
|
"path": "**/__image_snapshots__/__diff_output__
|
|
834
840
|
test-results/*/trace.zip",
|
|
@@ -1079,6 +1085,7 @@ Object {
|
|
|
1079
1085
|
"if": "always()",
|
|
1080
1086
|
"uses": "actions/upload-artifact@v4",
|
|
1081
1087
|
"with": Object {
|
|
1088
|
+
"if-no-files-found": "ignore",
|
|
1082
1089
|
"name": "Images from tests",
|
|
1083
1090
|
"path": "**/__image_snapshots__/__diff_output__
|
|
1084
1091
|
test-results/*/trace.zip",
|
|
@@ -1177,6 +1184,7 @@ Object {
|
|
|
1177
1184
|
"if": "always()",
|
|
1178
1185
|
"uses": "actions/upload-artifact@v4",
|
|
1179
1186
|
"with": Object {
|
|
1187
|
+
"if-no-files-found": "ignore",
|
|
1180
1188
|
"name": "Images from tests",
|
|
1181
1189
|
"path": "**/__image_snapshots__/__diff_output__
|
|
1182
1190
|
test-results/*/trace.zip",
|
|
@@ -14,7 +14,7 @@ import githubLabelsConfig from "./github-labels.js";
|
|
|
14
14
|
import githubSyncLabelsConfig from "./github-sync-labels.js";
|
|
15
15
|
import npmrc from "./npmrc.js";
|
|
16
16
|
export default function () {
|
|
17
|
-
var _commitlintConfig, _commitizenConfig, _this$
|
|
17
|
+
var _commitlintConfig, _commitizenConfig, _this$githubCodespace, _this$getEslintConfig, _githubFunding, _sortKeys, _sortKeys2, _sortKeys3, _sortKeys4, _sortKeys5, _ref, _this$getGitignoreCon, _this$getGitpodConfig, _this$getReleaseConfi, _sortKeys6, _this$getVscodeConfig, _babelConfig, _ref2, _packageConfig;
|
|
18
18
|
const packageConfig = this.getPackageConfig();
|
|
19
19
|
return {
|
|
20
20
|
'.commitlintrc.json': `${_commitlintConfig = commitlintConfig, jsonToString({
|
|
@@ -23,9 +23,9 @@ export default function () {
|
|
|
23
23
|
'.cz.json': `${_commitizenConfig = commitizenConfig, jsonToString({
|
|
24
24
|
indent: 2
|
|
25
25
|
})(_commitizenConfig)}\n`,
|
|
26
|
-
'.devcontainer/devcontainer.json': `${_this$
|
|
26
|
+
'.devcontainer/devcontainer.json': `${_this$githubCodespace = this.githubCodespacesConfig, jsonToString({
|
|
27
27
|
indent: 2
|
|
28
|
-
})(_this$
|
|
28
|
+
})(_this$githubCodespace)}\n`,
|
|
29
29
|
'.editorconfig': editorconfigConfig,
|
|
30
30
|
'.eslintrc.json': `${_this$getEslintConfig = this.getEslintConfig(), jsonToString({
|
|
31
31
|
indent: 2
|
package/dist/index.js
CHANGED
|
@@ -22,7 +22,6 @@ import testRaw from "./commands/test-raw/index.js";
|
|
|
22
22
|
import getDepcheckSpecialBase from "./get-depcheck-special-base/index.js";
|
|
23
23
|
import getEditorIgnoreConfig from "./get-generated-files/get-editor-ignore/index.js";
|
|
24
24
|
import getEslintConfig from "./get-generated-files/get-eslint/index.js";
|
|
25
|
-
import getGithubCodespacesConfig from "./get-generated-files/get-github-codespaces/index.js";
|
|
26
25
|
import getGithubSyncMetadataConfig from "./get-generated-files/get-github-sync-metadata/index.js";
|
|
27
26
|
import getGithubWorkflowConfig from "./get-generated-files/get-github-workflow/index.js";
|
|
28
27
|
import getGitignoreConfig from "./get-generated-files/get-gitignore/index.js";
|
|
@@ -34,6 +33,7 @@ import getReadmeString from "./get-generated-files/get-readme-string/index.js";
|
|
|
34
33
|
import getReleaseConfig from "./get-generated-files/get-release/index.js";
|
|
35
34
|
import getRenovateConfig from "./get-generated-files/get-renovate/index.js";
|
|
36
35
|
import getVscodeConfig from "./get-generated-files/get-vscode/index.js";
|
|
36
|
+
import githubCodespacesConfig from "./get-generated-files/github-codespaces.js";
|
|
37
37
|
import getGeneratedFiles from "./get-generated-files/index.js";
|
|
38
38
|
import getGitInfo from "./get-git-info/index.js";
|
|
39
39
|
const mergeConfigs = (...configs) => {
|
|
@@ -139,7 +139,6 @@ Object.assign(Base.prototype, {
|
|
|
139
139
|
getEditorIgnoreConfig,
|
|
140
140
|
getEslintConfig,
|
|
141
141
|
getGeneratedFiles,
|
|
142
|
-
getGithubCodespacesConfig,
|
|
143
142
|
getGithubSyncMetadataConfig,
|
|
144
143
|
getGithubWorkflowConfig,
|
|
145
144
|
getGitignoreConfig,
|
|
@@ -151,6 +150,7 @@ Object.assign(Base.prototype, {
|
|
|
151
150
|
getReleaseConfig,
|
|
152
151
|
getRenovateConfig,
|
|
153
152
|
getVscodeConfig,
|
|
153
|
+
githubCodespacesConfig,
|
|
154
154
|
lint,
|
|
155
155
|
prepare,
|
|
156
156
|
test,
|
package/package.json
CHANGED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`index works 1`] = `
|
|
4
|
-
Object {
|
|
5
|
-
"features": Object {
|
|
6
|
-
"ghcr.io/devcontainers/features/node:1": Object {
|
|
7
|
-
"version": 18,
|
|
8
|
-
},
|
|
9
|
-
},
|
|
10
|
-
"postCreateCommand": "COREPACK_INTEGRITY_KEYS=0 pnpm install --frozen-lockfile",
|
|
11
|
-
}
|
|
12
|
-
`;
|