-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathJustfile
47 lines (35 loc) · 1.06 KB
/
Justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
set windows-shell := ["powershell.exe", "-NoLogo", "-Command"]
start:
bun run start
build:
bun run build
serve:
bun run serve
build-dev:
bun run build:dev
# build and serve the development version
bs: build-dev serve
format:
prettier --write **/*.{ts,tsx,js,jsx,md,json,css}
# push a new tag to the remote repository
tag-latest:
#!/bin/sh
VERSION=$(cat package.json | jq -r .version)
git tag -a v$VERSION -m "Release $VERSION"
git push origin --tags
# print the command to push a new tag to the remote repository
tag-latest-dry:
#!/bin/sh
VERSION=$(cat package.json | jq -r .version)
echo "git tag -a v$VERSION -m \"Release $VERSION\""
echo "git push origin --tags"
install-stripe:
brew install stripe/stripe-cli/stripe
# create a github release for the latest tag with auto-generated release notes
gh-release:
#!/bin/sh
VERSION=$(cat package.json | jq -r .version)
gh release create v$VERSION --generate-notes
# create a new release for the latest tag with auto-generated release notes
create-release: tag-latest gh-release
alias cr := create-release