Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
56712f7996
|
@@ -5,6 +5,13 @@ how you would use npm. ZQDGR lets you watch files and rebuild your project as yo
|
|||||||
optional websocket server that will notify listeners that a rebuild has occurred, this is very useful for live reloading
|
optional websocket server that will notify listeners that a rebuild has occurred, this is very useful for live reloading
|
||||||
when doing web development with Go.
|
when doing web development with Go.
|
||||||
|
|
||||||
|
**Status: Alpha**
|
||||||
|
|
||||||
|
This project is not recommend for production use, you are allowed to, and I try
|
||||||
|
my best to keep it as stable as possible, but features and APIs will change
|
||||||
|
in nearly every release without backwards compatibility, upgrade carefilly, and
|
||||||
|
make sure to depend on a specific version of ZQDGR.
|
||||||
|
|
||||||
## Install
|
## Install
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|||||||
@@ -9,5 +9,5 @@
|
|||||||
"dev": "go run main.go"
|
"dev": "go run main.go"
|
||||||
},
|
},
|
||||||
"pattern": "**/*.go",
|
"pattern": "**/*.go",
|
||||||
"excluded_dirs": []
|
"excluded_globs": []
|
||||||
}
|
}
|
||||||
10
main.go
10
main.go
@@ -42,9 +42,7 @@ type Config struct {
|
|||||||
} `json:"repository"`
|
} `json:"repository"`
|
||||||
Scripts map[string]string `json:"scripts"`
|
Scripts map[string]string `json:"scripts"`
|
||||||
Pattern string `json:"pattern"`
|
Pattern string `json:"pattern"`
|
||||||
// Deprecated: use excludedGlobs instead
|
ExcludedGlobs []string `json:"excluded_globs"`
|
||||||
ExcludedDirs []string `json:"excluded_dirs"`
|
|
||||||
ExcludedGlobs []string `json:"excluded_files"`
|
|
||||||
ShutdownSignal string `json:"shutdown_signal"`
|
ShutdownSignal string `json:"shutdown_signal"`
|
||||||
ShutdownTimeout int `json:"shutdown_timeout"`
|
ShutdownTimeout int `json:"shutdown_timeout"`
|
||||||
}
|
}
|
||||||
@@ -303,12 +301,6 @@ func (zqdgr *ZQDGR) loadConfig() error {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if zqdgr.Config.ExcludedDirs != nil {
|
|
||||||
fmt.Printf("WARNING: the 'excluded_dirs' key is deprecated, please use 'excluded_globs' instead\n")
|
|
||||||
|
|
||||||
zqdgr.Config.ExcludedGlobs = append(zqdgr.Config.ExcludedGlobs, zqdgr.Config.ExcludedDirs...)
|
|
||||||
}
|
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "zqdgr",
|
"name": "zqdgr",
|
||||||
"version": "0.0.6",
|
"version": "0.0.6.1",
|
||||||
"description": "zqdgr is a quick and dirty Golang runner",
|
"description": "zqdgr is a quick and dirty Golang runner",
|
||||||
"author": "juls0730",
|
"author": "juls0730",
|
||||||
"license": "BSL-1.0",
|
"license": "BSL-1.0",
|
||||||
|
|||||||
Reference in New Issue
Block a user