@@ -4,7 +4,21 @@ DEPS := cached-iterable:CachedIterable
44
55include ../common.mk
66
7- test :
7+ lint :
8+ @eslint --config $(ROOT ) /eslint_src.json --max-warnings 0 src/
9+ @eslint --config $(ROOT ) /eslint_test.json --max-warnings 0 test/
10+ @echo -e " $( OK) lint"
11+
12+ .PHONY : compile
13+ compile : esm/.compiled
14+
15+ esm/.compiled : $(SOURCES )
16+ @tsc
17+ @touch $@
18+ @echo -e " $( OK) esm/ compiled"
19+
20+ .PHONY : test
21+ test : esm/.compiled
822 @nyc --reporter=text --reporter=html mocha \
923 --recursive --ui tdd \
1024 --require esm \
1428.PHONY : build
1529build : index.js compat.js
1630
17- index.js : $( SOURCES )
18- @rollup $(CURDIR ) /src /index.js \
31+ index.js : esm/.compiled
32+ @rollup $(CURDIR ) /esm /index.js \
1933 --config $(ROOT ) /bundle_config.js \
2034 --banner " /* $( PACKAGE) @$( VERSION) */" \
2135 --amd.id $(PACKAGE ) \
@@ -24,8 +38,8 @@ index.js: $(SOURCES)
2438 --output.file $@
2539 @echo -e " $( OK) $@ built"
2640
27- compat.js : $( SOURCES )
28- @rollup $(CURDIR ) /src /index.js \
41+ compat.js : esm/.compiled
42+ @rollup $(CURDIR ) /esm /index.js \
2943 --config $(ROOT ) /compat_config.js \
3044 --banner " /* $( PACKAGE) @$( VERSION) */" \
3145 --amd.id $(PACKAGE ) \
@@ -34,6 +48,18 @@ compat.js: $(SOURCES)
3448 --output.file $@
3549 @echo -e " $( OK) $@ built"
3650
37- lint : _lint
38- html : _html
39- clean : _clean
51+ html :
52+ @typedoc src \
53+ --out ../html/dom \
54+ --mode file \
55+ --excludeNotExported \
56+ --excludePrivate \
57+ --logger none \
58+ --hideGenerator
59+ @echo -e " $( OK) html built"
60+
61+ clean :
62+ @rm -f esm/* .js esm/* .d.ts esm/.compiled
63+ @rm -f index.js compat.js
64+ @rm -rf .nyc_output coverage
65+ @echo -e " $( OK) clean"
0 commit comments