create-presolve 0.2.0-beta.1 → 0.2.0-beta.3

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.3" },
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.3",
57
+ "@presolve/typescript-authority": "0.2.0-beta.3",
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\n\`app/app.tsx\` is the application shell: shared providers, navigation, and footer belong there. \`app/app.css\` is the global stylesheet; Presolve publishes it as \`/app.css\` and includes it in the document head automatically. \`app/index.html\` is a compiler template rather than a traditional entry point: it must contain exactly one \`{{ head }}\`, \`{{ app }}\`, and \`{{ runtime }}\` placeholder. Routes live in \`app/routes\`, shared application source belongs in \`app/components\`, server-owned source in \`server\`, and application tests in \`tests\`. Files in \`public/\` are copied to the root of \`dist/\` and included in the deployment inventory; use \`assets/\` for adapter-owned imported assets and transforms. \`app/layout.tsx\` and \`styles/\` remain supported as beta compatibility paths, but new applications should use the canonical \`app/\` files. 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,12 @@ 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
+ "app/app.css": "/* Global application styles are included from the document head. */\n",
81
+ "app/index.html": "<!doctype html>\n<html lang=\"en\">\n<head>\n{{ head }}\n</head>\n<body>\n{{ app }}{{ runtime }}\n</body>\n</html>\n",
81
82
  "assets/README.md": "Imported Vite asset inputs belong here.\n",
82
83
  "public/robots.txt": "User-agent: *\nAllow: /\n",
83
84
  "tests/README.md": "Application tests belong here; Vitest and Playwright adapters consume published products.\n",
85
+ "app/app.tsx": `import { Component, slot, type SlotContent } from "presolve";\n\nexport class App extends Component {\n children: SlotContent = slot();\n\n render() {\n return <div class="app-shell"><slot /></div>;\n }\n}\n`,
84
86
  "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
87
  "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
88
  "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.3",
4
4
  "description": "Create a Presolve application.",
5
5
  "license": "MIT OR Apache-2.0",
6
6
  "repository": {