@dword-design/base 13.0.2 → 13.0.3
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.d.ts +2 -0
- package/dist/commands/check-unknown-files/index.d.ts +1 -0
- package/dist/commands/check-unknown-files/unknown-files-error.d.ts +3 -0
- package/dist/commands/commit/index.d.ts +5 -0
- package/dist/commands/depcheck/index.d.ts +1 -0
- package/dist/commands/lint/index.d.ts +5 -0
- package/dist/commands/prepare/index.d.ts +1 -0
- package/dist/commands/test/index.d.ts +1 -0
- package/dist/commands/test-docker/index.d.ts +5 -0
- package/dist/commands/test-docker/index.js +1 -1
- package/dist/commands/test-raw/index.d.ts +8 -0
- package/dist/commands/test-raw/is-ci.d.ts +4 -0
- package/dist/commands/test-raw/package-json-schema.d.ts +67 -0
- package/dist/get-depcheck-special-base/index.d.ts +2 -0
- package/dist/get-generated-files/commitizen.d.ts +4 -0
- package/dist/get-generated-files/commitlint.d.ts +8 -0
- package/dist/get-generated-files/common-editor-ignore.d.ts +2 -0
- package/dist/get-generated-files/editorconfig.d.ts +2 -0
- package/dist/get-generated-files/get-editor-ignore/index.d.ts +1 -0
- package/dist/get-generated-files/get-eslint/index.d.ts +1 -0
- package/dist/get-generated-files/get-github-sync-metadata/index.d.ts +26 -0
- package/dist/get-generated-files/get-github-workflow/index.d.ts +14 -0
- package/dist/get-generated-files/get-github-workflow/steps/cancel-existing.d.ts +7 -0
- package/dist/get-generated-files/get-github-workflow/steps/check-unknown-files.d.ts +4 -0
- package/dist/get-generated-files/get-github-workflow/steps/coverage.d.ts +7 -0
- package/dist/get-generated-files/get-github-workflow/steps/get-release.d.ts +1 -0
- package/dist/get-generated-files/get-github-workflow/steps/get-test.d.ts +19 -0
- package/dist/get-generated-files/get-github-workflow/strategies/job-matrix.d.ts +16 -0
- package/dist/get-generated-files/get-github-workflow/strategies/simple.d.ts +7 -0
- package/dist/get-generated-files/get-gitignore/index.d.ts +1 -0
- package/dist/get-generated-files/get-gitpod/index.d.ts +12 -0
- package/dist/get-generated-files/get-gitpod-dockerfile.d.ts +1 -0
- package/dist/get-generated-files/get-license-string.d.ts +1 -0
- package/dist/get-generated-files/get-package-config/index.d.ts +1 -0
- package/dist/get-generated-files/get-readme-string/index.d.ts +1 -0
- package/dist/get-generated-files/get-readme-string/replacements.d.ts +8 -0
- package/dist/get-generated-files/get-release/index.d.ts +3 -0
- package/dist/get-generated-files/get-renovate/get-regex-manager-string/index.d.ts +2 -0
- package/dist/get-generated-files/get-renovate/index.d.ts +27 -0
- package/dist/get-generated-files/get-vscode/index.d.ts +8 -0
- package/dist/get-generated-files/gitattributes.d.ts +2 -0
- package/dist/get-generated-files/github-codespaces.d.ts +4 -0
- package/dist/get-generated-files/github-deprecated-dependencies/index.d.ts +72 -0
- package/dist/get-generated-files/github-deprecated-dependencies-issue-template.d.ts +2 -0
- package/dist/get-generated-files/github-funding.d.ts +6 -0
- package/dist/get-generated-files/github-labels.d.ts +2 -0
- package/dist/get-generated-files/github-sync-labels.d.ts +24 -0
- package/dist/get-generated-files/index.d.ts +26 -0
- package/dist/get-generated-files/npmrc.d.ts +2 -0
- package/dist/get-generated-files/typescript.d.ts +17 -0
- package/dist/get-generated-files/typescript.js +1 -0
- package/dist/get-git-info/index.d.ts +4 -0
- package/dist/index.d.ts +39 -0
- package/dist/load-config/index.d.ts +4 -0
- package/dist/load-config-sync/index.d.ts +4 -0
- package/package.json +1 -1
package/dist/cli.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function (): Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function (): Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function (options: any): Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function (options: any): any;
|
|
@@ -10,7 +10,7 @@ export default async function (options) {
|
|
|
10
10
|
stderr: 'inherit',
|
|
11
11
|
...options
|
|
12
12
|
};
|
|
13
|
-
const volumeName = this.packageConfig.name.replace('
|
|
13
|
+
const volumeName = this.packageConfig.name.replace('@', '').replace('/', '-');
|
|
14
14
|
const envSchemaPath = findUpSync('.env.schema.json', {
|
|
15
15
|
cwd: this.cwd
|
|
16
16
|
});
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
properties: {
|
|
3
|
+
baseConfig: {
|
|
4
|
+
properties: {
|
|
5
|
+
depcheckConfig: {
|
|
6
|
+
type: string;
|
|
7
|
+
};
|
|
8
|
+
name: {
|
|
9
|
+
type: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
type: string[];
|
|
13
|
+
};
|
|
14
|
+
bin: {
|
|
15
|
+
additionalProperties: {
|
|
16
|
+
pattern: string;
|
|
17
|
+
type: string;
|
|
18
|
+
};
|
|
19
|
+
pattern: string;
|
|
20
|
+
type: string[];
|
|
21
|
+
};
|
|
22
|
+
dependencies: {
|
|
23
|
+
additionalProperties: {
|
|
24
|
+
type: string;
|
|
25
|
+
};
|
|
26
|
+
type: string;
|
|
27
|
+
};
|
|
28
|
+
description: {
|
|
29
|
+
type: string;
|
|
30
|
+
};
|
|
31
|
+
devDependencies: {
|
|
32
|
+
additionalProperties: {
|
|
33
|
+
type: string;
|
|
34
|
+
};
|
|
35
|
+
type: string;
|
|
36
|
+
};
|
|
37
|
+
keywords: {
|
|
38
|
+
items: {
|
|
39
|
+
type: string;
|
|
40
|
+
};
|
|
41
|
+
type: string;
|
|
42
|
+
};
|
|
43
|
+
name: {
|
|
44
|
+
pattern: any;
|
|
45
|
+
type: string;
|
|
46
|
+
};
|
|
47
|
+
packageManager: {
|
|
48
|
+
type: string;
|
|
49
|
+
};
|
|
50
|
+
pnpm: {
|
|
51
|
+
properties: {
|
|
52
|
+
overrides: {
|
|
53
|
+
additionalProperties: {
|
|
54
|
+
type: string;
|
|
55
|
+
};
|
|
56
|
+
type: string;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
type: string;
|
|
60
|
+
};
|
|
61
|
+
version: {
|
|
62
|
+
type: string;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
type: string;
|
|
66
|
+
};
|
|
67
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function (): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function (): any;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export default function (): {
|
|
2
|
+
jobs: {
|
|
3
|
+
build: {
|
|
4
|
+
'runs-on': string;
|
|
5
|
+
steps: ({
|
|
6
|
+
uses: string;
|
|
7
|
+
with?: undefined;
|
|
8
|
+
} | {
|
|
9
|
+
uses: string;
|
|
10
|
+
with: {
|
|
11
|
+
commitMessage: string;
|
|
12
|
+
githubToken: string;
|
|
13
|
+
syncKeywords: boolean;
|
|
14
|
+
approve: boolean;
|
|
15
|
+
};
|
|
16
|
+
})[];
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
name: string;
|
|
20
|
+
on: {
|
|
21
|
+
schedule: {
|
|
22
|
+
cron: string;
|
|
23
|
+
}[];
|
|
24
|
+
workflow_dispatch: {};
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function (): any[];
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export default function (): ({
|
|
2
|
+
env: {
|
|
3
|
+
GH_TOKEN: string;
|
|
4
|
+
};
|
|
5
|
+
run: string;
|
|
6
|
+
if?: undefined;
|
|
7
|
+
uses?: undefined;
|
|
8
|
+
with?: undefined;
|
|
9
|
+
} | {
|
|
10
|
+
if: string;
|
|
11
|
+
uses: string;
|
|
12
|
+
with: {
|
|
13
|
+
'if-no-files-found': string;
|
|
14
|
+
name: string;
|
|
15
|
+
path: string;
|
|
16
|
+
};
|
|
17
|
+
env?: undefined;
|
|
18
|
+
run?: undefined;
|
|
19
|
+
})[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function (): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function (): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function (): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function (): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function (): any;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export default function (): {
|
|
2
|
+
extends: string[];
|
|
3
|
+
gitIgnoredAuthors: string[];
|
|
4
|
+
'github-actions': {
|
|
5
|
+
enabled: boolean;
|
|
6
|
+
};
|
|
7
|
+
labels: string[];
|
|
8
|
+
lockFileMaintenance: {
|
|
9
|
+
semanticCommitType?: string;
|
|
10
|
+
automerge: boolean;
|
|
11
|
+
enabled: boolean;
|
|
12
|
+
};
|
|
13
|
+
rangeStrategy: string;
|
|
14
|
+
regexManagers: ({
|
|
15
|
+
datasourceTemplate: string;
|
|
16
|
+
fileMatch: string[];
|
|
17
|
+
matchStrings: string[];
|
|
18
|
+
versioningTemplate: string;
|
|
19
|
+
} | {
|
|
20
|
+
datasourceTemplate: string;
|
|
21
|
+
depNameTemplate: string;
|
|
22
|
+
fileMatch: string[];
|
|
23
|
+
matchStrings: string[];
|
|
24
|
+
versioningTemplate: string;
|
|
25
|
+
})[];
|
|
26
|
+
semanticCommitScope: null;
|
|
27
|
+
};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
jobs: {
|
|
3
|
+
run: {
|
|
4
|
+
'runs-on': string;
|
|
5
|
+
steps: ({
|
|
6
|
+
uses: string;
|
|
7
|
+
with: {
|
|
8
|
+
lfs: boolean;
|
|
9
|
+
filename?: undefined;
|
|
10
|
+
update_existing?: undefined;
|
|
11
|
+
comment?: undefined;
|
|
12
|
+
'issue-number'?: undefined;
|
|
13
|
+
};
|
|
14
|
+
'continue-on-error'?: undefined;
|
|
15
|
+
id?: undefined;
|
|
16
|
+
env?: undefined;
|
|
17
|
+
if?: undefined;
|
|
18
|
+
} | {
|
|
19
|
+
'continue-on-error': boolean;
|
|
20
|
+
id: string;
|
|
21
|
+
uses: string;
|
|
22
|
+
with?: undefined;
|
|
23
|
+
env?: undefined;
|
|
24
|
+
if?: undefined;
|
|
25
|
+
} | {
|
|
26
|
+
env: {
|
|
27
|
+
DEPRECATED: string;
|
|
28
|
+
GITHUB_TOKEN: string;
|
|
29
|
+
RUN_URL: string;
|
|
30
|
+
};
|
|
31
|
+
id: string;
|
|
32
|
+
if: string;
|
|
33
|
+
uses: string;
|
|
34
|
+
with: {
|
|
35
|
+
filename: string;
|
|
36
|
+
update_existing: boolean;
|
|
37
|
+
lfs?: undefined;
|
|
38
|
+
comment?: undefined;
|
|
39
|
+
'issue-number'?: undefined;
|
|
40
|
+
};
|
|
41
|
+
'continue-on-error'?: undefined;
|
|
42
|
+
} | {
|
|
43
|
+
if: string;
|
|
44
|
+
uses: string;
|
|
45
|
+
with: {
|
|
46
|
+
comment: string;
|
|
47
|
+
'issue-number': string;
|
|
48
|
+
lfs?: undefined;
|
|
49
|
+
filename?: undefined;
|
|
50
|
+
update_existing?: undefined;
|
|
51
|
+
};
|
|
52
|
+
'continue-on-error'?: undefined;
|
|
53
|
+
id?: undefined;
|
|
54
|
+
env?: undefined;
|
|
55
|
+
} | {
|
|
56
|
+
uses: string;
|
|
57
|
+
with?: undefined;
|
|
58
|
+
'continue-on-error'?: undefined;
|
|
59
|
+
id?: undefined;
|
|
60
|
+
env?: undefined;
|
|
61
|
+
if?: undefined;
|
|
62
|
+
})[];
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
name: string;
|
|
66
|
+
on: {
|
|
67
|
+
schedule: {
|
|
68
|
+
cron: string;
|
|
69
|
+
}[];
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
export default _default;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
jobs: {
|
|
3
|
+
build: {
|
|
4
|
+
'runs-on': string;
|
|
5
|
+
steps: ({
|
|
6
|
+
uses: string;
|
|
7
|
+
env?: undefined;
|
|
8
|
+
} | {
|
|
9
|
+
env: {
|
|
10
|
+
GITHUB_TOKEN: string;
|
|
11
|
+
};
|
|
12
|
+
uses: string;
|
|
13
|
+
})[];
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
name: string;
|
|
17
|
+
on: {
|
|
18
|
+
push: {
|
|
19
|
+
branches: string[];
|
|
20
|
+
paths: string[];
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export default _default;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export default function (): {
|
|
2
|
+
'.commitlintrc.json': string;
|
|
3
|
+
'.cz.json': string;
|
|
4
|
+
'.devcontainer/devcontainer.json': string;
|
|
5
|
+
'.editorconfig': any;
|
|
6
|
+
'.gitattributes': any;
|
|
7
|
+
'.github/DEPRECATED_DEPENDENCIES_ISSUE_TEMPLATE.md': any;
|
|
8
|
+
'.github/FUNDING.yml': string;
|
|
9
|
+
'.github/labels.yml': string;
|
|
10
|
+
'.github/workflows/build.yml': string;
|
|
11
|
+
'.github/workflows/deprecated-dependencies.yml': string;
|
|
12
|
+
'.github/workflows/sync-labels.yml': string;
|
|
13
|
+
'.github/workflows/sync-metadata.yml': string;
|
|
14
|
+
'.gitignore': any;
|
|
15
|
+
'.gitpod.Dockerfile': any;
|
|
16
|
+
'.gitpod.yml': string;
|
|
17
|
+
'.npmrc': string;
|
|
18
|
+
'.releaserc.json': string;
|
|
19
|
+
'.renovaterc.json': string;
|
|
20
|
+
'.vscode/settings.json': string;
|
|
21
|
+
'LICENSE.md': any;
|
|
22
|
+
'README.md': any;
|
|
23
|
+
'eslint.config.ts': any;
|
|
24
|
+
'package.json': string;
|
|
25
|
+
'tsconfig.json': string;
|
|
26
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
compilerOptions: {
|
|
3
|
+
declaration: boolean;
|
|
4
|
+
esModuleInterop: boolean;
|
|
5
|
+
module: string;
|
|
6
|
+
moduleResolution: string;
|
|
7
|
+
outDir: string;
|
|
8
|
+
paths: {
|
|
9
|
+
'@/*': string[];
|
|
10
|
+
};
|
|
11
|
+
skipLibCheck: boolean;
|
|
12
|
+
target: string;
|
|
13
|
+
};
|
|
14
|
+
exclude: string[];
|
|
15
|
+
include: string[];
|
|
16
|
+
};
|
|
17
|
+
export default _default;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { type ResultPromise } from 'execa';
|
|
2
|
+
declare class Base {
|
|
3
|
+
config: any;
|
|
4
|
+
packageConfig: any;
|
|
5
|
+
cwd: string;
|
|
6
|
+
generatedFiles: any;
|
|
7
|
+
githubCodespacesConfig: {
|
|
8
|
+
postCreateCommand: string;
|
|
9
|
+
};
|
|
10
|
+
commit(...args: any[]): ResultPromise;
|
|
11
|
+
lint(...args: any[]): ResultPromise;
|
|
12
|
+
prepare(...args: any[]): void;
|
|
13
|
+
test(...args: any[]): ResultPromise;
|
|
14
|
+
testRaw(...args: any[]): ResultPromise;
|
|
15
|
+
testDocker(...args: any[]): ResultPromise;
|
|
16
|
+
getPackageConfig(...args: any[]): any;
|
|
17
|
+
getGeneratedFiles(...args: any[]): any;
|
|
18
|
+
checkUnknownFiles(...args: any[]): void;
|
|
19
|
+
depcheck(...args: any[]): void;
|
|
20
|
+
getEditorIgnoreConfig(...args: any[]): void;
|
|
21
|
+
getEslintConfig(...args: any[]): void;
|
|
22
|
+
getGithubSyncMetadataConfig(...args: any[]): void;
|
|
23
|
+
getGithubWorkflowConfig(...args: any[]): void;
|
|
24
|
+
getGitignoreConfig(...args: any[]): void;
|
|
25
|
+
getGitpodConfig(...args: any[]): void;
|
|
26
|
+
getGitpodDockerfile(...args: any[]): void;
|
|
27
|
+
getLicenseString(...args: any[]): void;
|
|
28
|
+
getReadmeString(...args: any[]): void;
|
|
29
|
+
getReleaseConfig(...args: any[]): void;
|
|
30
|
+
getRenovateConfig(...args: any[]): void;
|
|
31
|
+
getVscodeConfig(...args: any[]): void;
|
|
32
|
+
constructor(config?: any, { cwd }?: {
|
|
33
|
+
cwd?: string;
|
|
34
|
+
});
|
|
35
|
+
run(name: any, ...args: any[]): any;
|
|
36
|
+
}
|
|
37
|
+
export { default as loadConfig } from './load-config';
|
|
38
|
+
export { default as loadConfigSync } from './load-config-sync';
|
|
39
|
+
export { Base };
|