@cosmicdrift/kumiko-dev-server 0.14.0 → 0.15.0

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.
Files changed (33) hide show
  1. package/package.json +8 -12
  2. package/src/__tests__/build-prod-bundle.integration.ts +1 -1
  3. package/src/__tests__/build-prod-bundle.test.ts +1 -1
  4. package/src/__tests__/cache-headers.test.ts +1 -1
  5. package/src/__tests__/classify-change.test.ts +1 -1
  6. package/src/__tests__/compose-features-wiring.integration.ts +10 -9
  7. package/src/__tests__/compose-features.test.ts +1 -1
  8. package/src/__tests__/config-seed-boot.integration.ts +5 -4
  9. package/src/__tests__/crash-tracker.test.ts +1 -1
  10. package/src/__tests__/create-kumiko-server.integration.ts +5 -5
  11. package/src/__tests__/env-schema.integration.ts +1 -1
  12. package/src/__tests__/env-schema.test.ts +1 -1
  13. package/src/__tests__/few-shot-corpus.test.ts +1 -1
  14. package/src/__tests__/inject-schema.test.ts +1 -1
  15. package/src/__tests__/resolve-stylesheet.test.ts +11 -7
  16. package/src/__tests__/resolve-tailwind-cli.test.ts +1 -1
  17. package/src/__tests__/run-prod-app-spec.test.ts +1 -1
  18. package/src/__tests__/run-prod-app.integration.ts +6 -6
  19. package/src/__tests__/scaffold-app-feature.test.ts +1 -1
  20. package/src/__tests__/scaffold-app.test.ts +1 -1
  21. package/src/__tests__/scaffold-deploy.test.ts +1 -1
  22. package/src/__tests__/scaffold-feature.test.ts +1 -1
  23. package/src/__tests__/try-hono-first.test.ts +1 -1
  24. package/src/__tests__/walkthrough.integration.ts +1 -1
  25. package/src/codegen/__tests__/run-codegen.test.ts +1 -1
  26. package/src/codegen/__tests__/strict-mode-diagnostics.test.ts +1 -1
  27. package/src/codegen/__tests__/watch.test.ts +1 -1
  28. package/src/scaffold-app-feature.ts +2 -1
  29. package/src/{drizzle-tables-auth-mode.ts → schema-tables-auth-mode.ts} +1 -1
  30. package/templates/deploy/Dockerfile.template +15 -47
  31. package/CHANGELOG.md +0 -656
  32. package/src/drizzle-config.ts +0 -44
  33. /package/src/{drizzle-tables-minimal.ts → schema-tables-minimal.ts} +0 -0
@@ -1,44 +0,0 @@
1
- // kumikoDrizzleConfig — Convention-Helper für drizzle.config.ts in App-
2
- // Workspaces. Convention-driven Defaults statt Boilerplate-Copy:
3
- //
4
- // import { kumikoDrizzleConfig } from "@cosmicdrift/kumiko-dev-server/drizzle-config";
5
- // export default kumikoDrizzleConfig();
6
- //
7
- // Default-Pfade:
8
- // schema: "./drizzle/schema.ts"
9
- // out: "./drizzle/migrations"
10
- // db url: process.env[DATABASE_URL] (override via options)
11
- // dialect: "postgresql"
12
- // verbose + strict: true (drizzle-kit-Defaults für Production-Workflow)
13
- //
14
- // Apps mit untypischer Verzeichnis-Struktur können einzelne Werte
15
- // überschreiben, der Rest bleibt Convention.
16
-
17
- import { defineConfig } from "drizzle-kit";
18
-
19
- export type KumikoDrizzleConfigOptions = {
20
- /** Pfad zum Schema-Barrel relativ zum App-Root. Default: "./drizzle/schema.ts". */
21
- readonly schemaPath?: string;
22
- /** Migrations-Out-Folder relativ zum App-Root. Default: "./drizzle/migrations". */
23
- readonly outDir?: string;
24
- /** Env-Var-Name für die Database-URL. Default: "DATABASE_URL". */
25
- readonly databaseUrlEnv?: string;
26
- /** Fallback-URL wenn die Env-Var leer ist (für lokale Dev-Setups).
27
- * Default: postgres://kumiko:kumiko@localhost:15432/kumiko_dev (kumiko dev-stack). */
28
- readonly fallbackDatabaseUrl?: string;
29
- };
30
-
31
- export function kumikoDrizzleConfig(options: KumikoDrizzleConfigOptions = {}) {
32
- const envName = options.databaseUrlEnv ?? "DATABASE_URL";
33
- const fallback =
34
- options.fallbackDatabaseUrl ?? "postgres://kumiko:kumiko@localhost:15432/kumiko_dev";
35
- const url = process.env[envName] ?? fallback;
36
- return defineConfig({
37
- schema: options.schemaPath ?? "./drizzle/schema.ts",
38
- out: options.outDir ?? "./drizzle/migrations",
39
- dialect: "postgresql",
40
- dbCredentials: { url },
41
- verbose: true,
42
- strict: true,
43
- });
44
- }