@simplysm/sd-cli 13.0.13 → 13.0.14
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/README.md
CHANGED
|
@@ -131,6 +131,10 @@ sd-cli dev solid-demo my-server
|
|
|
131
131
|
- Client packages with Electron config launch Electron in dev mode after build completes
|
|
132
132
|
- Terminates on SIGINT/SIGTERM signals
|
|
133
133
|
|
|
134
|
+
**Scope Package HMR:**
|
|
135
|
+
|
|
136
|
+
When using `replaceDeps` to develop scope packages locally, the Vite dev server automatically watches scope package dist files and triggers HMR when they change. This allows changes to `@simplysm/*` packages to be reflected in the dev app without manual reload.
|
|
137
|
+
|
|
134
138
|
### build
|
|
135
139
|
|
|
136
140
|
Runs production build. Performs lint, dist folder cleanup, and build sequentially.
|
|
@@ -367,7 +371,9 @@ import { createViteConfig } from "@simplysm/sd-cli";
|
|
|
367
371
|
|
|
368
372
|
## Vite Utilities
|
|
369
373
|
|
|
370
|
-
|
|
374
|
+
### createViteConfig
|
|
375
|
+
|
|
376
|
+
Creates pre-configured Vite configuration for Simplysm client packages:
|
|
371
377
|
|
|
372
378
|
```typescript
|
|
373
379
|
import { createViteConfig, type ViteConfigOptions } from "@simplysm/sd-cli";
|
|
@@ -377,11 +383,12 @@ export default createViteConfig({
|
|
|
377
383
|
});
|
|
378
384
|
```
|
|
379
385
|
|
|
380
|
-
The `createViteConfig()` function
|
|
386
|
+
The `createViteConfig()` function provides:
|
|
381
387
|
- Development server configuration
|
|
382
388
|
- Production build optimization
|
|
383
389
|
- Asset handling
|
|
384
390
|
- Environment variable substitution support
|
|
391
|
+
- Scope package watch/HMR (automatically watches scope package dist files and triggers HMR on changes via `replaceDeps`)
|
|
385
392
|
|
|
386
393
|
## Configuration (sd.config.ts)
|
|
387
394
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@simplysm/sd-cli",
|
|
3
3
|
"sideEffects": false,
|
|
4
|
-
"version": "13.0.
|
|
4
|
+
"version": "13.0.14",
|
|
5
5
|
"description": "심플리즘 패키지 - CLI 도구",
|
|
6
6
|
"author": "김석래",
|
|
7
7
|
"repository": {
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
"vite-plugin-solid": "^2.11.10",
|
|
45
45
|
"vite-tsconfig-paths": "^6.1.1",
|
|
46
46
|
"yargs": "^18.0.0",
|
|
47
|
-
"@simplysm/core-
|
|
48
|
-
"@simplysm/core-
|
|
49
|
-
"@simplysm/storage": "13.0.
|
|
47
|
+
"@simplysm/core-node": "13.0.14",
|
|
48
|
+
"@simplysm/core-common": "13.0.14",
|
|
49
|
+
"@simplysm/storage": "13.0.14"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@types/semver": "^7.7.1",
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
"vitest": "vitest"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"@simplysm/sd-cli": "~13.0.
|
|
19
|
-
"@simplysm/claude": "~13.0.
|
|
20
|
-
"@simplysm/lint": "~13.0.
|
|
18
|
+
"@simplysm/sd-cli": "~13.0.14",
|
|
19
|
+
"@simplysm/claude": "~13.0.14",
|
|
20
|
+
"@simplysm/lint": "~13.0.14",
|
|
21
21
|
"@types/node": "^20.19.33",
|
|
22
22
|
"eslint": "^9.39.2",
|
|
23
23
|
"prettier": "^3.8.1",
|