javascript - Create directories and files from a template for rapid development with node/npm -


i trying setup shortcut generate new components. example if had bunch of react or angular components had particular dir/file structure , included sample code new component. there way node? it's quite time consuming keep adding same directories , files whenever need create new component.

i in convoluted workable way bash , aliasing use node, ie. npm run component mynewcomponent 'mynewcomponent' act function name within mynewcomponent.js file etcetc

i have example directory structure templated somewhere node pick or have hardcoded in node script file itself.

yeoman generators, achieve purely through node/node modules , full control on code output , locations.


Comments

Popular posts from this blog

testing - Detect whether test has failed within fixture -

Android: SharingActionView on swipe from bottom -

AbotX : How do you create a parallel crawler that stays on and can be added to at run time from new requests -