remove concept of prod and dev assets

instead always do the "prod" thing, but use entr for restarting the
server for all assets
This commit is contained in:
sentriz
2019-07-08 13:36:26 +01:00
parent b44b0d8720
commit ba2f835c22
11 changed files with 59 additions and 106 deletions

View File

@@ -21,7 +21,7 @@ const (
fileHeader = `// file generated with embed tool
// do not edit
// +build %s
// %s
package %s
import "time"
@@ -82,6 +82,9 @@ func processAssets(c *config, files []string) error {
if err != nil {
return errors.Wrap(err, "creating out path")
}
if c.tagList != "" {
c.tagList = fmt.Sprintf("+build %s", c.tagList)
}
outWriter.Write([]byte(fmt.Sprintf(fileHeader,
c.tagList,
c.packageName,