create-presolve 0.2.0-beta.1 → 0.2.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.
@@ -51,16 +51,16 @@ function template(name) {
51
51
  "deploy:prepare": "presolve deploy cloudflare --prepare",
52
52
  "deploy:node:prepare": "presolve deploy node --prepare",
53
53
  },
54
- dependencies: { presolve: "npm:@presolve/framework@0.2.0-beta.1" },
54
+ dependencies: { presolve: "npm:@presolve/framework@0.2.0-beta.2" },
55
55
  devDependencies: {
56
- "@presolve/cli": "0.2.0-beta.1",
57
- "@presolve/typescript-authority": "0.2.0-beta.1",
56
+ "@presolve/cli": "0.2.0-beta.2",
57
+ "@presolve/typescript-authority": "0.2.0-beta.2",
58
58
  "typescript": "npm:typescript@^7.0.2",
59
59
  "wrangler": "^4.0.0",
60
60
  },
61
61
  }, null, 2)}\n`,
62
62
  ".gitignore": "node_modules/\ndist/\n.presolve/\n.dev.vars\n.env*\n",
63
- "README.md": `# ${name}\n\nA Presolve application.\n\n## Development\n\n\`pnpm dev\` builds and serves compiler-published routes.\n\n\`pnpm build\` emits immutable artifacts in \`dist/\`.\n\n\`pnpm deploy:prepare\` validates a Cloudflare Workers Static Assets deployment without uploading.\n\n\`pnpm deploy\` deploys the prepared compiler artifact inventory through Wrangler.\n\n\`pnpm deploy:node:prepare\` writes a Node release inventory and static host under \`.presolve/node/\`. Routes with loaders or server actions remain explicitly Node-required until their capability-specific executor is available.\n\n## Project layout\n\nRoutes live in \`app/routes\`. Shared application source belongs in \`app/components\`; server-owned source in \`server\`; Vite style and asset inputs in \`styles\` and \`assets\`; directly served files in \`public\`; and application tests in \`tests\`. Only \`PRESOLVE_PUBLIC_*\` values are browser-eligible.\n\nVS Code will use the TypeScript configuration in this project. Install the **Presolve** extension for compiler-language tooling during the beta.\n`,
63
+ "README.md": `# ${name}\n\nA Presolve application.\n\n## Development\n\n\`pnpm dev\` builds and serves compiler-published routes.\n\n\`pnpm build\` emits immutable artifacts in \`dist/\`.\n\n\`pnpm deploy:prepare\` validates a Cloudflare Workers Static Assets deployment without uploading.\n\n\`pnpm deploy\` deploys the prepared compiler artifact inventory through Wrangler.\n\n\`pnpm deploy:node:prepare\` writes a Node release inventory and static host under \`.presolve/node/\`. Routes with loaders or server actions remain explicitly Node-required until their capability-specific executor is available.\n\n## Project layout\n\nRoutes live in \`app/routes\`. Shared application source belongs in \`app/components\`; server-owned source in \`server\`; and application tests in \`tests\`. Files in \`styles/\` are copied to \`dist/styles/\` and files in \`public/\` are copied to the root of \`dist/\`, then included in the deployment inventory. Reference the starter stylesheet as \`/styles/app.css\`; use \`assets/\` for adapter-owned imported assets and transforms. Only \`PRESOLVE_PUBLIC_*\` values are browser-eligible.\n\nVS Code will use the TypeScript configuration in this project. Install the **Presolve** extension for compiler-language tooling during the beta.\n`,
64
64
  "tsconfig.json": `${JSON.stringify({
65
65
  compilerOptions: {
66
66
  target: "ES2022",
@@ -77,10 +77,11 @@ function template(name) {
77
77
  ".env.example": "# Browser-visible values must use the PRESOLVE_PUBLIC_ prefix.\nPRESOLVE_PUBLIC_APP_NAME=Presolve App\n",
78
78
  "app/components/README.md": "Shared application components belong here. Routes are declared only under app/routes.\n",
79
79
  "server/README.md": "Server-owned source belongs here. Do not import server values into browser-owned paths.\n",
80
- "styles/app.css": "/* Vite-owned application styles. */\n",
80
+ "styles/app.css": "/* Compiler-published application styles. */\n",
81
81
  "assets/README.md": "Imported Vite asset inputs belong here.\n",
82
82
  "public/robots.txt": "User-agent: *\nAllow: /\n",
83
83
  "tests/README.md": "Application tests belong here; Vitest and Playwright adapters consume published products.\n",
84
+ "app/layout.tsx": `import { Component, slot, type SlotContent } from "presolve";\n\nexport class AppLayout extends Component {\n children: SlotContent = slot();\n\n render() {\n return <main><link rel="stylesheet" href="/styles/app.css" /><slot /></main>;\n }\n}\n`,
84
85
  "app/routes/index.tsx": `import { Component } from "presolve";\n\nexport class Home extends Component {\n render() {\n return <main><h1>${name}</h1><p>Built by the Presolve compiler.</p><a href="/docs/">Read the docs</a></main>;\n }\n}\n`,
85
86
  "app/routes/docs/index.tsx": `import { Component } from "presolve";\n\nexport class Docs extends Component {\n render() {\n return <main><h1>Presolve documentation</h1><p>Start with compiler-owned components, routes, and deployment.</p><a href="/docs/getting-started/">Getting started</a></main>;\n }\n}\n`,
86
87
  "app/routes/docs/getting-started.tsx": `import { Component } from "presolve";\n\nexport class GettingStarted extends Component {\n render() {\n return <main><h1>Getting started</h1><p>Author components. Presolve publishes static HTML and the minimal runtime artifacts required by your application.</p></main>;\n }\n}\n`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-presolve",
3
- "version": "0.2.0-beta.1",
3
+ "version": "0.2.0-beta.2",
4
4
  "description": "Create a Presolve application.",
5
5
  "license": "MIT OR Apache-2.0",
6
6
  "repository": {