Array of path-strings that are resolved relative to the base app
directory.
['http', 'controllers']
['units']
Brief description of the template displayed on the --help page for the TemplateDirective. Should be brief (1 sentence).
The suffix of the file generated by this template.
.mytemplate.ts
.controller.ts
The name of the template as it will be specified from the command line.
If this is 'mytemplate'
, then the template will be created with:
./ex new mytemplate some:path
Render the given template to a string which will be written to the file.
Note: this method should NOT write the contents to targetFilePath
.
If the user enters:
./ex new mytemplate path:to:NewInstance
Then, the following params are:
{
name: 'NewInstance',
fullCanonicalPath: 'path:to:NewInstance',
targetFilePath: UniversalPath { }
}
the singular name of the resource
the full canonical name of the resource
the UniversalPath where the file will be written
Interface defining a template that can be generated using the TemplateDirective.