You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 26, 2022. It is now read-only.
If you have a directory, with say templates/{index.js,test.js}.hbs - and run the action addMany, could that potentially support an additional property to drop of a file extension?
as in:
module.exports=function(plop){plop.setGenerator('component',{description: 'Generate a new component',prompts: [{type: 'input',name: 'name',message: 'component name?',},],actions(){return[{type: 'addMany',destination: 'lib/components/{{ pascalCase name }}.{{ ext }}',base: 'templates/component/',ext: 'without-hbs',// or 'as-is', or ext(incomingFile:string): stringtemplateFiles: 'templates/component/**/*',},];},});};
If you have a directory, with say
templates/{index.js,test.js}.hbs- and run the actionaddMany, could that potentially support an additional property to drop of a file extension?as in: