1- .PHONY : build build-ts test types
1+ .PHONY : build build-ts test types coverage coverage-check coverage-open
22
33BUILD_DIR = ./dist
44TS_BUILD_DIR = ./.build
2121 rm -r " $( TS_BUILD_DIR) " ; \
2222 fi
2323 @npm i
24- @npm run build
24+ @./node_modules/.bin/tsc --project tsconfig.build.json
25+ @./node_modules/.bin/rollup -c
26+ @rm -rf .build
2527
2628build-ts :
2729 @if [ -d " $( TS_BUILD_DIR) " ]; then \
@@ -31,7 +33,7 @@ build-ts:
3133 @./node_modules/.bin/tsc --project tsconfig.build.json
3234
3335size :
34- @npm run build > /dev/null
36+ @$( MAKE ) build > /dev/null
3537 @echo " Minified build output: $$ (stat -c %s dist/angular-ts.umd.min.js) ~ $$ (stat -c %s dist/angular-ts.umd.min.js | numfmt --to=iec)"
3638 @echo " Expected gzip: $$ (gzip -c dist/angular-ts.umd.min.js | wc -c) ~ $$ (gzip -c dist/angular-ts.umd.min.js | wc -c | numfmt --to=iec)"
3739 @git checkout -q $(BUILD_DIR )
6668
6769types :
6870 @echo " Generating *.d.ts"
69- @npm run types
71+ @rm -rf @types
72+ @./node_modules/.bin/tsc --project tsconfig.types.json
73+ @npx prettier ./@types --write --cache --log-level=silent
7074
7175TYPEDOC_DIR = docs/static/typedoc
7276doc :
@@ -92,5 +96,18 @@ test-ui:
9296 @echo $(INFO ) " Playwright test JS with ui"
9397 @$(PLAYWRIGHT_TEST ) --ui
9498
99+ coverage :
100+ @echo $(INFO ) " Playwright coverage"
101+ @node ./utils/run-coverage.mjs
102+
103+ coverage-check :
104+ @echo $(INFO ) " Playwright coverage threshold check"
105+ @node ./utils/run-coverage.mjs --check
106+
107+ coverage-open :
108+ @echo $(INFO ) " Open coverage report"
109+ @node ./utils/open-coverage.mjs
110+
95111hugo :
96112 hugo server --source=docs --disableFastRender
113+
0 commit comments