mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-03-26 02:11:56 +00:00
35 lines
732 B
Makefile
35 lines
732 B
Makefile
TS_FILES := $(shell find ./**/*.ts )
|
|
version = $(shell git tag --sort=committerdate | tail -1)
|
|
test: $(TS_FILES) lib/test/output.ts
|
|
npm test
|
|
|
|
make clean:
|
|
rm -rf dist
|
|
|
|
lib/test/output.ts: lib/test/makeOutput.ts scripts/oldSpecToBuilder.ts
|
|
npm run buildOutput
|
|
|
|
bundle: fmt $(TS_FILES) .FORCE node_modules
|
|
npx tsc-multi
|
|
npx tsc --emitDeclarationOnly
|
|
|
|
check:
|
|
npm run check
|
|
|
|
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: |