create-astrale-domain 0.3.0-beta.13 → 0.3.0-beta.131
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.
- package/README.md +14 -4
- package/dist/index.js +377 -110
- package/package.json +19 -9
- package/template/.gitignore.template +4 -1
- package/template/.variants/custom/README.md +12 -9
- package/template/.variants/custom/application.ts +17 -3
- package/template/.variants/custom/{views/app → frontend}/index.html +1 -0
- package/template/.variants/custom/frontend/main.ts +3 -0
- package/template/.variants/custom/frontend/package.json +11 -0
- package/template/.variants/custom/frontend/public/favicon.svg +4 -0
- package/template/.variants/custom/frontend/tsconfig.json +17 -0
- package/template/.variants/custom/schema/{application/index.ts → schema.ts} +2 -1
- package/template/.variants/custom/ui/application/__tests__/application.test.ts +9 -0
- package/template/.variants/custom/ui/application/index.ts +11 -0
- package/template/.variants/custom/views/application/__tests__/application.view.test.ts +15 -0
- package/template/.variants/custom/views/application/application.view.ts +7 -0
- package/template/.variants/custom/views/application/index.ts +1 -0
- package/template/.variants/custom/views/index.ts +1 -1
- package/template/.variants/custom/vite.config.ts +11 -2
- package/template/.variants/none/README.md +3 -1
- package/template/.variants/none/application.ts +7 -2
- package/template/.variants/none/schema/schema.ts +6 -0
- package/template/.variants/react/README.md +11 -9
- package/template/.variants/react/application.ts +17 -3
- package/template/.variants/react/frontend/index.html +1 -0
- package/template/.variants/react/frontend/package.json +7 -1
- package/template/.variants/react/frontend/public/favicon.svg +4 -0
- package/template/.variants/react/frontend/src/styles.css +1 -1
- package/template/.variants/react/frontend/tsconfig.json +19 -0
- package/template/.variants/react/schema/{application/index.ts → schema.ts} +2 -1
- package/template/.variants/react/vite.config.ts +2 -2
- package/template/CLAUDE.md +23 -2
- package/template/package.json +10 -24
- package/template/pnpm-workspace.yaml +12 -21
- package/template/runtime.ts +1 -2
- package/template/schema/__tests__/schema.test.ts +14 -0
- package/template/schema/index.ts +1 -1
- package/template/tests/datasets/demo.ts +21 -0
- package/template/tests/e2e/application.test.ts +1 -2
- package/template/tsconfig.json +7 -13
- package/template/.variants/custom/views/app/main.ts +0 -10
- package/template/.variants/custom/views/application/__tests__/routes.test.ts +0 -7
- package/template/.variants/custom/views/application/routes.ts +0 -12
- package/template/.variants/none/schema/application/index.ts +0 -5
- package/template/.variants/react/views/application/__tests__/routes.test.ts +0 -7
- package/template/.variants/react/views/application/routes.ts +0 -12
- package/template/.variants/react/views/index.ts +0 -1
- package/template/schema/application/__tests__/schema.test.ts +0 -11
- package/template/tsconfig.package.json +0 -29
package/README.md
CHANGED
|
@@ -5,18 +5,28 @@ Official scaffolder for a new Astrale Domain project.
|
|
|
5
5
|
During the SDK beta program, generate a project from the beta package set explicitly:
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
npx -y create-astrale-domain@beta my-domain --yes
|
|
8
|
+
npx -y create-astrale-domain@beta my-domain --yes --instance development
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
The generated project must resolve the SDK and deployment adapters from npm; it must not retain
|
|
12
12
|
workspace links or repository-only source paths.
|
|
13
13
|
|
|
14
|
+
Managed generation requires an explicit Astrale instance and writes one installed `development`
|
|
15
|
+
Environment; authors add staging and production only when their distinct instances exist.
|
|
16
|
+
Cloudflare generation does not accept `--instance` and creates deploy-only development and
|
|
17
|
+
production Environments. In both cases `pnpm dev` watches and deploys `development` remotely; no
|
|
18
|
+
active instance, local Worker, Vite server, or tunnel is part of the standard Domain-author journey.
|
|
19
|
+
An installed frontend Environment still opens its default View through generic Project tooling;
|
|
20
|
+
stopping development closes only that local View session and retains the remote deployment and
|
|
21
|
+
installation.
|
|
22
|
+
|
|
14
23
|
Generated projects have one package journey:
|
|
15
24
|
|
|
16
25
|
```bash
|
|
17
26
|
pnpm pack
|
|
18
27
|
```
|
|
19
28
|
|
|
20
|
-
The existing `astrale-domain package` command compiles the public Schema
|
|
21
|
-
|
|
22
|
-
|
|
29
|
+
The existing `astrale-domain package` command compiles only the public Schema contract, normalizes
|
|
30
|
+
emitted declarations to semantic SDK facades, and verifies the package boundary. Runtime, handlers,
|
|
31
|
+
Providers, frontend code, and deployment adapters remain implementation inputs and are not part of
|
|
32
|
+
the published Domain contract package.
|