You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
1.1 KiB
21 lines
1.1 KiB
/**
|
|
* Takes in a file path in the `./templates` directory. Copies that
|
|
* file to the destination, with the `.tpl` extension stripped.
|
|
*
|
|
* @param {Generator} generator A Yeoman Generator instance
|
|
* @param {string} templateDir Absolute path to template directory
|
|
* @returns {Function} A curried function that takes a file path and copies it
|
|
*/
|
|
export declare const generatorCopy: (generator: any, templateDir: string) => (filePath: string) => void;
|
|
/**
|
|
* Takes in a file path in the `./templates` directory. Copies that
|
|
* file to the destination, with the `.tpl` extension and `_` prefix
|
|
* stripped. Passes `this.props` to the template.
|
|
*
|
|
* @param {Generator} generator A Yeoman Generator instance
|
|
* @param {string} templateDir Absolute path to template directory
|
|
* @param {any} templateData An object containing the data passed to
|
|
* the template files.
|
|
* @returns {Function} A curried function that takes a file path and copies it
|
|
*/
|
|
export declare const generatorCopyTpl: (generator: any, templateDir: string, templateData: object) => (filePath: string) => void;
|
|
|