-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (22 loc) · 851 Bytes
/
Copy pathMakefile
File metadata and controls
29 lines (22 loc) · 851 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
.PHONY: up sef test test-browser install clean
# Port for the local dev server (override: make up PORT=9000)
PORT ?= 8000
# Bring up the editor locally: build the SEF, then serve on http://localhost:$(PORT)
# (serve.mjs content-negotiates document URIs — required for the object-block demo)
up: sef
node serve.mjs $(PORT)
# Compile src/*.xsl to the SaxonJS SEF (dist/index.xsl.sef.json) and copy vocabs
sef:
bash generate-sef.sh
# Headless XSLT test suites (extractor, canonical, lint) — run against src/ directly
test:
bash tests/run-tests.sh
# Browser test suites (Playwright); rebuild the SEF first, as CI does
test-browser: sef
npm run test:browser
# Install Node dependencies (Playwright) for the browser tests
install:
npm install
# Remove generated build artifacts (dist/ is regenerated by `make sef`)
clean:
rm -rf build dist