@astrale-os/adapter-cloudflare 0.4.7 → 0.4.8
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/package.json +2 -2
- package/template/README.md +4 -0
- package/template/deps.ts +1 -1
- package/template/domain.ts +3 -3
- package/template/package.json +13 -0
- package/template/runtime/index.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astrale-os/adapter-cloudflare",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.8",
|
|
4
4
|
"description": "Deploy an Astrale domain as a standalone Cloudflare Worker",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"adapter",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"jose": "^6.1.3",
|
|
36
|
-
"@astrale-os/sdk": "^0.4.
|
|
36
|
+
"@astrale-os/sdk": "^0.4.14"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@astrale-os/ox": ">=0.1.0 <1.0.0",
|
package/template/README.md
CHANGED
|
@@ -35,6 +35,10 @@ Keep `schema/index.ts` and `runtime/index.ts` as composition roots. Put standalo
|
|
|
35
35
|
bounded context that owns them, then wire them from `domain.ts`; do not create a generic functions
|
|
36
36
|
junk drawer. The same rule applies to views and client code.
|
|
37
37
|
|
|
38
|
+
Cross-layer imports use the package's `#` aliases (`#schema`, `#runtime`, `#deps`, `#core/*`,
|
|
39
|
+
`#integrations/*`, `#functions/*`, `#simulation/*`, and `#views`). Keep relative imports for nearby
|
|
40
|
+
files inside the same bounded context.
|
|
41
|
+
|
|
38
42
|
The client includes Tailwind CSS v4 and an empty shadcn `radix-nova` setup. Add only the components a
|
|
39
43
|
real view needs with `pnpm exec shadcn add <component>`; component source stays in the project and can
|
|
40
44
|
be adapted to the domain's visual language.
|
package/template/deps.ts
CHANGED
package/template/domain.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineDomain } from '@astrale-os/sdk'
|
|
2
2
|
|
|
3
|
-
import { deps } from '
|
|
4
|
-
import { methods } from '
|
|
5
|
-
import { schema } from '
|
|
3
|
+
import { deps } from '#deps'
|
|
4
|
+
import { methods } from '#runtime'
|
|
5
|
+
import { schema } from '#schema'
|
|
6
6
|
|
|
7
7
|
export const domain = defineDomain({
|
|
8
8
|
schema,
|
package/template/package.json
CHANGED
|
@@ -6,6 +6,19 @@
|
|
|
6
6
|
"client"
|
|
7
7
|
],
|
|
8
8
|
"type": "module",
|
|
9
|
+
"imports": {
|
|
10
|
+
"#core/*": "./core/*.ts",
|
|
11
|
+
"#deps": "./deps.ts",
|
|
12
|
+
"#env": "./env.ts",
|
|
13
|
+
"#functions": "./functions/index.ts",
|
|
14
|
+
"#functions/*": "./functions/*.ts",
|
|
15
|
+
"#integrations/*": "./integrations/*.ts",
|
|
16
|
+
"#runtime": "./runtime/index.ts",
|
|
17
|
+
"#runtime/*": "./runtime/*.ts",
|
|
18
|
+
"#schema": "./schema/index.ts",
|
|
19
|
+
"#simulation/*": "./simulation/*.ts",
|
|
20
|
+
"#views": "./views/index.ts"
|
|
21
|
+
},
|
|
9
22
|
"scripts": {
|
|
10
23
|
"dev": "astrale-domain dev",
|
|
11
24
|
"prod": "astrale-domain prod",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { SchemaMethodsImpl } from '@astrale-os/sdk'
|
|
2
2
|
|
|
3
|
-
import type { Deps } from '
|
|
4
|
-
import type { schema } from '
|
|
3
|
+
import type { Deps } from '#deps'
|
|
4
|
+
import type { schema } from '#schema'
|
|
5
5
|
|
|
6
6
|
export const methods: SchemaMethodsImpl<typeof schema, Deps> = {
|
|
7
7
|
class: {},
|