create-lumen 2.0.0-beta.1 → 2.0.0-beta.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.
Files changed (45) hide show
  1. package/package.json +1 -1
  2. package/schema/lumen.config.v2.json +29 -0
  3. package/src/agent-context.js +71 -47
  4. package/src/cleanup.js +19 -1
  5. package/src/cli-args.js +26 -0
  6. package/src/dependencies.js +42 -15
  7. package/src/engine/capabilities.js +49 -0
  8. package/src/engine/composition.js +242 -17
  9. package/src/env.js +24 -6
  10. package/src/main.js +5 -5
  11. package/src/manifest/emit.js +13 -0
  12. package/src/manifest/schema.js +30 -0
  13. package/src/prompts.js +77 -4
  14. package/templates/conditional/database/prisma/db.js +14 -0
  15. package/templates/conditional/database/prisma/db.ts +16 -0
  16. package/templates/conditional/database/prisma/schema.prisma +9 -0
  17. package/templates/conditional/database/prisma/seed.js +16 -0
  18. package/templates/conditional/database/prisma/seed.ts +16 -0
  19. package/templates/conditional/docker/.dockerignore +10 -0
  20. package/templates/conditional/docker/Dockerfile +57 -0
  21. package/templates/conditional/docker/docker-compose.yml +35 -0
  22. package/templates/conditional/next/route-groups/js/src/app/(admin)/layout.jsx +23 -0
  23. package/templates/conditional/next/route-groups/js/src/app/(auth)/layout.jsx +17 -0
  24. package/templates/conditional/next/route-groups/js/src/app/(private)/layout.jsx +27 -0
  25. package/templates/conditional/next/route-groups/js/src/app/(public)/layout.jsx +28 -0
  26. package/templates/conditional/next/route-groups/js/src/app/(public)/page.jsx +38 -0
  27. package/templates/conditional/next/route-groups/js/src/middleware.js +48 -0
  28. package/templates/conditional/next/route-groups/ts/src/app/(admin)/layout.tsx +28 -0
  29. package/templates/conditional/next/route-groups/ts/src/app/(auth)/layout.tsx +22 -0
  30. package/templates/conditional/next/route-groups/ts/src/app/(private)/layout.tsx +32 -0
  31. package/templates/conditional/next/route-groups/ts/src/app/(public)/layout.tsx +33 -0
  32. package/templates/conditional/next/route-groups/ts/src/app/(public)/page.tsx +38 -0
  33. package/templates/conditional/next/route-groups/ts/src/middleware.ts +49 -0
  34. package/templates/conditional/testing/jest/next/app-router/src/__tests__/page.test.jsx +10 -0
  35. package/templates/conditional/testing/jest/next/app-router/src/__tests__/page.test.tsx +10 -0
  36. package/templates/conditional/testing/jest/next/jest.config.mjs +20 -0
  37. package/templates/conditional/testing/jest/next/jest.config.ts +20 -0
  38. package/templates/conditional/testing/jest/next/pages-router/src/__tests__/index.test.jsx +10 -0
  39. package/templates/conditional/testing/jest/next/pages-router/src/__tests__/index.test.tsx +10 -0
  40. package/templates/conditional/testing/vitest/next/app-router/src/__tests__/page.test.jsx +11 -0
  41. package/templates/conditional/testing/vitest/next/app-router/src/__tests__/page.test.tsx +11 -0
  42. package/templates/conditional/testing/vitest/next/pages-router/src/__tests__/index.test.jsx +11 -0
  43. package/templates/conditional/testing/vitest/next/pages-router/src/__tests__/index.test.tsx +11 -0
  44. package/templates/conditional/testing/vitest/next/vitest.config.js +16 -0
  45. package/templates/conditional/testing/vitest/next/vitest.config.ts +16 -0
@@ -0,0 +1,11 @@
1
+ import "@testing-library/jest-dom/vitest";
2
+ import { render, screen } from "@testing-library/react";
3
+ import { describe, it, expect } from "vitest";
4
+ import Home from "@/pages/index";
5
+
6
+ describe("Home", () => {
7
+ it("renders a heading", () => {
8
+ render(<Home />);
9
+ expect(screen.getByRole("heading", { level: 1 })).toBeInTheDocument();
10
+ });
11
+ });
@@ -0,0 +1,16 @@
1
+ import { defineConfig } from "vitest/config";
2
+ import path from "path";
3
+
4
+ export default defineConfig({
5
+ resolve: {
6
+ alias: {
7
+ "@": path.resolve(__dirname, "./src"),
8
+ },
9
+ },
10
+ test: {
11
+ globals: true,
12
+ environment: "jsdom",
13
+ setupFiles: "./src/test/setup.js",
14
+ css: true,
15
+ },
16
+ });
@@ -0,0 +1,16 @@
1
+ import { defineConfig } from "vitest/config";
2
+ import path from "path";
3
+
4
+ export default defineConfig({
5
+ resolve: {
6
+ alias: {
7
+ "@": path.resolve(__dirname, "./src"),
8
+ },
9
+ },
10
+ test: {
11
+ globals: true,
12
+ environment: "jsdom",
13
+ setupFiles: "./src/test/setup.ts",
14
+ css: true,
15
+ },
16
+ });