Skip to content

Commit

Permalink
add Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
pomdtr committed Dec 12, 2023
1 parent be2859e commit 1cd905f
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 25 deletions.
4 changes: 2 additions & 2 deletions .air.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ tmp_dir = "tmp"

[build]
args_bin = ["--port=7777"]
bin = "./bin/tweety"
cmd = "task build"
bin = "./tweety"
cmd = "make"
delay = 0
exclude_dir = [
"assets",
Expand Down
15 changes: 15 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
default: build

.PHONY: frontend
frontend:
cd frontend && npm ci
cd frontend && npm run build


.PHONY: build
build: frontend
go build

.PHONY: install
install: frontend
go install
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,22 @@ Tweety is available on macOS, Linux.
```sh
# Homebrew (recommended)
brew install pomdtr/tap/tweety

# From source
go install github.com/pomdtr/tweety@latest
```

or download a binary from [releases](https://github.com/pomdtr/tweety/releases).

If you want to compile it yourself, you can use the following command:

```sh
git clone https://github.com/pomdtr/tweety
cd tweety
make install
```

See the `tweety completion` command to generate completion scripts for your shell.



## Usage

```sh
Expand Down
20 changes: 0 additions & 20 deletions Taskfile.yml

This file was deleted.

0 comments on commit 1cd905f

Please sign in to comment.