{"repo":"fabiospampinato/template","free":true,"listed":false,"github":"https://github.com/fabiospampinato/template","clone":"git clone https://github.com/fabiospampinato/template.git","description":"A super-simple way to create new projects based on templates.","language":"TypeScript","stars":151,"topics":["template","scaffold","handlebars","cli","simple","picolate"],"license":"MIT","category":"cli-tools","readme_excerpt":"A super-simple way to create new projects based on templates. A list of known active templates for this program can be found here. Install Usage https://github.com/fabiospampinato/template/assets/1812093/4c53bf75-eb08-49c2-8b7f-8dae6dfa04eb Overview At a high level a template looks like this: 1. A template is just a folder installed locally simply by git clone -ing it into /.templates , or you can copy it manually there. 2. Each template has a folder named \"template\" inside it, which is what will be used for creating projects. 3. Each template has a \"template.json\" file inside it, which lists all variables used by files inside the \"template\" folder. 4. Each template may optionally have a folder named \"hooks\" inside it, containing files that will be executed at the appropriate times. When creating a project from a template this happens: 1. The user is asked to provide a value for each variable listed by the template inside its \"template.json\" file. 2. The entire \"template\" folder inside the template is duplicated. 3. Each non-binary file inside this folder is rendered with picolate using the provided variables. 4. All rendered and binary files are copied in a newly created folder that has the name of the project you want to create. 5. The postinstall hook, if present, is executed. 6. That's it. Command Line Interface The following commands are available: Template Folder As mentioned in the \"Overview\" section a template must have this structure on disk: - You can put any files ","default_branch":null,"files":null,"tree":[],"storefront":"/r/fabiospampinato","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/fabiospampinato/template/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}