kubetsx 0.1.1 → 0.1.2
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 +9 -1
- package/dist/cli.js +1 -1
- package/package.json +1 -1
- package/src/cli.ts +1 -1
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
Kubetsx transforms Kubernetes configuration from fragile YAML files into type-safe, composable TypeScript components. Get full IntelliSense, compile-time validation, and the power of loops and conditionals.
|
|
9
9
|
|
|
10
|
-
**
|
|
10
|
+
**Type-safe. Composable. Finally, Kubernetes configuration that makes sense.**
|
|
11
11
|
|
|
12
12
|
```tsx
|
|
13
13
|
import { render, Manifest, Deployment, Container, Port, Service } from 'kubetsx';
|
|
@@ -73,6 +73,14 @@ Or pipe directly to kubectl:
|
|
|
73
73
|
npx kubetsx your-config.tsx | kubectl apply -f -
|
|
74
74
|
```
|
|
75
75
|
|
|
76
|
+
Save to file:
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
npx kubetsx your-config.tsx > k8s.yaml
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
> **💡 Tip:** Use `console.error()` for debug output. The CLI validates that stdout contains only valid YAML and will error if `console.log()` corrupts the output.
|
|
83
|
+
|
|
76
84
|
---
|
|
77
85
|
|
|
78
86
|
## 🎯 Quick Start
|
package/dist/cli.js
CHANGED
package/package.json
CHANGED