node.js - Can I have per-project Yeoman generators? -


i have node project , wanted make custom generator of components specific project.

i got working creating generator separate package, that's inconvenient - have manage versioning of 2 packages instead of one, , rely on yarn link development.

my-project/     src/         ...     package.json         {                ...             "devdependencies": {                 "my-project-generator": "file:../my-project-generator"             ]         } my-project-generator/     generators/         ...     package.json         {             ...             "keywords": ["yeoman-generator"]         } 

is there way keep generator inside project itself? tried yo didn't discover generator.

my-project/     src/         ...     generators/         ...     package.json         {                "keywords": ["yeoman-generator"]             ...         } 

following issue run generators file path

yo ./generators/path/to/local/file.js 

Comments

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

transpose - Maple isnt executing function but prints function term -