@crossdelta/platform-sdk 0.1.5 → 0.1.7
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 +27 -0
- package/bin/cli.js +120 -114
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -37,6 +37,33 @@ pf new nest-micro services/api-gateway
|
|
|
37
37
|
|
|
38
38
|
## Commands
|
|
39
39
|
|
|
40
|
+
### `pf dev`
|
|
41
|
+
|
|
42
|
+
Start the development environment with hot reload.
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
pf dev # Start with watch mode (default)
|
|
46
|
+
pf dev --no-watch # Start without watching for changes
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
**Features:**
|
|
50
|
+
- Generates `.env.local` from `infra/services/*.ts` configurations
|
|
51
|
+
- Starts all services via `turbo start:dev`
|
|
52
|
+
- Watches `infra/services/` for file changes → restarts all services
|
|
53
|
+
- Watches `services/` and `apps/` for new/deleted packages → restarts all services
|
|
54
|
+
|
|
55
|
+
**Configuration via `package.json`:**
|
|
56
|
+
```json
|
|
57
|
+
{
|
|
58
|
+
"pf": {
|
|
59
|
+
"dev": {
|
|
60
|
+
"watchDirs": ["infra/services"],
|
|
61
|
+
"watchPackages": ["services", "apps"]
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
```
|
|
66
|
+
|
|
40
67
|
### `pf new workspace [name]`
|
|
41
68
|
|
|
42
69
|
Scaffold a complete platform workspace with Pulumi infrastructure.
|