annotate.inm7.de-simplesubmit/Makefile
Michael Hanke 6cf9ed49fc
All checks were successful
Deploy on webserver / Build site and deploy (push) Successful in 20s
Hack together a shacl-vue deployment
2025-04-22 10:36:36 +02:00

23 lines
545 B
Makefile

# Important directories
VUE_APP_DIR = shacl-vue
DIST_DIR = dist
# Install vite and shacl-vue dependencies
install:
npm install vite
cd $(VUE_APP_DIR) && npm install
# Build shacl-vue using top-level Vite-config
# Copy shacl-vue config to dist directory
build: clean
cd $(VUE_APP_DIR) && npm run build:app
mv $(VUE_APP_DIR)/dist/app ./$(DIST_DIR)
cp config.json $(DIST_DIR)/config.json
cp favicon.ico $(DIST_DIR)/favicon.ico
cp logo.png $(DIST_DIR)/logo.png
# Clean output
clean:
rm -rf $(DIST_DIR)
.PHONY: install build clean deploy