Skip to content

Commit

Permalink
Ensure that Javascript assets are included in the build again.
Browse files Browse the repository at this point in the history
  • Loading branch information
evert committed Sep 18, 2023
1 parent 4db4ec1 commit 8884ae0
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ SOURCE_FILES:=$(shell find src/ -type f -name '*.ts')
all: build

.PHONY:build
build: cjs/build esm/build
build: cjs/build esm/build assets

.PHONY:test
test:
Expand Down Expand Up @@ -51,3 +51,20 @@ esm/build: $(SOURCE_FILES)
echo '{"type": "module"}' > esm/package.json
@# Creating a small file to keep track of the last build time
touch esm/build



.PHONY:assets
assets: assets/js/html-form-enhancer.js assets/js/serialize-json-form.js

assets/js/html-form-enhancer.js: node_modules/html-form-enhancer/dist/html-form-enhancer.js
mkdir -p assets/js
cp node_modules/html-form-enhancer/dist/html-form-enhancer.* assets/js
touch cjs/build

assets/js/serialize-json-form.js: node_modules/html-form-enhancer/dist/serialize-json-form.js
cp node_modules/html-form-enhancer/dist/serialize-json-form.* assets/js


src/data/iana-links.json:
node util/fetch-link-relation-data.mjs > src/data/iana-links.json

0 comments on commit 8884ae0

Please sign in to comment.