create-claude-workspace 1.1.95 → 1.1.97
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.
|
@@ -14,6 +14,8 @@ Angular (latest) with:
|
|
|
14
14
|
|
|
15
15
|
## Nx Angular Generators
|
|
16
16
|
|
|
17
|
+
**SSR is MANDATORY for all Angular applications** — every app MUST be generated with `--ssr` (configured as default below). SSR is required for SEO. The only exception is if the user explicitly opts out.
|
|
18
|
+
|
|
17
19
|
Generator defaults are configured in `nx.json` — no need to repeat flags like `--unitTestRunner`, `--linter`, `--style` in every command:
|
|
18
20
|
```jsonc
|
|
19
21
|
// nx.json -> "generators"
|
|
@@ -22,7 +24,8 @@ Generator defaults are configured in `nx.json` — no need to repeat flags like
|
|
|
22
24
|
"e2eTestRunner": "playwright",
|
|
23
25
|
"linter": "eslint",
|
|
24
26
|
"style": "scss",
|
|
25
|
-
"unitTestRunner": "vitest"
|
|
27
|
+
"unitTestRunner": "vitest",
|
|
28
|
+
"ssr": true
|
|
26
29
|
},
|
|
27
30
|
"@nx/angular:component": { "style": "scss" },
|
|
28
31
|
"@nx/angular:library": {
|
|
@@ -340,13 +343,14 @@ The path MUST point to the **library root directory** (where `package.json` live
|
|
|
340
343
|
// package.json (root or consuming app)
|
|
341
344
|
{
|
|
342
345
|
"dependencies": {
|
|
343
|
-
"theme": "workspace:./libs/ui/theme"
|
|
344
|
-
//
|
|
345
|
-
// If repo has a scope: "@[scope]/theme": "workspace:./libs/ui/theme"
|
|
346
|
+
"theme": "workspace:./libs/ui/theme"
|
|
347
|
+
// With scope: "@[scope]/theme": "workspace:./libs/ui/theme"
|
|
346
348
|
}
|
|
347
349
|
}
|
|
348
350
|
```
|
|
349
351
|
|
|
352
|
+
**ALWAYS use `workspace:` protocol** — NEVER use `file:` (it creates a copy instead of a symlink, breaking live updates). `workspace:` works in bun, pnpm, and npm 7+.
|
|
353
|
+
|
|
350
354
|
**NEVER point to a subdirectory** like `./libs/ui/theme/src/generated/theme` or `./libs/ui/theme/src` — always the library root with `package.json`. The `exports` field in that `package.json` handles the mapping.
|
|
351
355
|
|
|
352
356
|
Then run `<PM> install` to create the link. SCSS `@use 'theme/colors'` (or `@use '@[scope]/theme/colors'` with scope) resolves automatically.
|
|
@@ -230,13 +230,14 @@ The path MUST point to the **library root directory** (where `package.json` live
|
|
|
230
230
|
// package.json (root or consuming app)
|
|
231
231
|
{
|
|
232
232
|
"dependencies": {
|
|
233
|
-
"theme": "workspace:./libs/ui/theme"
|
|
234
|
-
//
|
|
235
|
-
// If repo has a scope: "@[scope]/theme": "workspace:./libs/ui/theme"
|
|
233
|
+
"theme": "workspace:./libs/ui/theme"
|
|
234
|
+
// With scope: "@[scope]/theme": "workspace:./libs/ui/theme"
|
|
236
235
|
}
|
|
237
236
|
}
|
|
238
237
|
```
|
|
239
238
|
|
|
239
|
+
**ALWAYS use `workspace:` protocol** — NEVER use `file:` (it creates a copy instead of a symlink, breaking live updates). `workspace:` works in bun, pnpm, and npm 7+.
|
|
240
|
+
|
|
240
241
|
**NEVER point to a subdirectory** like `./libs/ui/theme/src/generated/theme` or `./libs/ui/theme/src` — always the library root with `package.json`. The `exports` field in that `package.json` handles the mapping.
|
|
241
242
|
|
|
242
243
|
Then run `<PM> install` to create the link. SCSS `@use 'theme/colors'` (or `@use '@[scope]/theme/colors'` with scope) resolves automatically.
|
|
@@ -230,13 +230,14 @@ The path MUST point to the **library root directory** (where `package.json` live
|
|
|
230
230
|
// package.json (root or consuming app)
|
|
231
231
|
{
|
|
232
232
|
"dependencies": {
|
|
233
|
-
"theme": "workspace:./libs/ui/theme"
|
|
234
|
-
//
|
|
235
|
-
// If repo has a scope: "@[scope]/theme": "workspace:./libs/ui/theme"
|
|
233
|
+
"theme": "workspace:./libs/ui/theme"
|
|
234
|
+
// With scope: "@[scope]/theme": "workspace:./libs/ui/theme"
|
|
236
235
|
}
|
|
237
236
|
}
|
|
238
237
|
```
|
|
239
238
|
|
|
239
|
+
**ALWAYS use `workspace:` protocol** — NEVER use `file:` (it creates a copy instead of a symlink, breaking live updates). `workspace:` works in bun, pnpm, and npm 7+.
|
|
240
|
+
|
|
240
241
|
**NEVER point to a subdirectory** like `./libs/ui/theme/src/generated/theme` or `./libs/ui/theme/src` — always the library root with `package.json`. The `exports` field in that `package.json` handles the mapping.
|
|
241
242
|
|
|
242
243
|
Then run `<PM> install` to create the link. SCSS `@use 'theme/colors'` (or `@use '@[scope]/theme/colors'` with scope) resolves automatically.
|
|
@@ -258,13 +258,14 @@ The path MUST point to the **library root directory** (where `package.json` live
|
|
|
258
258
|
// package.json (root or consuming app)
|
|
259
259
|
{
|
|
260
260
|
"dependencies": {
|
|
261
|
-
"theme": "workspace:./libs/ui/theme"
|
|
262
|
-
//
|
|
263
|
-
// If repo has a scope: "@[scope]/theme": "workspace:./libs/ui/theme"
|
|
261
|
+
"theme": "workspace:./libs/ui/theme"
|
|
262
|
+
// With scope: "@[scope]/theme": "workspace:./libs/ui/theme"
|
|
264
263
|
}
|
|
265
264
|
}
|
|
266
265
|
```
|
|
267
266
|
|
|
267
|
+
**ALWAYS use `workspace:` protocol** — NEVER use `file:` (it creates a copy instead of a symlink, breaking live updates). `workspace:` works in bun, pnpm, and npm 7+.
|
|
268
|
+
|
|
268
269
|
**NEVER point to a subdirectory** like `./libs/ui/theme/src/generated/theme` or `./libs/ui/theme/src` — always the library root with `package.json`. The `exports` field in that `package.json` handles the mapping.
|
|
269
270
|
|
|
270
271
|
Then run `<PM> install` to create the link. SCSS `@use 'theme/colors'` (or `@use '@[scope]/theme/colors'` with scope) resolves automatically.
|