Skip to content

Commit 38fafa1

Browse files
authored
add docs wrangler config and entry (#380)
1 parent ea328af commit 38fafa1

8 files changed

Lines changed: 80 additions & 39 deletions

File tree

.github/actions/configure_environment/action.yml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,10 @@ description: Install node, pnpm and package dependencies.
33
runs:
44
using: composite
55
steps:
6-
- uses: pnpm/action-setup@v4
6+
- uses: pnpm/action-setup@v5
77
- uses: actions/setup-node@v6
88
with:
99
cache: pnpm
1010
node-version: 22
1111
- shell: bash
1212
run: pnpm install --frozen-lockfile
13-
- shell: bash
14-
run: echo "PLAYWRIGHT_BROWSERS_PATH=${{ github.workspace }}/.cache/ms-playwright" >> "$GITHUB_ENV"
15-
- uses: actions/cache@v4
16-
with:
17-
path: ${{ github.workspace }}/.cache/ms-playwright
18-
key: ${{ runner.os }}-playwright-${{ hashFiles('**/pnpm-lock.yaml') }}
19-
restore-keys: |
20-
${{ runner.os }}-playwright-
21-
- shell: bash
22-
run: pnpm playwright install --with-deps

.github/workflows/changesets.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ concurrency: ${{ github.workflow }}-${{ github.ref }}
66
jobs:
77
changesets:
88
runs-on: ubuntu-latest
9+
environment: changesets
910
permissions:
1011
contents: write
1112
id-token: write

.github/workflows/checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
permissions:
1717
contents: read
1818
steps:
19-
- uses: actions/checkout@v4
19+
- uses: actions/checkout@v6
2020
- uses: ./.github/actions/configure_environment
2121
- run: pnpm build
2222
# - run: pnpm test

docs/liminal.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import { Layer } from "effect"
2+
import { Assets, Entry } from "liminal-cloudflare"
3+
4+
export default Assets.forward.pipe(Entry.make(Layer.empty))

docs/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99
"preview": "vocs preview"
1010
},
1111
"dependencies": {
12-
"react": "catalog:",
13-
"react-dom": "catalog:",
14-
"vocs": "catalog:"
15-
},
16-
"devDependencies": {
1712
"@types/react": "catalog:",
13+
"effect": "catalog:",
1814
"liminal": "workspace:*",
15+
"liminal-cloudflare": "workspace:*",
1916
"portless": "catalog:",
20-
"typescript": "catalog:"
17+
"react": "catalog:",
18+
"react-dom": "catalog:",
19+
"typescript": "catalog:",
20+
"vocs": "catalog:"
2121
}
22-
}
22+
}

docs/tsconfig.json

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22
"compilerOptions": {
33
"target": "ES2020",
44
"useDefineForClassFields": true,
5-
"lib": ["ES2020", "DOM", "DOM.Iterable"],
5+
"lib": [
6+
"ES2020",
7+
"DOM",
8+
"DOM.Iterable"
9+
],
610
"module": "ESNext",
711
"skipLibCheck": true,
812
"moduleResolution": "bundler",
@@ -16,5 +20,15 @@
1620
"noUnusedParameters": true,
1721
"noFallthroughCasesInSwitch": true
1822
},
19-
"include": ["."]
20-
}
23+
"include": [
24+
"."
25+
],
26+
"references": [
27+
{
28+
"path": "../liminal"
29+
},
30+
{
31+
"path": "../liminal-cloudflare"
32+
}
33+
]
34+
}

docs/wrangler.jsonc

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"$schema": "node_modules/wrangler/config-schema.json",
3+
"name": "liminal-docs",
4+
"main": "./liminal.ts",
5+
"compatibility_date": "2026-04-08",
6+
"keep_vars": true,
7+
"observability": {
8+
"enabled": true
9+
},
10+
"upload_source_maps": true,
11+
"placement": {
12+
"mode": "smart"
13+
},
14+
"assets": {
15+
"directory": "dist",
16+
"binding": "ASSETS",
17+
"not_found_handling": "single-page-application",
18+
},
19+
"routes": [
20+
{
21+
"pattern": "liminal.actor/*",
22+
"zone_name": "liminal.actor",
23+
},
24+
{
25+
"pattern": "www.liminal.actor/*",
26+
"zone_name": "liminal.actor",
27+
},
28+
],
29+
}

pnpm-lock.yaml

Lines changed: 20 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)