chore: Add the tools for packaging npm

This commit is contained in:
BluJ
2023-02-16 14:08:53 -07:00
parent 93e27d8bf4
commit df89119193
17 changed files with 477 additions and 209 deletions

View File

@@ -1,5 +1,15 @@
TEST_FILES := $(shell find ./**/*.ts)
test: $(TEST_FILES)
TS_FILES := $(shell find ./**/*.ts )
version = $(shell git tag --sort=committerdate | tail -1)
test: $(TS_FILES)
deno test test.ts
deno check mod.ts
bundle: test fmt $(TS_FILES)
echo "Version: $(version)"
deno run --allow-net --allow-write --allow-env --allow-run --allow-read build.ts $(version)
fmt:
deno fmt
publish: bundle
cd lib && npm publish