@ykdz/template 0.0.1 → 0.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.
Files changed (101) hide show
  1. package/dist/src/cli.d.ts.map +1 -0
  2. package/dist/{cli.js → src/cli.js} +126 -128
  3. package/dist/{declarations.d.ts → src/declarations.d.ts} +1 -2
  4. package/dist/src/declarations.d.ts.map +1 -0
  5. package/dist/{declarations.js → src/declarations.js} +2 -109
  6. package/dist/src/dependency-catalog.d.ts +10 -0
  7. package/dist/src/dependency-catalog.d.ts.map +1 -0
  8. package/dist/src/dependency-catalog.js +63 -0
  9. package/dist/src/devcontainer.d.ts +18 -0
  10. package/dist/src/devcontainer.d.ts.map +1 -0
  11. package/dist/src/devcontainer.js +24 -0
  12. package/dist/src/editor-customization.d.ts +13 -0
  13. package/dist/src/editor-customization.d.ts.map +1 -0
  14. package/dist/src/editor-customization.js +101 -0
  15. package/dist/src/generation-context.d.ts +24 -0
  16. package/dist/src/generation-context.d.ts.map +1 -0
  17. package/dist/src/generation-context.js +12 -0
  18. package/dist/src/module-graph.d.ts +31 -0
  19. package/dist/src/module-graph.d.ts.map +1 -0
  20. package/dist/src/module-graph.js +48 -0
  21. package/dist/src/next-step-instructions.d.ts +21 -0
  22. package/dist/src/next-step-instructions.d.ts.map +1 -0
  23. package/dist/src/next-step-instructions.js +89 -0
  24. package/dist/src/package-addition.d.ts.map +1 -0
  25. package/dist/src/package-addition.js +188 -0
  26. package/dist/src/preset-projection.d.ts +66 -0
  27. package/dist/src/preset-projection.d.ts.map +1 -0
  28. package/dist/src/preset-projection.js +7 -0
  29. package/dist/src/project-github.d.ts +29 -0
  30. package/dist/src/project-github.d.ts.map +1 -0
  31. package/dist/src/project-github.js +63 -0
  32. package/dist/src/renderer.d.ts.map +1 -0
  33. package/dist/{renderer.js → src/renderer.js} +0 -3
  34. package/dist/src/runtime-paths.d.ts +2 -0
  35. package/dist/src/runtime-paths.d.ts.map +1 -0
  36. package/dist/src/runtime-paths.js +11 -0
  37. package/dist/src/toolchain-resolution.d.ts +35 -0
  38. package/dist/src/toolchain-resolution.d.ts.map +1 -0
  39. package/dist/src/toolchain-resolution.js +192 -0
  40. package/dist/templates/hono-api/projection.d.ts +7 -0
  41. package/dist/templates/hono-api/projection.d.ts.map +1 -0
  42. package/dist/templates/hono-api/projection.js +377 -0
  43. package/dist/templates/projection-plans.d.ts +8 -0
  44. package/dist/templates/projection-plans.d.ts.map +1 -0
  45. package/dist/templates/projection-plans.js +94 -0
  46. package/dist/templates/registry.d.ts +8 -0
  47. package/dist/templates/registry.d.ts.map +1 -0
  48. package/dist/templates/registry.js +42 -0
  49. package/dist/templates/rust-bin/projection.d.ts +10 -0
  50. package/dist/templates/rust-bin/projection.d.ts.map +1 -0
  51. package/dist/templates/rust-bin/projection.js +282 -0
  52. package/dist/templates/ts-lib/projection.d.ts +7 -0
  53. package/dist/templates/ts-lib/projection.d.ts.map +1 -0
  54. package/dist/templates/ts-lib/projection.js +372 -0
  55. package/dist/templates/vue-app/projection.d.ts +7 -0
  56. package/dist/templates/vue-app/projection.d.ts.map +1 -0
  57. package/dist/templates/vue-app/projection.js +594 -0
  58. package/dist/templates/vue-hono-app/projection.d.ts +9 -0
  59. package/dist/templates/vue-hono-app/projection.d.ts.map +1 -0
  60. package/dist/templates/vue-hono-app/projection.js +589 -0
  61. package/package.json +30 -24
  62. package/pnpm-workspace.yaml +34 -0
  63. package/templates/hono-api/projection.ts +453 -0
  64. package/templates/projection-plans.ts +135 -0
  65. package/templates/registry.ts +59 -0
  66. package/templates/rust-bin/.github/dependabot.yml +4 -0
  67. package/templates/rust-bin/.github/workflows/check.yml +6 -1
  68. package/templates/rust-bin/projection.ts +346 -0
  69. package/templates/ts-lib/projection.ts +454 -0
  70. package/templates/vue-app/projection.ts +687 -0
  71. package/templates/vue-app/test/e2e/app.spec.ts +4 -1
  72. package/templates/vue-hono-app/projection.ts +669 -0
  73. package/templates/vue-hono-app/web/test/e2e/app.spec.ts +4 -1
  74. package/dist/cli.d.ts.map +0 -1
  75. package/dist/declarations.d.ts.map +0 -1
  76. package/dist/hono-api.d.ts +0 -2
  77. package/dist/hono-api.d.ts.map +0 -1
  78. package/dist/hono-api.js +0 -208
  79. package/dist/package-addition.d.ts.map +0 -1
  80. package/dist/package-addition.js +0 -560
  81. package/dist/post-commands.d.ts +0 -40
  82. package/dist/post-commands.d.ts.map +0 -1
  83. package/dist/post-commands.js +0 -154
  84. package/dist/renderer.d.ts.map +0 -1
  85. package/dist/rust-bin.d.ts +0 -2
  86. package/dist/rust-bin.d.ts.map +0 -1
  87. package/dist/rust-bin.js +0 -174
  88. package/dist/ts-lib.d.ts +0 -2
  89. package/dist/ts-lib.d.ts.map +0 -1
  90. package/dist/ts-lib.js +0 -181
  91. package/dist/vue-app.d.ts +0 -2
  92. package/dist/vue-app.d.ts.map +0 -1
  93. package/dist/vue-app.js +0 -299
  94. package/dist/vue-hono-app.d.ts +0 -4
  95. package/dist/vue-hono-app.d.ts.map +0 -1
  96. package/dist/vue-hono-app.js +0 -436
  97. package/templates/shared/oxc/package.json +0 -18
  98. package/templates/shared/oxc/tsconfig.json +0 -11
  99. /package/dist/{cli.d.ts → src/cli.d.ts} +0 -0
  100. /package/dist/{package-addition.d.ts → src/package-addition.d.ts} +0 -0
  101. /package/dist/{renderer.d.ts → src/renderer.d.ts} +0 -0
