@icebreakers/monorepo-templates 1.0.0 → 1.0.1

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 (35) hide show
  1. package/assets/Dockerfile +5 -14
  2. package/assets/package.json +4 -5
  3. package/assets-data.mjs +0 -1
  4. package/dist/index.mjs +1 -3
  5. package/package.json +1 -1
  6. package/templates/cli/bin/index.js +1 -1
  7. package/templates/cli/package.json +5 -2
  8. package/templates/cli/{tsup.config.ts → tsdown.config.ts} +3 -2
  9. package/templates/client/eslint.config.js +2 -4
  10. package/templates/client/gitignore +0 -1
  11. package/templates/client/package.json +7 -7
  12. package/templates/client/worker-configuration.d.ts +13557 -0
  13. package/templates/client/wrangler.jsonc +3 -0
  14. package/templates/server/eslint.config.js +8 -0
  15. package/templates/server/gitignore +0 -1
  16. package/templates/server/package.json +8 -7
  17. package/templates/server/{tsup.config.ts → tsdown.config.ts} +2 -1
  18. package/templates/server/vitest.config.ts +3 -2
  19. package/templates/server/worker-configuration.d.ts +13557 -0
  20. package/templates/server/wrangler.jsonc +3 -0
  21. package/templates/tsdown/vitest.config.ts +3 -2
  22. package/templates/vitepress/monorepo/commands.md +12 -2
  23. package/templates/vitepress/monorepo/troubleshooting.md +20 -1
  24. package/templates/vitepress/why/examples/3.npm-basic-package/package-lock.json +605 -2770
  25. package/templates/vitepress/why/examples/3.npm-basic-package/package.json +5 -6
  26. package/templates/vitepress/why/examples/3.npm-basic-package/tsdown.config.ts +16 -0
  27. package/templates/vitepress/why/modern/bundlers.md +11 -0
  28. package/templates/vue-lib/eslint.config.js +1 -3
  29. package/templates/vue-lib/package.json +6 -6
  30. package/templates/vue-lib/test-d/index.test-d.ts +1 -1
  31. package/templates/vue-lib/vitest.config.ts +1 -3
  32. package/assets/tooling/ensure-tooling-built.mjs +0 -24
  33. package/assets/tooling/load-tooling-module.mjs +0 -71
  34. package/templates/vitepress/why/examples/3.npm-basic-package/build.config.ts +0 -24
  35. package/templates/vitepress/why/examples/3.npm-basic-package/tsup.config.ts +0 -16
package/assets/Dockerfile CHANGED
@@ -7,21 +7,12 @@ FROM base AS builder
7
7
  COPY . /usr/src/app
8
8
  WORKDIR /usr/src/app
9
9
  RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
10
- RUN pnpm run -r build \
11
- && pnpm deploy --filter=@icebreakers/foo --prod /prod/foo \
12
- && pnpm deploy --filter=@icebreakers/bar --prod /prod/bar
10
+ RUN pnpm run -r build
13
11
 
14
- FROM base AS foo
15
- COPY --from=builder /prod/foo /prod/foo
16
- WORKDIR /prod/foo
12
+ FROM base AS app
13
+ COPY --from=builder /usr/src/app /app
14
+ WORKDIR /app
17
15
  EXPOSE 8000
18
16
  CMD [ "pnpm", "start" ]
19
17
 
20
- FROM base AS bar
21
- COPY --from=builder /prod/bar /prod/bar
22
- WORKDIR /prod/bar
23
- EXPOSE 8001
24
- CMD [ "pnpm", "start" ]
25
-
26
- # docker build . --target foo --tag foo:latest
27
- # docker build . --target bar --tag bar:latest
18
+ # docker build . --target app --tag app:latest
@@ -21,7 +21,7 @@
21
21
  "dev": "turbo run dev --parallel",
22
22
  "test": "vitest run",
23
23
  "test:dev": "vitest",
24
- "lint": "turbo run lint",
24
+ "lint": "pnpm run tooling:build && turbo run lint",
25
25
  "tsd": "turbo run tsd",
26
26
  "audit": "pnpm audit --audit-level=moderate",
27
27
  "audit:fix": "pnpm audit --fix",
@@ -29,7 +29,7 @@
29
29
  "format": "eslint . --fix",
30
30
  "validate": "pnpm run build && pnpm run lint && pnpm run typecheck && pnpm run tsd && pnpm run test",
31
31
  "release": "changeset",
32
- "publish-packages": "turbo run build lint test && changeset version && changeset publish",
32
+ "publish-packages": "pnpm run build && pnpm run lint && pnpm run test && changeset version && changeset publish",
33
33
  "------": "--------------",
34
34
  "preinstall": "npx only-allow pnpm",
35
35
  "prepare": "husky",
@@ -76,14 +76,13 @@
76
76
  "pathe": "^2.0.3",
77
77
  "pkg-types": "^2.3.1",
78
78
  "repoctl": "workspace:*",
79
- "stylelint": "^17.9.1",
79
+ "stylelint": "^17.11.0",
80
80
  "tailwindcss": "^4.2.4",
81
81
  "tsd": "^0.33.0",
82
82
  "tsdown": "0.21.10",
83
83
  "tslib": "^2.8.1",
84
- "tsup": "^8.5.1",
85
84
  "tsx": "^4.21.0",
86
- "turbo": "^2.9.7",
85
+ "turbo": "^2.9.9",
87
86
  "type-fest": "^5.6.0",
88
87
  "typescript": "^6.0.3",
89
88
  "vitest": "~4.1.5",
