diff --git a/generators/assets/standard/standard.go b/generators/assets/standard/standard.go index b680c96cb..406564100 100644 --- a/generators/assets/standard/standard.go +++ b/generators/assets/standard/standard.go @@ -15,7 +15,7 @@ var logo = &makr.RemoteFile{ // Run standard assets generator for those wishing to not use webpack func Run(root string, data makr.Data) error { - files, err := generators.FindByBox(packr.NewBox("./templates")) + files, err := generators.FindByBox(packr.NewBox("../standard/templates")) if err != nil { return errors.WithStack(err) } diff --git a/generators/assets/webpack/webpack.go b/generators/assets/webpack/webpack.go index dff34f257..dae6a24d2 100644 --- a/generators/assets/webpack/webpack.go +++ b/generators/assets/webpack/webpack.go @@ -45,7 +45,7 @@ func (w Generator) Run(root string, data makr.Data) error { g.Add(logo) - files, err := generators.FindByBox(packr.NewBox("./templates")) + files, err := generators.FindByBox(packr.NewBox("../webpack/templates")) if err != nil { return errors.WithStack(err) } diff --git a/generators/mail/mail.go b/generators/mail/mail.go index 8aff45ad0..7cf6cb0a8 100644 --- a/generators/mail/mail.go +++ b/generators/mail/mail.go @@ -37,7 +37,7 @@ func (d Generator) Run(root string, data makr.Data) error { } func (d Generator) initGenerator(data makr.Data) error { - files, err := generators.FindByBox(packr.NewBox("./init/templates")) + files, err := generators.FindByBox(packr.NewBox("../mail/init/templates")) if err != nil { return errors.WithStack(err) } diff --git a/generators/newapp/new.go b/generators/newapp/new.go index 227a32a67..e9059aee3 100644 --- a/generators/newapp/new.go +++ b/generators/newapp/new.go @@ -37,7 +37,7 @@ func (a Generator) Run(root string, data makr.Data) error { } g.Add(makr.NewCommand(makr.GoGet("github.com/motemen/gore", "-u"))) - files, err := generators.FindByBox(packr.NewBox("./templates")) + files, err := generators.FindByBox(packr.NewBox("../newapp/templates")) if err != nil { return errors.WithStack(err) } diff --git a/generators/refresh/refresh.go b/generators/refresh/refresh.go index ab9ea08d3..ccc92a123 100644 --- a/generators/refresh/refresh.go +++ b/generators/refresh/refresh.go @@ -11,7 +11,7 @@ import ( func Run(root string, data makr.Data) error { g := makr.New() - files, err := generators.FindByBox(packr.NewBox("./templates")) + files, err := generators.FindByBox(packr.NewBox("../refresh/templates")) if err != nil { return errors.WithStack(err) } diff --git a/generators/resource/resource.go b/generators/resource/resource.go index eb2a5a213..5a4fa3d16 100644 --- a/generators/resource/resource.go +++ b/generators/resource/resource.go @@ -30,7 +30,7 @@ func (res Generator) Run(root string, data makr.Data) error { tmplName = "resource-name" } - files, err := generators.FindByBox(packr.NewBox("./templates")) + files, err := generators.FindByBox(packr.NewBox("../resource/templates")) if err != nil { return errors.WithStack(err) }