Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .air.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
root = "."
tmp_dir = "tmp"

[build]
full_bin = "./dist/synthetic-monitoring-agent --debug --api-server-address=localhost:4031 --api-insecure=true --dev=true"
cmd = "make build"
delay = 1000
exclude_dir = [".chglog", ".github"]
exclude_file = []
exclude_regex = []
exclude_unchanged = false
follow_symlink = false
include_dir = []
include_ext = ["go"]
kill_delay = "0s"
log = "build-errors.log"
send_interrupt = true
stop_on_error = true

[color]
app = ""
build = "yellow"
main = "magenta"
runner = "green"
watcher = "cyan"

[log]
time = false

[misc]
clean_on_exit = false
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,6 @@ tags

# Local dev environment configuration files
*.env

# Files generated by air
tmp
11 changes: 11 additions & 0 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,17 @@ The documentation for other targets is available thru:
$ make help
```

Livereload Development
----------------------

Install [air](https://github.com/air-verse/air?tab=readme-ov-file#installation) and ensure `SM_AGENT_API_TOKEN` is set prior to running.

```
$ air
```

Any code changes will now trigger air to rebuild the agent and run the generated executable.

Linting
-------

Expand Down
Loading