37 lines
460 B
Makefile
37 lines
460 B
Makefile
DENO := deno
|
|
COV := $(DENO) coverage cov_profile
|
|
FMT := $(DENO) fmt *.ts examples/*.ts
|
|
NPM_PUB := npm publish
|
|
|
|
dev: fmt tests cov
|
|
|
|
ci: fmt-check tests-cov
|
|
|
|
tests: clean
|
|
$(DENO) test --coverage=cov_profile *.test.ts
|
|
|
|
tests-cov: tests
|
|
$(COV) --lcov > cov_profile/cov.lcov
|
|
|
|
cov:
|
|
$(COV)
|
|
|
|
fmt:
|
|
$(FMT)
|
|
|
|
fmt-check:
|
|
$(FMT) --check
|
|
|
|
clean:
|
|
rm -rf cov_profile dist
|
|
|
|
build: clean
|
|
tsc && tsc -p tsconfig.cjs.json
|
|
|
|
dry-pub:
|
|
$(NPM_PUB) --dry-run
|
|
|
|
pub:
|
|
$(NPM_PUB)
|
|
|
|
|