@icebreakers/monorepo-templates 1.3.3 → 1.3.4
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/assets/.github/workflows/ci.yml +1 -1
- package/assets/.github/workflows/release.yml +1 -1
- package/assets/package.json +9 -9
- package/dist/index.d.mts +32 -32
- package/package.json +4 -4
- package/templates/cli/package.json +1 -1
- package/templates/client/package.json +2 -2
- package/templates/server/package.json +2 -2
- package/templates/vitepress/package.json +1 -1
- package/templates/vitepress/learn/packages/examples/2.npm-basic-package/package-lock.json +0 -30
- package/templates/vitepress/learn/packages/examples/3.npm-basic-package/package-lock.json +0 -1496
- package/templates/vitepress/learn/packages/examples/usage-cjs/package-lock.json +0 -36
- package/templates/vitepress/learn/packages/examples/usage-esm/package-lock.json +0 -36
- package/templates/vitepress/zh/learn/packages/examples/2.npm-basic-package/package-lock.json +0 -30
- package/templates/vitepress/zh/learn/packages/examples/3.npm-basic-package/package-lock.json +0 -1496
- package/templates/vitepress/zh/learn/packages/examples/usage-cjs/package-lock.json +0 -36
- package/templates/vitepress/zh/learn/packages/examples/usage-esm/package-lock.json +0 -36
|
@@ -36,7 +36,7 @@ jobs:
|
|
|
36
36
|
with:
|
|
37
37
|
fetch-depth: 2
|
|
38
38
|
|
|
39
|
-
- uses: pnpm/action-setup@
|
|
39
|
+
- uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0
|
|
40
40
|
|
|
41
41
|
- name: Setup Node.js environment
|
|
42
42
|
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
|
|
@@ -54,7 +54,7 @@ jobs:
|
|
|
54
54
|
with:
|
|
55
55
|
fetch-depth: 0
|
|
56
56
|
|
|
57
|
-
- uses: pnpm/action-setup@
|
|
57
|
+
- uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0
|
|
58
58
|
|
|
59
59
|
- name: Setup Node.js environment
|
|
60
60
|
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
|
package/assets/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"type": "module",
|
|
4
4
|
"version": "0.0.0",
|
|
5
5
|
"private": true,
|
|
6
|
-
"packageManager": "pnpm@
|
|
6
|
+
"packageManager": "pnpm@12.3.4",
|
|
7
7
|
"description": "Source workspace for repoctl and Icebreaker's shared development packages",
|
|
8
8
|
"author": "ice breaker <hi@sonofmagic.top>",
|
|
9
9
|
"homepage": "https://repoctl.icebreaker.top",
|
|
@@ -85,18 +85,18 @@
|
|
|
85
85
|
"@types/lodash-es": "^4.17.12",
|
|
86
86
|
"@types/micromatch": "^4.0.10",
|
|
87
87
|
"@icebreakers/monorepo": "workspace:*",
|
|
88
|
-
"@types/node": "^26.
|
|
88
|
+
"@types/node": "^26.5.0",
|
|
89
89
|
"@types/semver": "^7.8.0",
|
|
90
90
|
"@types/set-value": "^4.0.3",
|
|
91
|
-
"@typescript-eslint/types": "^8.
|
|
92
|
-
"@unocss/eslint-plugin": "66.
|
|
91
|
+
"@typescript-eslint/types": "^8.70.0",
|
|
92
|
+
"@unocss/eslint-plugin": "66.10.0",
|
|
93
93
|
"@vitest/coverage-v8": "~5.0.0",
|
|
94
94
|
"astro-eslint-parser": "^3.1.0",
|
|
95
95
|
"ci-info": "^4.4.0",
|
|
96
96
|
"cross-env": "^10.1.0",
|
|
97
97
|
"defu": "^6.1.7",
|
|
98
98
|
"es-toolkit": "^1.52.0",
|
|
99
|
-
"eslint": "^10.
|
|
99
|
+
"eslint": "^10.10.0",
|
|
100
100
|
"eslint-plugin-astro": "^3.1.0",
|
|
101
101
|
"eslint-plugin-mdx": "3.8.1",
|
|
102
102
|
"eslint-plugin-svelte": "^3.23.0",
|
|
@@ -106,24 +106,24 @@
|
|
|
106
106
|
"get-value": "^4.1.0",
|
|
107
107
|
"husky": "^9.1.7",
|
|
108
108
|
"jiti": "^2.7.0",
|
|
109
|
-
"lint-staged": "^17.
|
|
109
|
+
"lint-staged": "^17.5.0",
|
|
110
110
|
"lodash": "^4.18.1",
|
|
111
111
|
"lodash-es": "^4.18.1",
|
|
112
112
|
"micromatch": "^4.0.8",
|
|
113
113
|
"only-allow": "^1.2.2",
|
|
114
114
|
"pathe": "^2.0.3",
|
|
115
|
-
"pkg-types": "^2.3.
|
|
115
|
+
"pkg-types": "^2.3.3",
|
|
116
116
|
"prettier": "^3.9.6",
|
|
117
117
|
"prettier-plugin-astro": "^0.14.1",
|
|
118
118
|
"repoctl": "workspace:*",
|
|
119
119
|
"rimraf": "^6.1.3",
|
|
120
120
|
"set-value": "^4.1.0",
|
|
121
|
-
"stylelint": "^17.
|
|
121
|
+
"stylelint": "^17.15.0",
|
|
122
122
|
"svelte": "^5.57.0",
|
|
123
123
|
"svelte-eslint-parser": "^1.8.1",
|
|
124
124
|
"tailwindcss": "^4.3.3",
|
|
125
125
|
"tsd": "^0.33.0",
|
|
126
|
-
"tsdown": "0.
|
|
126
|
+
"tsdown": "0.23.0",
|
|
127
127
|
"tslib": "^2.8.1",
|
|
128
128
|
"tsx": "^4.23.13",
|
|
129
129
|
"turbo": "^2.10.12",
|
package/dist/index.d.mts
CHANGED
|
@@ -24,20 +24,20 @@ interface SuggestTemplateKeyOptions extends GetTemplateChoicesOptions {
|
|
|
24
24
|
}
|
|
25
25
|
//#endregion
|
|
26
26
|
//#region src/paths.d.ts
|
|
27
|
-
declare const packageDir: string;
|
|
28
|
-
declare const templatesDir: string;
|
|
29
|
-
declare const assetsDir: string;
|
|
30
|
-
declare const skeletonDir: string;
|
|
27
|
+
export declare const packageDir: string;
|
|
28
|
+
export declare const templatesDir: string;
|
|
29
|
+
export declare const assetsDir: string;
|
|
30
|
+
export declare const skeletonDir: string;
|
|
31
31
|
//#endregion
|
|
32
32
|
//#region src/prepare.d.ts
|
|
33
33
|
interface PrepareAssetsOptions {
|
|
34
34
|
overwriteExisting?: boolean;
|
|
35
35
|
silent?: boolean;
|
|
36
36
|
}
|
|
37
|
-
declare function prepareAssets(options?: PrepareAssetsOptions): Promise<void>;
|
|
37
|
+
export declare function prepareAssets(options?: PrepareAssetsOptions): Promise<void>;
|
|
38
38
|
//#endregion
|
|
39
39
|
//#region src/runtime-assets.d.ts
|
|
40
|
-
declare function ensureTemplateAssetsPrepared(): Promise<void>;
|
|
40
|
+
export declare function ensureTemplateAssetsPrepared(): Promise<void>;
|
|
41
41
|
//#endregion
|
|
42
42
|
//#region src/scaffold.d.ts
|
|
43
43
|
type TargetMode = 'prepare' | 'ensure' | 'skip';
|
|
@@ -58,48 +58,48 @@ interface ScaffoldWorkspaceOptions {
|
|
|
58
58
|
targetMode?: TargetMode;
|
|
59
59
|
force?: boolean;
|
|
60
60
|
}
|
|
61
|
-
declare function scaffoldTemplate(options: ScaffoldTemplateOptions): Promise<void>;
|
|
62
|
-
declare function scaffoldWorkspace(options: ScaffoldWorkspaceOptions): Promise<void>;
|
|
61
|
+
export declare function scaffoldTemplate(options: ScaffoldTemplateOptions): Promise<void>;
|
|
62
|
+
export declare function scaffoldWorkspace(options: ScaffoldWorkspaceOptions): Promise<void>;
|
|
63
63
|
//#endregion
|
|
64
64
|
//#region src/utils/command.d.ts
|
|
65
65
|
interface RunCommandOptions {
|
|
66
66
|
cwd?: string;
|
|
67
67
|
stdio?: 'inherit' | 'pipe';
|
|
68
68
|
}
|
|
69
|
-
declare function runCommand(command: string, args: string[], options?: RunCommandOptions): Promise<{
|
|
69
|
+
export declare function runCommand(command: string, args: string[], options?: RunCommandOptions): Promise<{
|
|
70
70
|
exitCode: number | null;
|
|
71
71
|
}>;
|
|
72
|
-
declare function execaCommand(command: string, options?: RunCommandOptions): Promise<{
|
|
72
|
+
export declare function execaCommand(command: string, options?: RunCommandOptions): Promise<{
|
|
73
73
|
exitCode: number | null;
|
|
74
74
|
}>;
|
|
75
75
|
//#endregion
|
|
76
76
|
//#region src/utils/gitignore.d.ts
|
|
77
|
-
declare function toPublishGitignorePath(input: string): string;
|
|
78
|
-
declare function toWorkspaceGitignorePath(input: string): string;
|
|
79
|
-
declare function isGitignoreFile(name: string): boolean;
|
|
77
|
+
export declare function toPublishGitignorePath(input: string): string;
|
|
78
|
+
export declare function toWorkspaceGitignorePath(input: string): string;
|
|
79
|
+
export declare function isGitignoreFile(name: string): boolean;
|
|
80
80
|
//#endregion
|
|
81
81
|
//#region src/utils/template-filter.d.ts
|
|
82
|
-
declare function shouldSkipTemplatePath(rootDir: string, targetPath: string): boolean;
|
|
83
|
-
declare function createTemplateCopyFilter(rootDir: string): (src: string) => boolean;
|
|
82
|
+
export declare function shouldSkipTemplatePath(rootDir: string, targetPath: string): boolean;
|
|
83
|
+
export declare function createTemplateCopyFilter(rootDir: string): (src: string) => boolean;
|
|
84
84
|
//#endregion
|
|
85
85
|
//#region src/templates.d.ts
|
|
86
|
-
declare const templateCategories: readonly ["app", "docs", "library", "service", "tool"];
|
|
87
|
-
declare function isTemplateCategory(value: string): value is TemplateCategory;
|
|
88
|
-
declare function getTemplateChoices(options?: GetTemplateChoicesOptions): TemplateChoice[];
|
|
89
|
-
declare function getTemplateKeys(options?: GetTemplateChoicesOptions): string[];
|
|
90
|
-
declare function getTemplateChoice(key: string): TemplateChoice | undefined;
|
|
91
|
-
declare function isTemplateKey(key: string): boolean;
|
|
92
|
-
declare function getTemplateDefinition(key: string): TemplateDefinition | undefined;
|
|
93
|
-
declare function getTemplateSource(key: string): string | undefined;
|
|
94
|
-
declare function getTemplateTarget(key: string): string | undefined;
|
|
95
|
-
declare function suggestTemplateKey(key: string, options?: SuggestTemplateKeyOptions): string | undefined;
|
|
86
|
+
export declare const templateCategories: readonly ["app", "docs", "library", "service", "tool"];
|
|
87
|
+
export declare function isTemplateCategory(value: string): value is TemplateCategory;
|
|
88
|
+
export declare function getTemplateChoices(options?: GetTemplateChoicesOptions): TemplateChoice[];
|
|
89
|
+
export declare function getTemplateKeys(options?: GetTemplateChoicesOptions): string[];
|
|
90
|
+
export declare function getTemplateChoice(key: string): TemplateChoice | undefined;
|
|
91
|
+
export declare function isTemplateKey(key: string): boolean;
|
|
92
|
+
export declare function getTemplateDefinition(key: string): TemplateDefinition | undefined;
|
|
93
|
+
export declare function getTemplateSource(key: string): string | undefined;
|
|
94
|
+
export declare function getTemplateTarget(key: string): string | undefined;
|
|
95
|
+
export declare function suggestTemplateKey(key: string, options?: SuggestTemplateKeyOptions): string | undefined;
|
|
96
96
|
//#endregion
|
|
97
97
|
//#region src/index.d.ts
|
|
98
|
-
declare const templateChoices: TemplateChoice[];
|
|
99
|
-
declare const assetTargets: string[];
|
|
100
|
-
declare const getAssetTargets: (core?: boolean) => string[];
|
|
101
|
-
declare const templateSourceMap: Record<string, string>;
|
|
102
|
-
declare const templateTargetMap: Record<string, string>;
|
|
103
|
-
declare const templateMap: Record<string, string>;
|
|
98
|
+
export declare const templateChoices: TemplateChoice[];
|
|
99
|
+
export declare const assetTargets: string[];
|
|
100
|
+
export declare const getAssetTargets: (core?: boolean) => string[];
|
|
101
|
+
export declare const templateSourceMap: Record<string, string>;
|
|
102
|
+
export declare const templateTargetMap: Record<string, string>;
|
|
103
|
+
export declare const templateMap: Record<string, string>;
|
|
104
104
|
//#endregion
|
|
105
|
-
export { Command, type GetTemplateChoicesOptions, type SuggestTemplateKeyOptions, type TemplateCategory, type TemplateChoice, type TemplateDefinition,
|
|
105
|
+
export { Command, type GetTemplateChoicesOptions, type SuggestTemplateKeyOptions, type TemplateCategory, type TemplateChoice, type TemplateDefinition, checkbox, input, program, select };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@icebreakers/monorepo-templates",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.4",
|
|
5
5
|
"description": "Built-in project templates and managed workspace assets for repoctl",
|
|
6
6
|
"author": "ice breaker <hi@sonofmagic.top>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -45,9 +45,9 @@
|
|
|
45
45
|
"node": ">=18.0.0"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@inquirer/checkbox": "^5.2.
|
|
49
|
-
"@inquirer/input": "^5.1.
|
|
50
|
-
"@inquirer/select": "^5.2.
|
|
48
|
+
"@inquirer/checkbox": "^5.2.5",
|
|
49
|
+
"@inquirer/input": "^5.1.6",
|
|
50
|
+
"@inquirer/select": "^5.2.5",
|
|
51
51
|
"commander": "^15.0.0",
|
|
52
52
|
"nanoexec": "^1.1.0",
|
|
53
53
|
"yaml": "^2.9.0"
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@tanstack/vue-query": "^5.102.8",
|
|
36
36
|
"@tanstack/vue-query-devtools": "^6.1.48",
|
|
37
37
|
"@tanstack/vue-table": "^9.2.4",
|
|
38
|
-
"@tanstack/vue-virtual": "^3.13.
|
|
38
|
+
"@tanstack/vue-virtual": "^3.13.37",
|
|
39
39
|
"@trpc/client": "^11.18.0",
|
|
40
40
|
"clsx": "^2.1.1",
|
|
41
41
|
"pinia": "^4.0.3",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@vitejs/plugin-vue-jsx": "^5.1.6",
|
|
56
56
|
"@vue/tsconfig": "^0.9.1",
|
|
57
57
|
"consola": "^3.4.2",
|
|
58
|
-
"hono": "^4.13.
|
|
58
|
+
"hono": "^4.13.7",
|
|
59
59
|
"tailwindcss": "^4.3.3",
|
|
60
60
|
"typescript": "~6.0.3",
|
|
61
61
|
"vite": "^8.2.2",
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "icebreaker-npm-basic-package",
|
|
3
|
-
"version": "1.0.2",
|
|
4
|
-
"lockfileVersion": 3,
|
|
5
|
-
"requires": true,
|
|
6
|
-
"packages": {
|
|
7
|
-
"": {
|
|
8
|
-
"name": "icebreaker-npm-basic-package",
|
|
9
|
-
"version": "1.0.2",
|
|
10
|
-
"license": "ISC",
|
|
11
|
-
"devDependencies": {
|
|
12
|
-
"typescript": "^5.8.3"
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
"node_modules/typescript": {
|
|
16
|
-
"version": "5.8.3",
|
|
17
|
-
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.3.tgz",
|
|
18
|
-
"integrity": "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==",
|
|
19
|
-
"dev": true,
|
|
20
|
-
"license": "Apache-2.0",
|
|
21
|
-
"bin": {
|
|
22
|
-
"tsc": "bin/tsc",
|
|
23
|
-
"tsserver": "bin/tsserver"
|
|
24
|
-
},
|
|
25
|
-
"engines": {
|
|
26
|
-
"node": ">=14.17"
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|