From f62a518618e479ac4ec3efd7c3b34b91d454285c Mon Sep 17 00:00:00 2001 From: RayBB Date: Thu, 9 Jan 2025 20:58:52 -0500 Subject: [PATCH] update make components --- Makefile | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/Makefile b/Makefile index b54098a7333..26f347396ec 100644 --- a/Makefile +++ b/Makefile @@ -29,27 +29,21 @@ js: echo "\n// @license-end" >> $$js; \ done -vite: $(COMPONENTS_DIR)/*.vue + +components: $(COMPONENTS_DIR)/*.vue mkdir -p $(BUILD) rm -rf $(BUILD)/components node /openlibrary/openlibrary/components/generateViteInputFiles.js + # TODO: call generateViteFiles from vite.config.mjs + # TODO: make it loop over everything in the components directory component=BarcodeScanner npx vite build component=BulkSearch npx vite build component=HelloWorld npx vite build component=IdentifiersInput npx vite build - # The three below this need more testing component=LibraryExplorer npx vite build component=MergeUi npx vite build component=ObservationForm npx vite build -components: $(COMPONENTS_DIR)/*.vue - mkdir -p $(BUILD) - rm -rf $(BUILD)/components - # Run these silly things one at a time, because they don't support parallelization :( - parallel --verbose -q --jobs 1 \ - npx vue-cli-service build --no-clean --mode production --dest $(BUILD)/components/production --target wc --name "ol-{/.}" "{}" \ - ::: $^ - i18n: $(PYTHON) ./scripts/i18n-messages compile