mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-03-26 02:11:56 +00:00
30 lines
785 B
Makefile
30 lines
785 B
Makefile
TS_FILES := $(shell find ./**/*.ts )
|
|
version = $(shell git tag --sort=committerdate | tail -1)
|
|
test: $(TS_FILES)
|
|
npm test
|
|
|
|
# utils/test/output.ts: utils/test/config.json scripts/oldSpecToBuilder.ts
|
|
# cat utils/test/config.json | deno run scripts/oldSpecToBuilder.ts "../../mod" |deno fmt - > utils/test/output.ts
|
|
|
|
bundle: fmt $(TS_FILES) .FORCE node_modules
|
|
rm -rf dist || true
|
|
npx tsc-multi
|
|
npx tsc --emitDeclarationOnly
|
|
|
|
fmt: node_modules
|
|
npx prettier --write "**/*.ts"
|
|
|
|
node_modules: package.json
|
|
npm install
|
|
|
|
publish: bundle
|
|
cp package.json dist/package.json
|
|
cp README.md dist/README.md
|
|
cp LICENSE dist/LICENSE
|
|
cd dist && npm publish
|
|
link: bundle
|
|
cp package.json dist/package.json
|
|
cp README.md dist/README.md
|
|
cp LICENSE dist/LICENSE
|
|
cd dist && npm link
|
|
.FORCE: |