Migrate to Vite on standalone app

This commit is contained in:
c-bata
2024-03-08 09:49:08 +09:00
parent 120b7329a1
commit 6f0f783dab
12 changed files with 1281 additions and 485 deletions
+4 -1
View File
@@ -42,7 +42,10 @@ jobs:
python -m pip install --progress-bar off pytest-playwright==0.4.3 # next version is flaky
- name: Build standalone_app
run: make MODE="prd" standalone_app/public/bundle.js
working-directory: standalone_app
run: |
npm install
npx vite build --outDir dist
- name: Install the required browsers
run: playwright install
+2 -9
View File
@@ -31,15 +31,8 @@ jobs:
with:
node-version: '18'
- name: Build standalone_app
env:
PUBLIC_PATH: /optuna-dashboard/public/
run: make MODE="prd" standalone_app/public/bundle.js
- name: Create publish directory
run: |
mkdir gh-publish
cp -r standalone_app/public gh-publish/public
cp standalone_app/favicon.ico gh-publish/favicon.ico
cp standalone_app/github-pages.html gh-publish/index.html
working-directory: standalone_app
run: npx vite build --base=/optuna-dashboard/public/ --outDir ../gh-pages
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with: