Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
thomass-dev committed Sep 27, 2024
1 parent 81f6191 commit 1eac11e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ jobs:
npm install
npm run build
npm run build:lib
npm run build:lib -- --emptyOutDir false
- uses: actions/upload-artifact@v4
with:
name: frontend-package-distributions
path: frontend/dist/*
path: frontend/dist

test-backend:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -61,8 +61,7 @@ jobs:
uses: actions/download-artifact@v4
with:
name: frontend-package-distributions
path: src/skore/ui/static # ?
merge-multiple: true # ?
path: src/skore/ui/static

- name: Build
run: |
Expand Down
21 changes: 11 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,15 @@ serve-ui:
--timeout-graceful-shutdown 0

build-frontend:
# build the SPA
cd frontend && npm install
cd frontend && npm run build
# empty app static folder
rm -rf src/skore/ui/static
cp -a frontend/dist/. src/skore/ui/static
# build the sharing library
cd frontend && npm run build:lib
cp -a frontend/dist/. src/skore/ui/static
# clean up
# cleanup
rm -rf frontend/dist
rm -rf src/skore/ui/static
# build
(\
cd frontend;\
npm install;\
npm run build;\
npm run build:lib -- --emptyOutDir false;\
)
# move
mv frontend/dist/ src/skore/ui/static

0 comments on commit 1eac11e

Please sign in to comment.