Skip to content

Commit 399788b

Browse files
committed
Build with vite
1 parent e75ce26 commit 399788b

22 files changed

+77
-6
lines changed

β€Ž.github/workflows/deploy.ymlβ€Ž

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Deploy
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
workflow_dispatch:
8+
9+
permissions:
10+
actions: read
11+
pages: write
12+
id-token: write
13+
14+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
15+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
16+
concurrency:
17+
group: "pages"
18+
cancel-in-progress: false
19+
20+
jobs:
21+
deploy:
22+
environment:
23+
name: github-pages
24+
url: ${{ steps.deployment.outputs.page_url }}
25+
26+
runs-on: ubuntu-latest
27+
steps:
28+
- name: Checkout
29+
uses: actions/checkout@v5
30+
31+
- name: Setup Node
32+
uses: actions/setup-node@v4
33+
with:
34+
node-version: latest
35+
36+
- name: Install dependencies
37+
run: npm ci
38+
39+
- name: Build
40+
run: npm run build
41+
42+
- name: Upload artifact
43+
uses: actions/upload-pages-artifact@v4
44+
with:
45+
path: dist
46+
47+
- name: Deploy to GitHub Pages
48+
id: deployment
49+
uses: actions/deploy-pages@v4

β€Ž.gitignoreβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
/dist/
12
/node_modules/
23
/package-lock.json

β€Žbiome.jsonβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"useIgnoreFile": false
77
},
88
"files": {
9+
"includes": ["**", "!dist", "!**/dist"],
910
"ignoreUnknown": false
1011
},
1112
"formatter": {

β€Žpackage.jsonβ€Ž

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
{
22
"private": true,
33
"scripts": {
4+
"dev": "vite",
5+
"build": "vite build",
6+
"preview": "vite preview",
47
"test": "biome check",
58
"fix": "biome check --write"
69
},
710
"devDependencies": {
8-
"@biomejs/biome": "2.3.14"
11+
"@biomejs/biome": "2.3.14",
12+
"vite": "^8.0.0-beta.0"
913
}
1014
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
Β (0)