{
"kind": "template",
"name": "typescript",
"version": "1.0.0",
"description": "",
"visible": true,
"extend": [""],
"exclude": [""],
"scripts": {
"before_install": "",
"after_install": ""
},
"renderer": {
"exclude": [""],
"values": [
{
"key": "repositoryName",
"label": "repository name",
"default": "tpoe-{{name}}",
"required": false
}
]
},
"note": "cd {{name}}\ncode ."
}
Templates can extend other templates. Add the name of the templates you want to extend in the extend array in the meta.json
. The extended templates are copied
on by on in the same direction
they are added
in the `meta.json.
List of filenames to exclude from the template.
Scipts are executed before or after the installation of the template.
Placeholders can be used in each file, filename and folder name of your template. During the initlialization the placeholders are replaced by the actual values. At the moment following placeholders are supported:
- {{name}}
- {{repository}}
- {{username}} // fetched from global git config
- {{email}} // fetched from global git config
Transformation methods can be used to transform input variables. Just add the method before the actual value in the placeholder {{camelcase name}} or {{constantcase name}}
Available methods:
- camelcase: camelCase
- constantcase: CONSTANT_CASE
- kebabcase: kebab-case
- lowercase: lowercase
- pascalcase: PascalCase
- snakecase: snake_case
- uppercase: UPPERCASE
List of filenames to exclude from rendering process.
For all values in this array the user will be asked to provide additional informations. This values can than be used like the default placeholders. With following syntax:
{{values.<key>}}
Note that is displayed after initializing a new workspace.
- Thomas Pöhlmann (@perryrh0dan)