mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 18:31:52 +00:00
* fix mac build * wip * chore: Update the effects to get rid of bad pattern * chore: Some small changes * wip * fix: Health checks don't show during race * fix: Restart working --------- Co-authored-by: Aiden McClelland <me@drbonez.dev>
44 lines
888 B
Makefile
44 lines
888 B
Makefile
TS_FILES := $(shell git ls-files lib) lib/test/output.ts
|
|
version = $(shell git tag --sort=committerdate | tail -1)
|
|
|
|
.PHONY: test clean bundle fmt buildOutput check
|
|
|
|
test: $(TS_FILES) lib/test/output.ts
|
|
npm test
|
|
|
|
clean:
|
|
rm -rf dist
|
|
rm -f lib/test/output.ts
|
|
rm -rf node_modules
|
|
|
|
lib/test/output.ts: node_modules lib/test/makeOutput.ts scripts/oldSpecToBuilder.ts
|
|
npm run buildOutput
|
|
|
|
bundle: dist | test fmt
|
|
touch dist
|
|
|
|
dist: $(TS_FILES) package.json node_modules README.md LICENSE
|
|
npx tsc
|
|
npx tsc --project tsconfig-cjs.json
|
|
cp package.json dist/package.json
|
|
cp README.md dist/README.md
|
|
cp LICENSE dist/LICENSE
|
|
touch dist
|
|
|
|
full-bundle: bundle
|
|
|
|
check:
|
|
npm run check
|
|
|
|
fmt: node_modules
|
|
npx prettier --write "**/*.ts"
|
|
|
|
node_modules: package.json
|
|
npm ci
|
|
|
|
publish: bundle package.json README.md LICENSE
|
|
cd dist && npm publish --access=public
|
|
|
|
link: bundle
|
|
cd dist && npm link
|