Skip to content

Commit

Permalink
update make components
Browse files Browse the repository at this point in the history
  • Loading branch information
RayBB committed Jan 10, 2025
1 parent 6500f2a commit f62a518
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit f62a518

Please sign in to comment.