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

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -