Right now, init templates can't be used in a "standalone" way, that is, if I am creating a template in a repo like this
my-proj-repo
├── README.md
├── my-proj
│ └── root
│ ├── Gruntfile.js
│ └── js
│ └── main.js
└── my-proj.js
I can't just include it in ~/.grunt-init/
, because the template dir and the template.js have to be in the top level of the directory
I am proposing the following workflow
cd ~/.grunt-init
git clone https://github.com/myorg/my-proj-repo
cd ~/projects/newone
grunt-init my-proj-repo
However, there's still a bit of redundancy in the repo at that point. Perhaps, at that point, a structure like
my-init-template
├── README.md
├── template
│ ├── Gruntfile.js
│ └── js
│ └── main.js
└── template.js
(renaming the root
dir to template
dir, and the arbitrarily named .js file to simply template.js
)
would make sense, and then people could simply clone my-init-template into ~/.grunt-init
, and invoke it however they named that clone.
Thoughts