From 2de810b103ff4adf5c4ac69faba81fa76efd32a4 Mon Sep 17 00:00:00 2001 From: Thomas S Date: Tue, 1 Oct 2024 11:52:14 +0200 Subject: [PATCH] build: Refine the build-frontend instructions in Makefile --- Makefile | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/Makefile b/Makefile index 8de6029c..cb63349f 100644 --- a/Makefile +++ b/Makefile @@ -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