Skip to content

Commit

Permalink
chore: (MSP-11) Add build and compress tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
javiercm1410 committed Sep 5, 2024
1 parent 91b26ca commit 58e6242
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions taskfile.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
version: '3'

env:
PROJECT: 'git-cleaner'

tasks:
build:
desc: "Compile binary for supported platforms"
cmds:
- for: ['linux-x64', 'linux-arm64', 'darwin-arm64', 'darwin-x64']
cmd: |
echo "Compiling for {{.ITEM}}..."
bun build \
--compile \
--target=bun-{{.ITEM}} \
--minify \
--sourcemap \
./cli.ts \
--outfile ./dist/$PROJECT-{{.ITEM}}
compress:
desc: "Compress the binaries"
cmds:
- for: ['linux-x64', 'linux-arm64', 'darwin-arm64', 'darwin-x64']
cmd: |
echo "Compressing {{.ITEM}} binary..."
tar -czvf ./dist/$PROJECT-{{.ITEM}}.tar.gz -C ./dist/ $PROJECT-{{.ITEM}}

0 comments on commit 58e6242

Please sign in to comment.