@podosoft/podokit 0.16.4 → 0.17.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.
- package/dist/deploy-compose-exec.d.ts +93 -0
- package/dist/deploy-compose-exec.js +198 -0
- package/dist/deploy-compose-profile.d.ts +107 -0
- package/dist/deploy-compose-profile.js +361 -0
- package/dist/deploy-compose-render.d.ts +48 -0
- package/dist/deploy-compose-render.js +333 -0
- package/dist/deploy-compose-sync.d.ts +144 -0
- package/dist/deploy-compose-sync.js +412 -0
- package/dist/deploy-compose.d.ts +98 -0
- package/dist/deploy-compose.js +667 -0
- package/dist/deploy-dispatch.d.ts +33 -0
- package/dist/deploy-dispatch.js +58 -0
- package/dist/deploy-driver.d.ts +25 -0
- package/dist/deploy-driver.js +78 -0
- package/dist/deploy-profile.d.ts +3 -10
- package/dist/deploy-profile.js +82 -291
- package/dist/deploy-schema.d.ts +56 -0
- package/dist/deploy-schema.js +261 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +178 -6
- package/dist/lib.d.ts +9 -0
- package/dist/lib.js +30 -1
- package/dist/templates/fullstack-nest-svelte/AGENTS.md +2 -1
- package/dist/templates/fullstack-nest-svelte/Dockerfile.dev +34 -3
- package/dist/templates/fullstack-nest-svelte/apps/api/Dockerfile +68 -7
- package/dist/templates/fullstack-nest-svelte/apps/web/Dockerfile +60 -8
- package/dist/templates/fullstack-nest-svelte/apps/web/server.js +31 -0
- package/dist/templates/fullstack-nest-svelte/apps/web/src/lib/server/backend-proxy.test.ts +21 -0
- package/dist/templates/fullstack-nest-svelte/apps/web/src/lib/server/backend-proxy.ts +15 -1
- package/dist/templates/fullstack-nest-svelte/apps/web/src/lib/server/ws-upgrade.js +267 -0
- package/dist/templates/fullstack-nest-svelte/apps/web/src/lib/server/ws-upgrade.test.js +134 -0
- package/dist/templates/fullstack-nest-svelte/apps/web/vite.config.ts +17 -7
- package/dist/templates/fullstack-nest-svelte/dot-agents/skills/podokit-deploy/SKILL.md +55 -10
- package/dist/templates/fullstack-nest-svelte/dot-agents/skills/podokit-deploy/references/profile.md +50 -1
- package/dist/templates/fullstack-nest-svelte/dot-agents/skills/podokit-deploy/references/release.md +64 -0
- package/dist/templates/fullstack-nest-svelte/dot-agents/skills/podokit-deploy-fast/SKILL.md +92 -0
- package/dist/templates/fullstack-nest-svelte/dot-claude/skills/podokit-deploy/SKILL.md +1 -1
- package/dist/templates/fullstack-nest-svelte/dot-claude/skills/podokit-deploy-fast/SKILL.md +8 -0
- package/dist/templates/fullstack-nest-svelte/dot-dockerignore +7 -0
- package/dist/templates/fullstack-nest-svelte/dot-env.example +7 -0
- package/dist/templates/fullstack-nest-svelte/dot-github/workflows/release.yml +142 -0
- package/dist/templates/fullstack-nest-svelte/infra/k3s/README.md +18 -0
- package/dist/templates/fullstack-nest-svelte/infra/k3s/api-deployment.yaml +6 -1
- package/dist/templates/fullstack-nest-svelte/infra/k3s/ingress.yaml +8 -0
- package/dist/templates/fullstack-nest-svelte/infra/k3s/web-deployment.yaml +11 -1
- package/dist/templates/modules/admin-dashboard/files/apps/web/src/lib/components/account-page.svelte +15 -2
- package/dist/templates/modules/admin-dashboard/files/apps/web/src/lib/device-label.test.ts +62 -0
- package/dist/templates/modules/admin-dashboard/files/apps/web/src/lib/device-label.ts +50 -0
- package/dist/templates/modules/admin-dashboard/files/apps/web/src/lib/i18n/catalogs/admin-dashboard/en.json +5 -0
- package/dist/templates/modules/admin-dashboard/files/apps/web/src/lib/i18n/catalogs/admin-dashboard/ko.json +5 -0
- package/dist/templates/modules/admin-dashboard/files/apps/web/src/routes/(admin)/admin/sessions/+page.svelte +3 -2
- package/dist/templates/modules/admin-dashboard/files/apps/web/src/routes/(admin)/admin/users/+page.svelte +3 -2
- package/dist/templates/modules/admin-dashboard/files/apps/web/src/routes/(auth)/reset-password/+page.svelte +12 -1
- package/dist/templates/modules/admin-dashboard/files/apps/web/src/routes/(auth)/signup/+page.svelte +13 -1
- package/dist/templates/modules/admin-dashboard/files/tests/helpers/accounts.ts +27 -2
- package/dist/templates/modules/admin-dashboard/files/tests/ui/account.ui.spec.ts +20 -1
- package/dist/templates/modules/admin-dashboard/files/tests/ui/auth.ui.spec.ts +26 -1
- package/dist/templates/modules/admin-dashboard/files/tests/ui/email.ui.spec.ts +10 -1
- package/dist/templates/modules/admin-dashboard/files/tests/ui/two-factor.ui.spec.ts +3 -3
- package/dist/templates/modules/bullmq/files/infra/k3s/worker-deployment.yaml +2 -1
- package/dist/templates/todo/AGENTS.md +2 -1
- package/dist/templates/todo/Dockerfile.dev +34 -3
- package/dist/templates/todo/apps/api/Dockerfile +68 -7
- package/dist/templates/todo/apps/web/Dockerfile +60 -8
- package/dist/templates/todo/apps/web/server.js +31 -0
- package/dist/templates/todo/apps/web/src/lib/server/backend-proxy.test.ts +21 -0
- package/dist/templates/todo/apps/web/src/lib/server/backend-proxy.ts +15 -1
- package/dist/templates/todo/apps/web/src/lib/server/ws-upgrade.js +267 -0
- package/dist/templates/todo/apps/web/src/lib/server/ws-upgrade.test.js +134 -0
- package/dist/templates/todo/apps/web/vite.config.ts +17 -7
- package/dist/templates/todo/dot-agents/skills/podokit-deploy/SKILL.md +55 -10
- package/dist/templates/todo/dot-agents/skills/podokit-deploy/references/profile.md +47 -0
- package/dist/templates/todo/dot-agents/skills/podokit-deploy/references/release.md +64 -0
- package/dist/templates/todo/dot-agents/skills/podokit-deploy-fast/SKILL.md +92 -0
- package/dist/templates/todo/dot-claude/skills/podokit-deploy/SKILL.md +1 -1
- package/dist/templates/todo/dot-claude/skills/podokit-deploy-fast/SKILL.md +8 -0
- package/dist/templates/todo/dot-dockerignore +7 -0
- package/dist/templates/todo/dot-env.example +7 -0
- package/dist/templates/todo/dot-github/workflows/release.yml +142 -0
- package/dist/templates/todo/infra/k3s/README.md +18 -0
- package/dist/templates/todo/infra/k3s/api-deployment.yaml +6 -1
- package/dist/templates/todo/infra/k3s/ingress.yaml +8 -0
- package/dist/templates/todo/infra/k3s/web-deployment.yaml +11 -1
- package/package.json +1 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Example k3s manifests
|
|
2
|
+
|
|
3
|
+
These are **illustrative**. `podo deploy` does not read or apply them.
|
|
4
|
+
|
|
5
|
+
For a real deployment, initialize a profile and let PodoKit render the manifests it
|
|
6
|
+
will actually apply — with image digests, probes, disruption budgets, a migration
|
|
7
|
+
Job, and a confirmation hash:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
podo deploy init --profile production --context production --host app.example.com
|
|
11
|
+
podo deploy render --profile production --release v1.2.3
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
Keep these files if you want a starting point for hand-managed manifests, or delete
|
|
15
|
+
the directory if you deploy with `podo deploy`. If you do apply them by hand, replace
|
|
16
|
+
every `example.com` and `ghcr.io/example/...` placeholder first, and note that the
|
|
17
|
+
image tags below are placeholders too: the deployment tooling rejects `latest`,
|
|
18
|
+
branch tags, and empty tags, and so should you.
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
# Example only. See README.md in this directory; `podo deploy` renders its own.
|
|
1
2
|
apiVersion: apps/v1
|
|
2
3
|
kind: Deployment
|
|
3
4
|
metadata:
|
|
@@ -13,7 +14,8 @@ spec:
|
|
|
13
14
|
spec:
|
|
14
15
|
containers:
|
|
15
16
|
- name: api
|
|
16
|
-
|
|
17
|
+
# Placeholder. Use one immutable, stable SemVer tag for api and web.
|
|
18
|
+
image: ghcr.io/example/podokit-api:v0.0.0
|
|
17
19
|
ports:
|
|
18
20
|
- containerPort: 3000
|
|
19
21
|
envFrom:
|
|
@@ -22,3 +24,6 @@ spec:
|
|
|
22
24
|
readinessProbe:
|
|
23
25
|
httpGet: { path: /health/ready, port: 3000 }
|
|
24
26
|
initialDelaySeconds: 5
|
|
27
|
+
livenessProbe:
|
|
28
|
+
httpGet: { path: /health, port: 3000 }
|
|
29
|
+
initialDelaySeconds: 15
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
# Example only. See README.md in this directory; `podo deploy` renders its own.
|
|
1
2
|
apiVersion: traefik.io/v1alpha1
|
|
2
3
|
kind: Middleware
|
|
3
4
|
metadata:
|
|
@@ -14,6 +15,13 @@ metadata:
|
|
|
14
15
|
annotations:
|
|
15
16
|
traefik.ingress.kubernetes.io/router.middlewares: podokit-compression@kubernetescrd
|
|
16
17
|
spec:
|
|
18
|
+
# Name the controller explicitly rather than relying on a default IngressClass.
|
|
19
|
+
ingressClassName: traefik
|
|
20
|
+
# app-config sets an https:// origin, so the route has to terminate TLS. Create the
|
|
21
|
+
# Secret out of band (cert-manager, or an existing certificate) and name it here.
|
|
22
|
+
tls:
|
|
23
|
+
- hosts: [example.com]
|
|
24
|
+
secretName: app-tls
|
|
17
25
|
rules:
|
|
18
26
|
- host: example.com
|
|
19
27
|
http:
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
# Example only. See README.md in this directory; `podo deploy` renders its own.
|
|
1
2
|
apiVersion: apps/v1
|
|
2
3
|
kind: Deployment
|
|
3
4
|
metadata:
|
|
@@ -13,8 +14,17 @@ spec:
|
|
|
13
14
|
spec:
|
|
14
15
|
containers:
|
|
15
16
|
- name: web
|
|
16
|
-
|
|
17
|
+
# Placeholder. Use one immutable, stable SemVer tag for api and web.
|
|
18
|
+
image: ghcr.io/example/podokit-web:v0.0.0
|
|
17
19
|
ports:
|
|
18
20
|
- containerPort: 3000
|
|
19
21
|
envFrom:
|
|
20
22
|
- configMapRef: { name: app-config }
|
|
23
|
+
# Without these a rolling update sends traffic to a process that has not
|
|
24
|
+
# bound its port yet.
|
|
25
|
+
readinessProbe:
|
|
26
|
+
httpGet: { path: /, port: 3000 }
|
|
27
|
+
initialDelaySeconds: 5
|
|
28
|
+
livenessProbe:
|
|
29
|
+
httpGet: { path: /, port: 3000 }
|
|
30
|
+
initialDelaySeconds: 15
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@podosoft/podokit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.1",
|
|
4
4
|
"description": "An opinionated but extensible starter toolkit and CLI for full-stack TypeScript apps with NestJS, SvelteKit, TailwindCSS, shadcn-svelte, Docker, and k3s.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|