diff --git a/README.md b/README.md index c9bfad2..edf5b7f 100644 --- a/README.md +++ b/README.md @@ -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 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 ```bash diff --git a/embed/zqdgr.config.json b/embed/zqdgr.config.json index 9d8b103..58741b6 100644 --- a/embed/zqdgr.config.json +++ b/embed/zqdgr.config.json @@ -9,5 +9,5 @@ "dev": "go run main.go" }, "pattern": "**/*.go", - "excluded_dirs": [] + "excluded_globs": [] } \ No newline at end of file diff --git a/main.go b/main.go index 23009bf..dd652c0 100644 --- a/main.go +++ b/main.go @@ -40,13 +40,11 @@ type Config struct { Type string `json:"type"` URL string `json:"url"` } `json:"repository"` - Scripts map[string]string `json:"scripts"` - Pattern string `json:"pattern"` - // Deprecated: use excludedGlobs instead - ExcludedDirs []string `json:"excluded_dirs"` - ExcludedGlobs []string `json:"excluded_files"` - ShutdownSignal string `json:"shutdown_signal"` - ShutdownTimeout int `json:"shutdown_timeout"` + Scripts map[string]string `json:"scripts"` + Pattern string `json:"pattern"` + ExcludedGlobs []string `json:"excluded_globs"` + ShutdownSignal string `json:"shutdown_signal"` + ShutdownTimeout int `json:"shutdown_timeout"` } type Script struct { @@ -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 } diff --git a/zqdgr.config.json b/zqdgr.config.json index 9c0f68c..f9e7bac 100644 --- a/zqdgr.config.json +++ b/zqdgr.config.json @@ -1,6 +1,6 @@ { "name": "zqdgr", - "version": "0.0.6", + "version": "0.0.6.1", "description": "zqdgr is a quick and dirty Golang runner", "author": "juls0730", "license": "BSL-1.0",