简体   繁体   中英

Including custom Yeoman generators in project

I'm working on a project with some private repos and have some Yeoman generators (and sub generators) set up locally. How do I include these as part of the project without publishing them to npm ?

I'd ideally like to have a way for me to do this without having to do the whole npm link thing so if it was something that could go into the project's package.json file that installed the generator locally when running npm install it would be ideal.

You can specify a git repo as a dependency (You know, your yeoman generator)

https://npmjs.org/doc/json.html#dependencies

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM