Skip to content

Commit 2681fde

Browse files
committed
Switch to Vite
1 parent 1f545d2 commit 2681fde

41 files changed

Lines changed: 741 additions & 110 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/pages.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,21 +34,20 @@ jobs:
3434
- name: Install npm
3535
uses: actions/setup-node@v4
3636
with:
37-
node-version: 18
37+
node-version: 22
3838

3939
- name: npm clean-install
4040
run: npm ci
4141

4242
- name: Build
43-
run: ./build.sh
43+
run: npm run build
4444

4545
- name: Setup Pages
4646
uses: actions/configure-pages@v5
4747
- name: Upload artifact
4848
uses: actions/upload-pages-artifact@v3
4949
with:
50-
# Upload entire repository
51-
path: '.'
50+
path: 'dist'
5251
- name: Deploy to GitHub Pages
5352
id: deployment
5453
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Ignore built ts files
2-
/build/**/*
2+
/dist/**/*
33
/node_modules/**/*
44
/backup/**/*
55
.idea

build.sh

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,9 @@
11
set -e
22
#npm install
3-
npm run prestart:copysrc
4-
npm run prestart:copyassets
5-
npx tsc -noEmit
6-
npx esbuild src/scripts/ui.ts --sourcemap --bundle --outfile=build/ui.js
3+
npm run build
74

8-
#on first start run "npm install"
95
#npm outdated
106
#npm update
11-
# updated also package-lock.json
12-
#npm install
13-
147

158
#/opt/google/chrome-unstable/chrome --enable-features=Vulkan
169

index.html

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

0 commit comments

Comments
 (0)