-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (28 loc) · 1.03 KB
/
Makefile
File metadata and controls
36 lines (28 loc) · 1.03 KB
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
30
31
32
33
34
35
36
.PHONY: help test test-quick coverage build install smoke clean
help:
@echo "Targets:"
@echo " test Run the full test suite (node --test)"
@echo " test-quick Run a quick subset (bracket, schema, substitution)"
@echo " coverage Run tests under --experimental-test-coverage"
@echo " build npm pack into the working directory"
@echo " install npm install -g from current source"
@echo " smoke build, install globally, run --version + --demo"
@echo " clean Remove build artifacts and node_modules"
test:
node --test tests/test_*.mjs
test-quick:
node --test tests/test_t1_bracket.mjs tests/test_schema.mjs tests/test_substitution.mjs
coverage:
node --test --experimental-test-coverage tests/test_*.mjs
build:
npm pack
install:
npm install -g .
smoke: build
version=$$(node -p "require('./package.json').version"); \
npm install -g "./draft-cli-$${version}.tgz"
draft --version
draft --demo > /dev/null
@echo "smoke ok"
clean:
rm -rf node_modules dist build *.tgz coverage .nyc_output