@@ -45,21 +45,13 @@ endif
4545WEBSITE_SRC_PATH := web_ui/frontend
4646WEBSITE_OUT_PATH := web_ui/frontend/out
4747WEBSITE_CACHE_PATH := web_ui/frontend/.next
48- WEBSITE_SRC_FILES := $(shell find $(WEBSITE_SRC_PATH ) /app -type f) \
49- $(shell find $(WEBSITE_SRC_PATH ) /components -type f) \
50- $(shell find $(WEBSITE_SRC_PATH ) /helpers -type f) \
51- $(shell find $(WEBSITE_SRC_PATH ) /public -type f) \
52- web_ui/frontend/tsconfig.json \
53- web_ui/frontend/next.config.js \
54- web_ui/frontend/package.json \
55- web_ui/frontend/package-lock.json \
56- web_ui/frontend/Dockerfile
57-
58- WEBSITE_OUT_FILE := $(WEBSITE_OUT_FILES ) /index.html
5948
49+ WEBSITE_SRC_FILES := $(shell find $(WEBSITE_SRC_PATH ) -type f -not -path "* .next* " -not -path "* /out/* " -not -path "* node_modules* " -not -path "* pelican-swagger.yaml")
6050WEBSITE_CLEAN_LIST := $(WEBSITE_OUT_PATH ) \
6151 $(WEBSITE_CACHE_PATH )
6252
53+ $(info These files have changed causing the website to have to rebuild : [$(shell find $(WEBSITE_SRC_PATH ) -type f -not -path "* .next* " -not -path "* /out/* " -not -path "* node_modules* " -not -path "* pelican-swagger.yaml" -newer web_ui/frontend/out/index.html) ])
54+
6355
6456.PHONY : all
6557all : pelican-build
9688web-build : generate web_ui/frontend/out/index.html
9789endif
9890
99- web_ui/frontend/out/index.html : $(WEBSITE_SRC_FILES )
91+ web_ui/frontend/out/index.html : $(WEBSITE_SRC_FILES ) swagger/pelican-swagger.yaml
10092ifeq ($(USE_DOCKER ) ,0)
10193 @cd $(WEBSITE_SRC_PATH) && npm install && npm run build
10294else
@@ -128,6 +120,15 @@ else
128120 @$(CONTAINER_TOOL) run -w /app -v $(PWD):/app goreleaser/goreleaser --clean --snapshot
129121endif
130122
123+ .PHONY : pelican-dev-build
124+ pelican-dev-build :
125+ @echo PELICAN DEV BUILD
126+ ifeq ($(USE_DOCKER ) ,0)
127+ @goreleaser --clean --snapshot --config .goreleaser.dev.yml
128+ else
129+ @$(CONTAINER_TOOL) run -w /app -v $(PWD):/app goreleaser/goreleaser --clean --snapshot --config .goreleaser.dev.yml
130+ endif
131+
131132.PHONY : pelican-serve-test-origin
132133pelican-serve-test-origin : pelican-build
133134 @echo SERVE TEST ORIGIN
0 commit comments