create-presolve 0.1.0-alpha.8 → 0.2.0-beta.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.
@@ -49,17 +49,18 @@ function template(name) {
49
49
  check: "presolve check",
50
50
  deploy: "presolve deploy cloudflare",
51
51
  "deploy:prepare": "presolve deploy cloudflare --prepare",
52
+ "deploy:node:prepare": "presolve deploy node --prepare",
52
53
  },
53
- dependencies: { "@presolve/core": "0.1.0-alpha.8" },
54
+ dependencies: { presolve: "npm:@presolve/framework@0.2.0-beta.1" },
54
55
  devDependencies: {
55
- "@presolve/cli": "0.1.0-alpha.8",
56
+ "@presolve/cli": "0.2.0-beta.1",
57
+ "@presolve/typescript-authority": "0.2.0-beta.1",
56
58
  "typescript": "npm:typescript@^7.0.2",
57
59
  "wrangler": "^4.0.0",
58
60
  },
59
61
  }, null, 2)}\n`,
60
- "pnpm-workspace.yaml": "allowBuilds:\n esbuild: true\n workerd: true\n",
61
62
  ".gitignore": "node_modules/\ndist/\n.presolve/\n.dev.vars\n.env*\n",
62
- "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\nVS Code will use the TypeScript configuration in this project. Install the **Presolve** extension for compiler-language tooling as it becomes available during the alpha.\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
64
  "tsconfig.json": `${JSON.stringify({
64
65
  compilerOptions: {
65
66
  target: "ES2022",
@@ -70,11 +71,18 @@ function template(name) {
70
71
  jsx: "preserve",
71
72
  skipLibCheck: true,
72
73
  },
73
- include: ["app/**/*.ts", "app/**/*.tsx"],
74
+ include: ["app/**/*.ts", "app/**/*.tsx", "server/**/*.ts"],
74
75
  }, null, 2)}\n`,
75
76
  ".vscode/extensions.json": `${JSON.stringify({ recommendations: ["fierstdev.presolve-vscode"] }, null, 2)}\n`,
76
- "app/routes/index.tsx": `import { component, Component } from "@presolve/core";\n\n@component()\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`,
77
- "app/routes/docs/index.tsx": `import { component, Component } from "@presolve/core";\n\n@component()\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`,
78
- "app/routes/docs/getting-started.tsx": `import { component, Component } from "@presolve/core";\n\n@component()\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`,
77
+ ".env.example": "# Browser-visible values must use the PRESOLVE_PUBLIC_ prefix.\nPRESOLVE_PUBLIC_APP_NAME=Presolve App\n",
78
+ "app/components/README.md": "Shared application components belong here. Routes are declared only under app/routes.\n",
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",
81
+ "assets/README.md": "Imported Vite asset inputs belong here.\n",
82
+ "public/robots.txt": "User-agent: *\nAllow: /\n",
83
+ "tests/README.md": "Application tests belong here; Vitest and Playwright adapters consume published products.\n",
84
+ "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
+ "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
+ "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`,
79
87
  };
80
88
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-presolve",
3
- "version": "0.1.0-alpha.8",
3
+ "version": "0.2.0-beta.1",
4
4
  "description": "Create a Presolve application.",
5
5
  "license": "MIT OR Apache-2.0",
6
6
  "repository": {
@@ -14,7 +14,7 @@
14
14
  ],
15
15
  "publishConfig": {
16
16
  "access": "public",
17
- "tag": "alpha"
17
+ "tag": "beta"
18
18
  },
19
19
  "type": "module",
20
20
  "bin": {