@dword-design/base 11.3.6 → 11.3.8
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/cli.js +6 -0
- package/dist/commands/depcheck/index.js +2 -2
- 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
package/dist/cli.js
CHANGED
|
@@ -56,6 +56,12 @@ const run = async () => {
|
|
|
56
56
|
}, {
|
|
57
57
|
description: 'Update snapshots',
|
|
58
58
|
name: '-u, --update-snapshots'
|
|
59
|
+
}, {
|
|
60
|
+
description: 'Run tests in interactive UI mode',
|
|
61
|
+
name: '--ui-host <host>'
|
|
62
|
+
}, {
|
|
63
|
+
description: 'Host to serve UI on; specifying this option opens UI in a browser tab',
|
|
64
|
+
name: '--ui'
|
|
59
65
|
}]
|
|
60
66
|
},
|
|
61
67
|
...(_base$config$commands = base.config.commands, mapValues((command, name) => ({
|
|
@@ -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,
|
|
@@ -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
|
-
`;
|