Version: Unknown
Last Updated: Unknown
Use this template to generate new basic Lift module templates.
| Variable | Data Type | Info |
|---|---|---|
type | string | The name of the Lift folder type |
pkg | string | The name of the package |
description | string | description of command |
In the folder, you have the following files:
| File | Does |
|---|---|
README.md | Info on this template starter. Will generate nothing. |
[name].md.ejs-template | Will output [name].md.ejs for use. |
[name].ts.ejs-template | Will output [name].ts.ejs for use. |
[pkg].ts.ejs | Will output [pkg].ts to demo template generation. |
README.md.ejs | Will output README.md to demo template generation. |
index.ts.ejs | Will output index.ts to demo template generation. |
1# <%= _.upperFirst(type) %> - <%= _.upperFirst(pkg) %>23Use this template to <%= description %>45## Required67TODO: Update this section89| **Variable** | **Data Type** | **Info** |10| ------------ | ------------- | -------------------------------- |11| `type` | `string` | The name of the Lift folder type |12| `pkg` | `string` | The name of the package |
1# Example scaffold for <%= name %>23## Table45Fields | Value6--- | ---7name | <%= name %>8age | <%= age %>
1/**2 * <%= _.camelCase(name) %> helper function.3 *4 * @returns {void} undefined response5 */6export const <%= _.camelCase(name) %> = (): void => {7 console.log(`Ready for <%= _.camelCase(name) %>`)8}
1/**2 * <%= type %> <%= pkg %> helper function.3 *4 * @returns {void} undefined response5 */6export const <%= _.camelCase(`${type} ${pkg}`) %> = (): void => {7 console.log(`Ready for <%= type %> <%= pkg %>`)8}
1import { <%= _.camelCase(`${type} ${pkg}`) %> } from './<%= pkg %>'23<%= _.camelCase(`${type} ${pkg}`) %>()