package/dist/vue-app.js DELETED
@@ -1,299 +0,0 @@
1
- import path from "node:path";
2
- import { fileURLToPath } from "node:url";
3
- import { renderNewProject } from "./renderer.js";
4
- const features = [
5
- "pnpm-catalog",
6
- "oxc-format-lint",
7
- "strict-typescript",
8
- "root-check",
9
- "fix-command",
10
- "devcontainer",
11
- "github-actions",
12
- "dependabot"
13
- ];
14
- const generatedBy = {
15
- packageName: "@ykdz/template",
16
- version: "0.0.0",
17
- command: "template init --preset vue-app"
18
- };
19
- function projectNameFromDir(targetDir) {
20
- return path.basename(path.resolve(targetDir));
21
- }
22
- function packageJson(projectName) {
23
- return {
24
- name: projectName,
25
- version: "0.0.0",
26
- private: true,
27
- type: "module",
28
- scripts: {
29
- build: "vite build",
30
- check: "pnpm run format:check && pnpm run lint && pnpm run typecheck && pnpm run build && pnpm run test && pnpm run test:e2e",
31
- dev: "vite",
32
- fix: "pnpm run format:write && pnpm run lint:fix",
33
- "format:check": "oxfmt --check .",
34
- "format:write": "oxfmt --write .",
35
- lint: "oxlint . --deny-warnings",
36
- "lint:fix": "oxlint . --fix --deny-warnings",
37
- preview: "vite preview",
38
- test: "vitest run",
39
- "test:e2e": "pnpm run build && playwright test",
40
- typecheck: "vue-tsc --build --noEmit"
41
- },
42
- dependencies: {
43
- "@vueuse/core": "catalog:",
44
- pinia: "catalog:",
45
- vue: "catalog:"
46
- },
47
- devDependencies: {
48
- "@playwright/test": "catalog:",
49
- "@tailwindcss/vite": "catalog:",
50
- "@types/node": "catalog:",
51
- "@types/web-bluetooth": "catalog:",
52
- "@vitejs/plugin-vue": "catalog:",
53
- "@vue/tsconfig": "catalog:",
54
- oxfmt: "catalog:",
55
- oxlint: "catalog:",
56
- tailwindcss: "catalog:",
57
- typescript: "catalog:",
58
- vite: "catalog:",
59
- vitest: "catalog:",
60
- "vue-tsc": "catalog:"
61
- },
62
- engines: {
63
- node: "22"
64
- },
65
- packageManager: "pnpm@10.0.0"
66
- };
67
- }
68
- function operationsForVueApp(projectName) {
69
- return [
70
- {
71
- kind: "writeJson",
72
- to: "package.json",
73
- value: packageJson(projectName)
74
- },
75
- {
76
- kind: "writeText",
77
- to: "pnpm-workspace.yaml",
78
- text: [
79
- "packages:",
80
- " - .",
81
- "",
82
- "allowBuilds:",
83
- " esbuild: true",
84
- "",
85
- "catalog:",
86
- ' "@playwright/test": ^1.57.0',
87
- ' "@tailwindcss/vite": ^4.1.18',
88
- ' "@types/node": ^24.0.0',
89
- ' "@types/web-bluetooth": ^0.0.21',
90
- ' "@vitejs/plugin-vue": ^6.0.2',
91
- ' "@vue/tsconfig": ^0.8.1',
92
- ' "@vueuse/core": ^14.1.0',
93
- " oxfmt: ^0.56.0",
94
- " oxlint: ^1.71.0",
95
- " pinia: ^3.0.4",
96
- " tailwindcss: ^4.1.18",
97
- " typescript: ^5.8.0",
98
- " vite: ^7.3.0",
99
- " vitest: ^4.1.9",
100
- " vue: ^3.5.26",
101
- " vue-tsc: ^3.1.8",
102
- ""
103
- ].join("\n")
104
- },
105
- {
106
- kind: "writeJson",
107
- to: "tsconfig.json",
108
- value: {
109
- files: [],
110
- references: [
111
- { path: "./tsconfig.app.json" },
112
- { path: "./tsconfig.test.json" },
113
- { path: "./tsconfig.node.json" }
114
- ]
115
- }
116
- },
117
- {
118
- kind: "writeJson",
119
- to: "tsconfig.app.json",
120
- value: {
121
- extends: "@vue/tsconfig/tsconfig.dom.json",
122
- compilerOptions: {
123
- baseUrl: ".",
124
- composite: true,
125
- module: "ESNext",
126
- moduleResolution: "Bundler",
127
- noEmitOnError: true,
128
- paths: {
129
- "@/*": ["./src/*"]
130
- },
131
- skipLibCheck: false,
132
- strict: true,
133
- target: "ES2022",
134
- tsBuildInfoFile: "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
135
- types: ["web-bluetooth"]
136
- },
137
- include: ["env.d.ts", "src/**/*.ts", "src/**/*.vue"]
138
- }
139
- },
140
- {
141
- kind: "writeJson",
142
- to: "tsconfig.test.json",
143
- value: {
144
- extends: "./tsconfig.app.json",
145
- compilerOptions: {
146
- lib: ["ESNext", "DOM", "DOM.Iterable"],
147
- tsBuildInfoFile: "./node_modules/.tmp/tsconfig.test.tsbuildinfo",
148
- types: ["node", "vitest/globals", "web-bluetooth"]
149
- },
150
- include: ["env.d.ts", "src/**/*.ts", "src/**/*.vue", "test/**/*.ts"]
151
- }
152
- },
153
- {
154
- kind: "writeJson",
155
- to: "tsconfig.node.json",
156
- value: {
157
- compilerOptions: {
158
- composite: true,
159
- module: "ESNext",
160
- moduleResolution: "Bundler",
161
- noEmitOnError: true,
162
- lib: ["ESNext", "DOM", "DOM.Iterable"],
163
- skipLibCheck: false,
164
- strict: true,
165
- target: "ES2022",
166
- tsBuildInfoFile: "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
167
- types: ["node"]
168
- },
169
- include: ["playwright.config.ts", "vite.config.ts", "vitest.config.ts"]
170
- }
171
- },
172
- {
173
- kind: "copyFile",
174
- sourceRoot: "sharedOxc",
175
- from: "vue/oxlint.config.ts",
176
- to: "oxlint.config.ts"
177
- },
178
- {
179
- kind: "copyFile",
180
- sourceRoot: "sharedOxc",
181
- from: "oxfmt.config.ts",
182
- to: "oxfmt.config.ts"
183
- },
184
- {
185
- kind: "writeText",
186
- to: ".gitignore",
187
- text: ["node_modules", "dist", "playwright-report", "test-results", ".env", ""].join("\n")
188
- },
189
- {
190
- kind: "copyFile",
191
- from: "env.d.ts",
192
- to: "env.d.ts"
193
- },
194
- {
195
- kind: "copyFile",
196
- from: "index.html",
197
- to: "index.html"
198
- },
199
- {
200
- kind: "copyFile",
201
- from: "playwright.config.ts",
202
- to: "playwright.config.ts"
203
- },
204
- {
205
- kind: "copyFile",
206
- from: "vite.config.ts",
207
- to: "vite.config.ts"
208
- },
209
- {
210
- kind: "copyFile",
211
- from: "vitest.config.ts",
212
- to: "vitest.config.ts"
213
- },
214
- {
215
- kind: "copyFile",
216
- from: "src/App.vue",
217
- to: "src/App.vue"
218
- },
219
- {
220
- kind: "copyFile",
221
- from: "src/main.ts",
222
- to: "src/main.ts"
223
- },
224
- {
225
- kind: "copyFile",
226
- from: "src/style.css",
227
- to: "src/style.css"
228
- },
229
- {
230
- kind: "copyFile",
231
- from: "src/stores/counter.ts",
232
- to: "src/stores/counter.ts"
233
- },
234
- {
235
- kind: "copyFile",
236
- from: "test/app.test.ts",
237
- to: "test/app.test.ts"
238
- },
239
- {
240
- kind: "copyFile",
241
- from: "test/e2e/app.spec.ts",
242
- to: "test/e2e/app.spec.ts"
243
- },
244
- {
245
- kind: "writeJson",
246
- to: ".project-kit/blueprint.json",
247
- value: {
248
- schemaVersion: 1,
249
- preset: "vue-app",
250
- packageManager: "pnpm",
251
- projectKind: "single-package",
252
- features
253
- }
254
- },
255
- {
256
- kind: "writeJson",
257
- to: ".project-kit/generated-by.json",
258
- value: generatedBy
259
- },
260
- {
261
- kind: "writeJson",
262
- to: ".devcontainer/devcontainer.json",
263
- value: {
264
- name: `${projectName} Vue development`,
265
- image: "mcr.microsoft.com/devcontainers/typescript-node:22",
266
- postCreateCommand: "corepack enable && pnpm install && pnpm exec playwright install chromium",
267
- customizations: {
268
- vscode: {
269
- extensions: ["Vue.volar", "oxc.oxc-vscode"]
270
- }
271
- }
272
- }
273
- },
274
- {
275
- kind: "copyFile",
276
- from: ".github/workflows/check.yml",
277
- to: ".github/workflows/check.yml",
278
- },
279
- {
280
- kind: "copyFile",
281
- from: ".github/dependabot.yml",
282
- to: ".github/dependabot.yml",
283
- }
284
- ];
285
- }
286
- function templateSourceRoot() {
287
- return path.join(path.dirname(fileURLToPath(import.meta.url)), "..", "templates", "vue-app");
288
- }
289
- function sharedOxcSourceRoot() {
290
- return path.join(path.dirname(fileURLToPath(import.meta.url)), "..", "templates", "shared", "oxc");
291
- }
292
- export async function initVueAppProject(targetDir) {
293
- await renderNewProject({
294
- sourceRoot: templateSourceRoot(),
295
- sourceRoots: { sharedOxc: sharedOxcSourceRoot() },
296
- targetRoot: targetDir,
297
- operations: operationsForVueApp(projectNameFromDir(targetDir))
298
- });
299
- }
@@ -1,4 +0,0 @@
1
- export declare function initVueHonoAppProject(targetDir: string, options?: {
2
- scope?: string;
3
- }): Promise<void>;
4
- //# sourceMappingURL=vue-hono-app.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"vue-hono-app.d.ts","sourceRoot":"","sources":["../src/vue-hono-app.ts"],"names":[],"mappings":"AA8bA,wBAAsB,qBAAqB,CACzC,SAAS,EAAE,MAAM,EACjB,OAAO,GAAE;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAO,GAC/B,OAAO,CAAC,IAAI,CAAC,CASf"}