mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
seperate files for build mains.
This commit is contained in:
18
build/generate/generate.go
Normal file
18
build/generate/generate.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/mjibson/esc/embed"
|
||||
)
|
||||
|
||||
func main() {
|
||||
//go:generate esc -modtime 0 -o js/static.go -pkg js -include helpers\.js -ignore go -prefix js js
|
||||
conf := &embed.Config{
|
||||
ModTime: "0",
|
||||
OutputFile: "js/static.go",
|
||||
Package: "js",
|
||||
Prefix: "js",
|
||||
Private: true,
|
||||
Files: []string{`js/helpers.js`},
|
||||
}
|
||||
embed.Run(conf)
|
||||
}
|
Reference in New Issue
Block a user