mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-03-26 02:11:56 +00:00
chore: Add the tools for packaging npm
This commit is contained in:
16
Makefile
16
Makefile
@@ -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
|
||||
Reference in New Issue
Block a user