mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-03-26 02:11:56 +00:00
chore: Convert to a node style
This commit is contained in:
25
Makefile
25
Makefile
@@ -1,18 +1,23 @@
|
||||
TS_FILES := $(shell find ./**/*.ts )
|
||||
version = $(shell git tag --sort=committerdate | tail -1)
|
||||
test: $(TS_FILES) utils/test/output.ts
|
||||
deno test test.ts
|
||||
deno check mod.ts
|
||||
# test: $(TS_FILES) utils/test/output.ts
|
||||
# deno test test.ts
|
||||
# deno check mod.ts
|
||||
|
||||
utils/test/output.ts: utils/test/config.json scripts/oldSpecToBuilder.ts
|
||||
cat utils/test/config.json | deno run scripts/oldSpecToBuilder.ts "../../mod.ts" |deno fmt - > utils/test/output.ts
|
||||
cat utils/test/config.json | deno run scripts/oldSpecToBuilder.ts "../../mod" |deno fmt - > utils/test/output.ts
|
||||
|
||||
bundle: test fmt $(TS_FILES)
|
||||
echo "Version: $(version)"
|
||||
deno run --allow-net --allow-write --allow-env --allow-run --allow-read build.ts $(version)
|
||||
bundle: fmt $(TS_FILES) .FORCE node_modules
|
||||
rm -rf dist || true
|
||||
npx tsc-multi
|
||||
npx tsc --emitDeclarationOnly
|
||||
|
||||
fmt:
|
||||
deno fmt
|
||||
fmt: node_modules
|
||||
npx prettier --write "**/*.ts"
|
||||
|
||||
node_modules: package.json
|
||||
npm install
|
||||
|
||||
publish: bundle
|
||||
cd lib && npm publish
|
||||
cd lib && npm publish
|
||||
.FORCE:
|
||||
Reference in New Issue
Block a user