gluegun
gluegun copied to clipboard
Template not found
Describe the bug After installing my CLI in a project, i try to run the command generate, but i get the error "template not found (path of the template file) I'm using the default Gluegun folder structure and didn't remove any core file. Only created a simple command an three templates.
To Reproduce Steps to reproduce the behavior:
- Create a CLI that creates files with command generate
- Publish the code in npm
- Install your CLI in any other project
- Run the CLI with the generate command
- See error
Expected behavior Expect CLI to generate a folder and 3 simple files
- OS: Linux (Gitpod)
- Gluegun Version [e.g. 5.1.2]
Looks like the path is looking for build/build/templates
instead of build/templates
this seems to occur when running toolbox.template.generate()
and occurred for me when trying to modify the file path (target) using slice
rather than replace
. Changing back to using replace
seemed to resolve the issue. Nevertheless, very odd behavior.