2017-01-12 22:20:37 +08:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
2017-09-15 04:13:17 +08:00
|
|
|
"log"
|
|
|
|
|
2017-01-12 22:20:37 +08:00
|
|
|
"github.com/mjibson/esc/embed"
|
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
conf := &embed.Config{
|
|
|
|
ModTime: "0",
|
2017-05-26 02:25:39 +08:00
|
|
|
OutputFile: "pkg/js/static.go",
|
2017-01-12 22:20:37 +08:00
|
|
|
Package: "js",
|
2017-05-26 02:25:39 +08:00
|
|
|
Prefix: "pkg/js",
|
2017-01-12 22:20:37 +08:00
|
|
|
Private: true,
|
2017-05-26 02:25:39 +08:00
|
|
|
Files: []string{`pkg/js/helpers.js`},
|
2017-01-12 22:20:37 +08:00
|
|
|
}
|
|
|
|
embed.Run(conf)
|
2017-09-15 04:13:17 +08:00
|
|
|
|
|
|
|
if err := generateFeatureMatrix(); err != nil {
|
|
|
|
log.Fatal(err)
|
|
|
|
}
|
2017-01-12 22:20:37 +08:00
|
|
|
}
|