Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

fixed generators to work with v1 of packr #891

Merged
merged 1 commit into from
Jan 31, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion generators/assets/standard/standard.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
2 changes: 1 addition & 1 deletion generators/assets/webpack/webpack.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
2 changes: 1 addition & 1 deletion generators/mail/mail.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
2 changes: 1 addition & 1 deletion generators/newapp/new.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
2 changes: 1 addition & 1 deletion generators/refresh/refresh.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
2 changes: 1 addition & 1 deletion generators/resource/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down