@icebreakers/monorepo-templates 1.0.9 → 1.0.11
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 -7
- package/assets/package.json +12 -12
- package/assets/pnpm-workspace.yaml +9 -5
- package/dist/cli.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{prepare-CtCifHGT.mjs → prepare-BBSJX9-U.mjs} +12 -0
- package/package.json +5 -5
- package/templates/cli/package.json +1 -1
- package/templates/client/package.json +10 -10
- package/templates/client/worker-configuration.d.ts +741 -1
- package/templates/server/package.json +3 -3
- package/templates/server/worker-configuration.d.ts +741 -1
- package/templates/vitepress/package.json +2 -2
- package/templates/vue-lib/package.json +10 -10
- package/templates/vue-lib/test-d/index.test-d.ts +1 -1
|
@@ -40,9 +40,6 @@ jobs:
|
|
|
40
40
|
- name: Install Dependencies
|
|
41
41
|
run: pnpm i
|
|
42
42
|
|
|
43
|
-
- name: Build Release Tooling
|
|
44
|
-
run: pnpm run tooling:build
|
|
45
|
-
|
|
46
43
|
- name: Create Release Pull Request or Publish to npm
|
|
47
44
|
id: changesets
|
|
48
45
|
uses: changesets/action@v1
|
|
@@ -59,7 +56,7 @@ jobs:
|
|
|
59
56
|
NPM_CONFIG_PROVENANCE: true
|
|
60
57
|
|
|
61
58
|
- name: Upload coverage reports to Codecov
|
|
62
|
-
uses: codecov/codecov-action@
|
|
59
|
+
uses: codecov/codecov-action@v7
|
|
63
60
|
env:
|
|
64
61
|
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
|
65
62
|
|
|
@@ -82,9 +79,6 @@ jobs:
|
|
|
82
79
|
- name: Install Dependencies
|
|
83
80
|
run: pnpm i
|
|
84
81
|
|
|
85
|
-
- name: Build Release Tooling
|
|
86
|
-
run: pnpm run tooling:build
|
|
87
|
-
|
|
88
82
|
- name: Configure Git
|
|
89
83
|
run: |
|
|
90
84
|
git config user.name "github-actions[bot]"
|
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@11.5.2",
|
|
7
7
|
"author": "ice breaker <hi@sonofmagic.top>",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
@@ -51,33 +51,33 @@
|
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@changesets/cli": "^2.31.0",
|
|
54
|
-
"@commitlint/cli": "^21.0.
|
|
54
|
+
"@commitlint/cli": "^21.0.2",
|
|
55
55
|
"@icebreakers/changelog-github": "^1.0.2",
|
|
56
56
|
"@icebreakers/monorepo": "workspace:*",
|
|
57
|
-
"@types/node": "^25.9.
|
|
57
|
+
"@types/node": "^25.9.2",
|
|
58
58
|
"@types/semver": "^7.7.1",
|
|
59
|
-
"@vitest/coverage-v8": "~4.1.
|
|
59
|
+
"@vitest/coverage-v8": "~4.1.8",
|
|
60
60
|
"ci-info": "^4.4.0",
|
|
61
61
|
"cross-env": "^10.1.0",
|
|
62
62
|
"defu": "^6.1.7",
|
|
63
63
|
"es-toolkit": "^1.47.0",
|
|
64
|
-
"eslint": "^10.4.
|
|
64
|
+
"eslint": "^10.4.1",
|
|
65
65
|
"husky": "^9.1.7",
|
|
66
|
-
"lint-staged": "^17.0.
|
|
66
|
+
"lint-staged": "^17.0.7",
|
|
67
67
|
"only-allow": "^1.2.2",
|
|
68
68
|
"pathe": "^2.0.3",
|
|
69
69
|
"pkg-types": "^2.3.1",
|
|
70
70
|
"repoctl": "workspace:*",
|
|
71
|
-
"stylelint": "^17.
|
|
71
|
+
"stylelint": "^17.13.0",
|
|
72
72
|
"tailwindcss": "^4.3.0",
|
|
73
73
|
"tsd": "^0.33.0",
|
|
74
|
-
"tsdown": "0.22.
|
|
74
|
+
"tsdown": "0.22.2",
|
|
75
75
|
"tslib": "^2.8.1",
|
|
76
|
-
"tsx": "^4.22.
|
|
77
|
-
"turbo": "^2.9.
|
|
78
|
-
"type-fest": "^5.
|
|
76
|
+
"tsx": "^4.22.4",
|
|
77
|
+
"turbo": "^2.9.17",
|
|
78
|
+
"type-fest": "^5.7.0",
|
|
79
79
|
"typescript": "^6.0.3",
|
|
80
|
-
"vitest": "~4.1.
|
|
80
|
+
"vitest": "~4.1.8",
|
|
81
81
|
"yaml": "^2.9.0"
|
|
82
82
|
},
|
|
83
83
|
"publishConfig": {
|
|
@@ -4,8 +4,12 @@ packages:
|
|
|
4
4
|
- templates/*
|
|
5
5
|
- '!**/test/**'
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
minimumReleaseAge: 0
|
|
8
|
+
|
|
9
|
+
allowBuilds:
|
|
10
|
+
'@tailwindcss/oxide': true
|
|
11
|
+
esbuild: true
|
|
12
|
+
msgpackr-extract: true
|
|
13
|
+
sharp: true
|
|
14
|
+
vue-demi: true
|
|
15
|
+
workerd: true
|
package/dist/cli.mjs
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as toPublishGitignorePath, c as assetsDir, d as templatesDir, f as assetTargets$1, i as isGitignoreFile, l as packageDir, n as createTemplateCopyFilter, o as toWorkspaceGitignorePath, p as getAssetTargets$1, r as shouldSkipTemplatePath, s as templateChoices$1, t as prepareAssets, u as skeletonDir } from "./prepare-
|
|
1
|
+
import { a as toPublishGitignorePath, c as assetsDir, d as templatesDir, f as assetTargets$1, i as isGitignoreFile, l as packageDir, n as createTemplateCopyFilter, o as toWorkspaceGitignorePath, p as getAssetTargets$1, r as shouldSkipTemplatePath, s as templateChoices$1, t as prepareAssets, u as skeletonDir } from "./prepare-BBSJX9-U.mjs";
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
import fs, { access, open, rm } from "node:fs/promises";
|
|
4
4
|
import exec from "nanoexec";
|
|
@@ -197,6 +197,10 @@ const publishedToolingConfigs = {
|
|
|
197
197
|
""
|
|
198
198
|
].join("\n")
|
|
199
199
|
};
|
|
200
|
+
const sourceRepoReleaseToolingBuildStepPattern = /\r?\n\s+- name: Build Release Tooling\r?\n\s+run: pnpm run tooling:build\r?\n/g;
|
|
201
|
+
function removeSourceRepoReleaseToolingBuildStepContent(content) {
|
|
202
|
+
return content.replaceAll(sourceRepoReleaseToolingBuildStepPattern, "\n");
|
|
203
|
+
}
|
|
200
204
|
async function pathExists(targetPath) {
|
|
201
205
|
try {
|
|
202
206
|
await fs.access(targetPath);
|
|
@@ -282,6 +286,13 @@ async function writePublishedToolingConfigs() {
|
|
|
282
286
|
if (await pathExists(targetPath)) await fs.writeFile(targetPath, content);
|
|
283
287
|
}));
|
|
284
288
|
}
|
|
289
|
+
async function removeSourceRepoReleaseToolingBuildStep() {
|
|
290
|
+
const releaseWorkflowPath = path$1.join(assetsDir, ".github/workflows/release.yml");
|
|
291
|
+
if (!await pathExists(releaseWorkflowPath)) return;
|
|
292
|
+
const content = await fs.readFile(releaseWorkflowPath, "utf8");
|
|
293
|
+
const nextContent = removeSourceRepoReleaseToolingBuildStepContent(content);
|
|
294
|
+
if (nextContent !== content) await fs.writeFile(releaseWorkflowPath, nextContent, "utf8");
|
|
295
|
+
}
|
|
285
296
|
async function copyTemplates(repoRoot, overwriteExisting) {
|
|
286
297
|
for (const template of templateChoices) {
|
|
287
298
|
const from = path$1.join(repoRoot, "templates", template.source);
|
|
@@ -300,6 +311,7 @@ async function prepareAssets(options = {}) {
|
|
|
300
311
|
await resetDir(templatesDir, overwriteExisting);
|
|
301
312
|
await copyAssets(repoRoot, overwriteExisting);
|
|
302
313
|
await writePublishedToolingConfigs();
|
|
314
|
+
await removeSourceRepoReleaseToolingBuildStep();
|
|
303
315
|
await copyTemplates(repoRoot, overwriteExisting);
|
|
304
316
|
}
|
|
305
317
|
//#endregion
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@icebreakers/monorepo-templates",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.11",
|
|
5
5
|
"description": "Template assets for icebreaker monorepo scaffolding",
|
|
6
6
|
"author": "ice breaker <hi@sonofmagic.top>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -43,10 +43,10 @@
|
|
|
43
43
|
"node": ">=18.0.0"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@inquirer/checkbox": "^5.2.
|
|
47
|
-
"@inquirer/input": "^5.1.
|
|
48
|
-
"@inquirer/select": "^5.2.
|
|
49
|
-
"commander": "^
|
|
46
|
+
"@inquirer/checkbox": "^5.2.1",
|
|
47
|
+
"@inquirer/input": "^5.1.2",
|
|
48
|
+
"@inquirer/select": "^5.2.1",
|
|
49
|
+
"commander": "^15.0.0",
|
|
50
50
|
"nanoexec": "^1.1.0"
|
|
51
51
|
},
|
|
52
52
|
"publishConfig": {
|
|
@@ -16,21 +16,21 @@
|
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@faker-js/faker": "^10.4.0",
|
|
19
|
-
"@tanstack/vue-query": "^5.
|
|
20
|
-
"@tanstack/vue-query-devtools": "^6.1.
|
|
19
|
+
"@tanstack/vue-query": "^5.101.0",
|
|
20
|
+
"@tanstack/vue-query-devtools": "^6.1.34",
|
|
21
21
|
"@tanstack/vue-table": "^8.21.3",
|
|
22
|
-
"@tanstack/vue-virtual": "^3.13.
|
|
22
|
+
"@tanstack/vue-virtual": "^3.13.28",
|
|
23
23
|
"@trpc/client": "^11.17.0",
|
|
24
24
|
"clsx": "^2.1.1",
|
|
25
25
|
"pinia": "^3.0.4",
|
|
26
26
|
"tailwind-merge": "^3.6.0",
|
|
27
27
|
"tailwind-variants": "^3.2.2",
|
|
28
28
|
"vue": "^3.5.35",
|
|
29
|
-
"vue-i18n": "^11.4.
|
|
30
|
-
"vue-router": "^5.0
|
|
29
|
+
"vue-i18n": "^11.4.5",
|
|
30
|
+
"vue-router": "^5.1.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@cloudflare/vite-plugin": "^1.
|
|
33
|
+
"@cloudflare/vite-plugin": "^1.40.1",
|
|
34
34
|
"@hono/node-server": "^2.0.4",
|
|
35
35
|
"@hono/trpc-server": "^0.4.2",
|
|
36
36
|
"@tailwindcss/vite": "^4.3.0",
|
|
@@ -39,14 +39,14 @@
|
|
|
39
39
|
"@vitejs/plugin-vue-jsx": "^5.1.5",
|
|
40
40
|
"@vue/tsconfig": "^0.9.1",
|
|
41
41
|
"consola": "^3.4.2",
|
|
42
|
-
"hono": "^4.12.
|
|
42
|
+
"hono": "^4.12.25",
|
|
43
43
|
"tailwindcss": "^4.3.0",
|
|
44
44
|
"typescript": "~6.0.3",
|
|
45
|
-
"vite": "^8.0.
|
|
45
|
+
"vite": "^8.0.16",
|
|
46
46
|
"vite-plugin-vue-devtools": "^8.1.2",
|
|
47
47
|
"vite-tsconfig-paths": "^6.1.1",
|
|
48
|
-
"vue-tsc": "3.3.
|
|
49
|
-
"wrangler": "^4.
|
|
48
|
+
"vue-tsc": "3.3.4",
|
|
49
|
+
"wrangler": "^4.99.0",
|
|
50
50
|
"zod": "^4.4.3"
|
|
51
51
|
}
|
|
52
52
|
}
|