A function that generates boilerplate code into a given directory.
Store boilerplate template modules in seperate folders within a templates folder. This templates folder may, in the future, be ignored as templates might be made by third parties and accessed from seperate git repos, etc.
Within a boilerplate module there would be a folder which stores the actual template files as well as a questions.{js,json} file. Solis would open the module, parse the questions in the questions file through inquirer.js (asking the users for config values) and then use the answers to those questions to render the template files. The rendered template files would then be copied to the destination folder.
A function that generates boilerplate code into a given directory.
Store boilerplate template modules in seperate folders within a
templates
folder. This templates folder may, in the future, be ignored as templates might be made by third parties and accessed from seperate git repos, etc.Within a boilerplate module there would be a folder which stores the actual template files as well as a
questions.{js,json}
file. Solis would open the module, parse the questions in the questions file throughinquirer.js
(asking the users for config values) and then use the answers to those questions to render the template files. The rendered template files would then be copied to the destination folder.Example templates folder structure