dkforest

A forum and chat platform (onion)
git clone https://git.dasho.dev/n0tr1v/dkforest.git
Log | Files | Refs | LICENSE

.air.toml (1553B)


      1 # Config file for [Air](https://github.com/cosmtrek/air) in TOML format
      2 
      3 # Working directory
      4 # . or absolute path, please note that the directories following must be under root.
      5 root = "."
      6 tmp_dir = "tmp"
      7 
      8 [build]
      9 before = ["make bindata-dev"]
     10 # Just plain old shell command. You could use `make` as well.
     11 cmd = "go build --tags \"fts5\" -o ./tmp/main ./cmd/dkf/main.go"
     12 # Binary file yields from `cmd`.
     13 bin = "tmp/main --no-browser"
     14 # Customize binary.
     15 # full_bin = "APP_ENV=dev APP_USER=air ./tmp/main"
     16 # Watch these filename extensions.
     17 include_ext = ["go", "css", "html", "gohtml", "md"]
     18 # Ignore these filename extensions or directories.
     19 exclude_dir = ["assets", "tmp", "vendor", "scripts", "dist", "bindata",
     20                "coverage", "scss", "bootstrap", ".git", "node_modules", "cmd", "_locales", "samples"]
     21 # Watch these directories if you specified.
     22 include_dir = []
     23 # Exclude files.
     24 exclude_file = []
     25 # This log file places in your tmp_dir.
     26 log = "air.log"
     27 # It's not necessary to trigger build each time file changes if it's too frequent.
     28 delay = 500 # ms
     29 # Stop running old binary when build errors occur.
     30 stop_on_error = true
     31 # Send Interrupt signal before killing process (windows does not support this feature)
     32 send_interrupt = false
     33 # Delay after sending Interrupt signal
     34 kill_delay = 0 # ms
     35 
     36 [log]
     37 # Show log time
     38 time = true
     39 
     40 [color]
     41 # Customize each part's color. If no color found, use the raw app log.
     42 main = "magenta"
     43 watcher = "cyan"
     44 build = "yellow"
     45 runner = "green"
     46 
     47 [misc]
     48 # Delete tmp directory on exit
     49 clean_on_exit = true