Skip to content

Commit b72ffd8

Browse files
committed
chore: Migrate to Vite+.
1 parent 615b522 commit b72ffd8

264 files changed

Lines changed: 2429 additions & 1781 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/ci.yml‎

Lines changed: 7 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,6 @@ on:
1616
permissions: {}
1717

1818
jobs:
19-
lint-and-check:
20-
runs-on: blacksmith-4vcpu-ubuntu-2404
21-
permissions:
22-
contents: read
23-
steps:
24-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
25-
with:
26-
persist-credentials: false
27-
- uses: pnpm/action-setup@26f6d4f2c533a43e6b5da0b4a5dd983f98f7b49a # v6.0.4
28-
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
29-
with:
30-
node-version-file: .node-version
31-
cache: pnpm
32-
- run: pnpm install --frozen-lockfile
33-
- run: pnpm lint
34-
- run: pnpm build:all
35-
- run: pnpm check
36-
3719
test:
3820
runs-on: ${{ matrix.os }}
3921
permissions:
@@ -44,57 +26,27 @@ jobs:
4426
# Windows runs on main pushes and on PRs labeled "test: windows",
4527
# unless a reusable workflow caller explicitly disables it.
4628
os: '${{ (((github.event_name == ''push'' && startsWith(github.ref, ''refs/heads/'')) || contains(github.event.pull_request.labels.*.name, ''test: windows'')) && !(github.event_name == ''workflow_call'' && inputs.skip_windows)) && fromJSON(''["blacksmith-4vcpu-ubuntu-2404","windows-latest"]'') || fromJSON(''["blacksmith-4vcpu-ubuntu-2404"]'') }}'
47-
suite: [unit, core-markdown, metaframeworks, pages-react-vue, pages-svelte-solid]
48-
include:
49-
- suite: unit
50-
script: test:unit
51-
- suite: core-markdown
52-
script: test:integration
53-
- suite: metaframeworks
54-
script: test:metaframeworks
55-
retry: 2
56-
- suite: pages-react-vue
57-
script: test:pages:react-vue
58-
retry: 2
59-
prebuild: playground/react-pages playground/vue-pages
60-
- suite: pages-svelte-solid
61-
script: test:pages:svelte-solid
62-
retry: 2
63-
prebuild: playground/svelte-pages playground/solid-pages
6429
steps:
6530
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
6631
with:
6732
persist-credentials: false
68-
- uses: pnpm/action-setup@26f6d4f2c533a43e6b5da0b4a5dd983f98f7b49a # v6.0.4
69-
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
33+
- uses: voidzero-dev/setup-vp@45e5c098f1095cc6b65fd92534603e7be70386c1 # v1
7034
with:
7135
node-version-file: .node-version
72-
cache: pnpm
73-
- run: pnpm install --frozen-lockfile
74-
- run: pnpm build
75-
76-
- name: Pre-build playgrounds for preview tests
77-
if: matrix.prebuild
78-
shell: bash
79-
run: |
80-
for pg in ${{ matrix.prebuild }}; do
81-
pnpm --dir "$pg" build &
82-
done
83-
wait
36+
cache: true
8437

85-
- run: pnpm exec playwright install --with-deps chromium
86-
if: matrix.suite != 'unit' && !contains(matrix.os, 'windows')
38+
- run: vp exec playwright install --with-deps chromium
39+
if: ${{ !contains(matrix.os, 'windows') }}
8740

88-
- run: pnpm exec playwright install chromium
89-
if: matrix.suite != 'unit' && contains(matrix.os, 'windows')
41+
- run: vp exec playwright install chromium
42+
if: ${{ contains(matrix.os, 'windows') }}
9043

91-
- run: pnpm ${{ matrix.script }}${{ matrix.retry && format(' --retry {0}', matrix.retry) || '' }}
44+
- run: vp run test:all
9245

9346
done:
9447
runs-on: ubuntu-latest
9548
if: always()
9649
needs:
97-
- lint-and-check
9850
- test
9951
steps:
10052
- run: exit 1

‎.github/workflows/deploy-docs-staging.yml‎

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,12 @@ jobs:
1919
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2020
with:
2121
persist-credentials: false
22-
- uses: pnpm/action-setup@26f6d4f2c533a43e6b5da0b4a5dd983f98f7b49a # v6.0.4
23-
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
22+
- uses: voidzero-dev/setup-vp@45e5c098f1095cc6b65fd92534603e7be70386c1 # v1
2423
with:
2524
node-version-file: .node-version
26-
cache: pnpm
27-
- run: pnpm install --frozen-lockfile
28-
- run: pnpm build:core
29-
- run: pnpm install
30-
- run: pnpm deploy:staging:docs
25+
cache: true
26+
- run: vp run build:core
27+
- run: vp install
28+
- run: vp run deploy:staging:docs
3129
env:
3230
VOID_TOKEN: ${{ secrets.VOID_TOKEN }}

‎.github/workflows/deploy-docs.yml‎

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,12 @@ jobs:
1919
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2020
with:
2121
persist-credentials: false
22-
- uses: pnpm/action-setup@26f6d4f2c533a43e6b5da0b4a5dd983f98f7b49a # v6.0.4
23-
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
22+
- uses: voidzero-dev/setup-vp@45e5c098f1095cc6b65fd92534603e7be70386c1 # v1
2423
with:
2524
node-version-file: .node-version
26-
cache: pnpm
27-
- run: pnpm install --frozen-lockfile
28-
- run: pnpm build:core
29-
- run: pnpm install
30-
- run: pnpm deploy:docs
25+
cache: true
26+
- run: vp run build:core
27+
- run: vp install
28+
- run: vp run deploy:docs
3129
env:
3230
VOID_TOKEN: ${{ secrets.VOID_TOKEN }}

‎.github/workflows/publish.yml‎

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,12 @@ jobs:
2626
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2727
with:
2828
persist-credentials: false
29-
- uses: pnpm/action-setup@26f6d4f2c533a43e6b5da0b4a5dd983f98f7b49a # v6.0.4
30-
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 # zizmor: ignore[cache-poisoning]
31-
with:
32-
node-version-file: .node-version
33-
- run: pnpm install --frozen-lockfile
34-
- run: pnpm build
35-
36-
# Configure the publish registry after install so docs dependencies under
37-
# @voidzero-dev continue to resolve from npm during installation.
38-
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 # zizmor: ignore[cache-poisoning]
29+
- uses: voidzero-dev/setup-vp@45e5c098f1095cc6b65fd92534603e7be70386c1 # v1
3930
with:
4031
node-version-file: .node-version
32+
cache: true
4133
registry-url: https://registry.npmjs.org
34+
- run: vp run build
4235

4336
- run: npm install -g npm@latest
44-
- run: pnpm publish -r --access public --tag latest --provenance --no-git-checks
37+
- run: vp pm publish -r --access public --tag latest --provenance --no-git-checks

‎.husky/pre-commit‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎.oxfmtrc.json‎

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)