package/assets-data.mjs CHANGED
@@ -16,7 +16,6 @@ const coreAssetTargets = [
16
16
  // pnpm
17
17
  'pnpm-workspace.yaml',
18
18
  'scripts',
19
- 'tooling',
20
19
  // base tsconfig
21
20
  'tsconfig.json',
22
21
  // turbo
package/dist/index.mjs CHANGED
@@ -25,7 +25,6 @@ const coreAssetTargets = [
25
25
  "AGENTS.md",
26
26
  "pnpm-workspace.yaml",
27
27
  "scripts",
28
- "tooling",
29
28
  "tsconfig.json",
30
29
  "turbo.json",
31
30
  "vitest.config.ts",
@@ -151,8 +150,7 @@ const skipDirs = new Set([
151
150
  const skipFiles = new Set([
152
151
  ".DS_Store",
153
152
  "CHANGELOG.md",
154
- "route-map.d.ts",
155
- "worker-configuration.d.ts"
153
+ "route-map.d.ts"
156
154
  ]);
157
155
  function shouldSkipTemplatePath(rootDir, targetPath) {
158
156
  const basename = path.basename(targetPath);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@icebreakers/monorepo-templates",
3
3
  "type": "module",
4
- "version": "1.0.0",
4
+ "version": "1.0.1",
5
5
  "description": "Template assets for icebreaker monorepo scaffolding",
6
6
  "author": "ice breaker <hi@sonofmagic.top>",
7
7
  "license": "MIT",
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import '../dist/cli.js'
2
+ import '../dist/cli.mjs'
@@ -19,8 +19,8 @@
19
19
  },
20
20
  "scripts": {
21
21
  "start": "tsx src/index.ts",
22
- "dev": "tsup --watch --sourcemap",
23
- "build": "tsup",
22
+ "dev": "tsdown --watch --sourcemap",
23
+ "build": "tsdown",
24
24
  "lint": "eslint .",
25
25
  "lint:fix": "eslint . --fix",
26
26
  "typecheck": "tsc -p tsconfig.json"
@@ -28,6 +28,9 @@
28
28
  "dependencies": {
29
29
  "consola": "^3.4.2"
30
30
  },
31
+ "devDependencies": {
32
+ "tsdown": "0.21.10"
33
+ },
31
34
  "publishConfig": {
32
35
  "bin": {
33
36
  "ice": "./bin/index.js"
@@ -1,9 +1,10 @@
1
- import { defineConfig } from 'tsup'
1
+ import { defineConfig } from 'tsdown'
2
2
 
3
3
  export default defineConfig({
4
4
  entry: ['src/index.ts', 'src/cli.ts'],
5
5
  shims: true,
6
- format: ['cjs', 'esm'],
6
+ format: ['esm', 'cjs'],
7
7
  clean: true,
8
8
  dts: true,
9
+ target: 'node18',
9
10
  })
@@ -1,7 +1,5 @@
1
1
  import { fileURLToPath } from 'node:url'
2
- import { loadRepoctlToolingModule } from '../../tooling/load-tooling-module.mjs'
3
-
4
- const { defineEslintConfig } = await loadRepoctlToolingModule()
2
+ import { defineEslintConfig } from 'repoctl/tooling'
5
3
 
6
4
  const tailwindEntryPoint = fileURLToPath(new URL('./src/style.css', import.meta.url))
7
5
 
@@ -12,6 +10,6 @@ export default await defineEslintConfig({
12
10
  tailwindcss: {
13
11
  entryPoint: tailwindEntryPoint,
14
12
  },
15
- ignores: ['**/fixtures/**'],
13
+ ignores: ['**/fixtures/**', 'worker-configuration.d.ts'],
16
14
  },
17
15
  })
@@ -25,4 +25,3 @@ dist-ssr
25
25
  src/route-map.d.ts
26
26
  .wrangler
27
27
  .dev.vars*
28
- worker-configuration.d.ts
@@ -16,8 +16,8 @@
16
16
  },
17
17
  "dependencies": {
18
18
  "@faker-js/faker": "^10.4.0",
19
- "@tanstack/vue-query": "^5.100.8",
20
- "@tanstack/vue-query-devtools": "^6.1.27",
19
+ "@tanstack/vue-query": "^5.100.9",
20
+ "@tanstack/vue-query-devtools": "^6.1.28",
21
21
  "@tanstack/vue-table": "^8.21.3",
22
22
  "@tanstack/vue-virtual": "^3.13.24",
23
23
  "@trpc/client": "^11.17.0",
@@ -30,7 +30,7 @@
30
30
  "vue-router": "^5.0.6"
31
31
  },
32
32
  "devDependencies": {
33
- "@cloudflare/vite-plugin": "^1.35.0",
33
+ "@cloudflare/vite-plugin": "^1.36.0",
34
34
  "@hono/node-server": "^2.0.1",
35
35
  "@hono/trpc-server": "^0.4.2",
36
36
  "@tailwindcss/vite": "^4.2.4",
@@ -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.16",
42
+ "hono": "^4.12.17",
43
43
  "tailwindcss": "^4.2.4",
44
44
  "typescript": "~6.0.3",
45
45
  "vite": "^8.0.10",
46
46
  "vite-plugin-vue-devtools": "^8.1.1",
47
47
  "vite-tsconfig-paths": "^6.1.1",
48
- "vue-tsc": "3.2.7",
49
- "wrangler": "^4.87.0",
50
- "zod": "^4.4.2"
48
+ "vue-tsc": "3.2.8",
49
+ "wrangler": "^4.88.0",
50
+ "zod": "^4.4.3"
51
51
  }
52
52
  }