Skip to content

Commit

Permalink
build: Refine the build-frontend instructions in Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
thomass-dev committed Oct 1, 2024
1 parent 7f9d5a8 commit 2de810b
Showing 1 changed file with 11 additions and 10 deletions.
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 2de810b

Please sign in to comment.