open source is social v-it.org
1BUMP ?= patch
2
3.PHONY: install link test test-node clean release publish ship deploy-site deploy-explore
4
5install:
6 bun install
7
8link:
9 bun install && node bin/vit.js link
10
11test: test-node
12 bun test
13
14test-node:
15 node bin/vit.js --help > /dev/null
16 node bin/vit.js --version > /dev/null
17
18clean:
19 rm -rf node_modules/
20
21release: test
22 npm version $(BUMP) --no-git-tag-version
23 @v=$$(node -p "require('./package.json').version") && \
24 git add package.json package-lock.json && \
25 git commit -m "v$$v" && \
26 git tag "v$$v" && \
27 git push && \
28 git push --tags
29
30publish:
31 npm publish
32
33ship: release publish
34
35deploy-site:
36 cd site && wrangler deploy
37
38deploy-explore:
39 cd explore && wrangler deploy