@sdxc/kit 2026.11.1 → 2026.11.4
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 +68 -0
- package/changelog.jsonl +260 -0
- package/config.schema.json +14 -0
- package/dist/ci/install.d.ts +15 -0
- package/dist/ci/install.js +27 -0
- package/dist/ci/locate.d.ts +23 -0
- package/dist/ci/locate.js +43 -0
- package/dist/cli.js +6 -0
- package/dist/commands/ci/clean.d.ts +11 -0
- package/dist/commands/ci/clean.js +15 -0
- package/dist/commands/ci/list.d.ts +16 -0
- package/dist/commands/ci/list.js +24 -0
- package/dist/commands/ci/run.d.ts +70 -0
- package/dist/commands/ci/run.js +43 -0
- package/dist/commands/ci/signoff.d.ts +15 -0
- package/dist/commands/ci/signoff.js +15 -0
- package/dist/commands/ci/verify.d.ts +17 -0
- package/dist/commands/ci/verify.js +15 -0
- package/dist/commands/create.js +3 -0
- package/dist/commands/pkg.d.ts +16 -0
- package/dist/commands/pkg.js +71 -0
- package/dist/commands/routes.d.ts +1 -1
- package/dist/config.d.ts +10 -4
- package/dist/config.js +8 -0
- package/dist/contract.d.ts +65 -1
- package/dist/contract.js +51 -0
- package/dist/create/workspace.d.ts +15 -0
- package/dist/create/workspace.js +42 -0
- package/dist/doctor/checks.js +4 -0
- package/dist/doctor/ci.d.ts +15 -0
- package/dist/doctor/ci.js +63 -0
- package/dist/doctor/translations.d.ts +19 -0
- package/dist/doctor/translations.js +144 -0
- package/dist/package-manager.d.ts +2 -0
- package/dist/package-manager.js +16 -2
- package/dist/pkg/catalog.d.ts +12 -0
- package/dist/pkg/catalog.js +153 -0
- package/dist/pkg/resolve.d.ts +67 -0
- package/dist/pkg/resolve.js +147 -0
- package/dist/upgrade/changelog.d.ts +2 -2
- package/dist/upgrade/project.d.ts +2 -2
- package/package.json +10 -8
- package/registry/ui/banner.json +16 -0
- package/registry/ui/confirm.json +8 -4
- package/registry/ui/group.json +2 -2
- package/registry/ui/input.json +2 -2
- package/registry/ui/link-button.json +2 -2
- package/registry/ui/property-list.json +18 -0
- package/registry/ui/relative-time.json +17 -0
- package/registry/ui/status-dot.json +16 -0
- package/registry/ui/text-field.json +7 -3
- package/registry/ui/timeline.json +16 -0
- package/registry/ui/typeset.json +2 -2
- package/templates/app/.config/sdxc/ci.ts +26 -0
- package/templates/app/.github/workflows/ci.yml +46 -0
- package/templates/app/README.md +4 -0
- package/templates/app/package.json +1 -0
- package/templates/app/public/_headers +4 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Runs the same script `sdxc ci` runs locally (.config/sdxc/ci.ts). The gate job skips the
|
|
2
|
+
# whole run for a commit a contributor already signed off with a green local `sdxc ci`.
|
|
3
|
+
name: CI
|
|
4
|
+
|
|
5
|
+
on:
|
|
6
|
+
push:
|
|
7
|
+
branches: [main]
|
|
8
|
+
pull_request:
|
|
9
|
+
|
|
10
|
+
permissions:
|
|
11
|
+
contents: read
|
|
12
|
+
statuses: read
|
|
13
|
+
|
|
14
|
+
concurrency:
|
|
15
|
+
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
|
|
16
|
+
cancel-in-progress: true
|
|
17
|
+
|
|
18
|
+
jobs:
|
|
19
|
+
gate:
|
|
20
|
+
name: Signoff
|
|
21
|
+
runs-on: ubuntu-latest
|
|
22
|
+
outputs:
|
|
23
|
+
signed: ${{ steps.verify.outputs.signed }}
|
|
24
|
+
steps:
|
|
25
|
+
- uses: actions/checkout@v4
|
|
26
|
+
- uses: oven-sh/setup-bun@v2
|
|
27
|
+
- run: bun install --frozen-lockfile
|
|
28
|
+
- id: verify
|
|
29
|
+
env:
|
|
30
|
+
GITHUB_TOKEN: ${{ github.token }}
|
|
31
|
+
SHA: ${{ github.event.pull_request.head.sha || github.sha }}
|
|
32
|
+
run: |
|
|
33
|
+
if bunx sdxc ci verify "$SHA" --wait 60s; then
|
|
34
|
+
echo "signed=true" >> "$GITHUB_OUTPUT"
|
|
35
|
+
fi
|
|
36
|
+
|
|
37
|
+
ci:
|
|
38
|
+
name: CI
|
|
39
|
+
needs: gate
|
|
40
|
+
if: needs.gate.outputs.signed != 'true'
|
|
41
|
+
runs-on: ubuntu-latest
|
|
42
|
+
steps:
|
|
43
|
+
- uses: actions/checkout@v4
|
|
44
|
+
- uses: oven-sh/setup-bun@v2
|
|
45
|
+
- run: bun install --frozen-lockfile
|
|
46
|
+
- run: bunx sdxc ci --runner remote
|
package/templates/app/README.md
CHANGED
|
@@ -100,3 +100,7 @@ sdxc deploy
|
|
|
100
100
|
`sdxc deploy` builds, then runs `sdxc run db migrate --remote` and `sdxc run deploy`, and asks
|
|
101
101
|
before it changes production. To migrate or deploy differently, edit `app/commands/db/migrate.ts`
|
|
102
102
|
or `app/commands/deploy.ts`.
|
|
103
|
+
|
|
104
|
+
The build names every file under `/assets/` after its content, and `public/_headers` serves them
|
|
105
|
+
with `Cache-Control: public, max-age=31536000, immutable`, so a browser keeps each one for a year.
|
|
106
|
+
Put a file you add to `public/` anywhere outside `public/assets/`, where it is revalidated.
|