Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Best practice to extend a generator #399

Closed
gpietro opened this issue Dec 17, 2018 · 1 comment
Closed

Best practice to extend a generator #399

gpietro opened this issue Dec 17, 2018 · 1 comment

Comments

@gpietro
Copy link

gpietro commented Dec 17, 2018

Hi,
I would like to extend the service generator by adding custom content to the file and use the feathers-cli package to run the command.
There is a best way to do this than forking both projects (generator-feathers and feathers-cli)?
Thanks.

@daffl
Copy link
Member

daffl commented Dec 17, 2018

There is currently no way to run the feathersjs/cli with a different generator but it is really just a very small wrapper around Yeoman. So the steps for a custom generator would be

  • Fork this repository
  • Make your changes
  • Publish it (under your namespace) or run npm link
  • npm install yo -g
  • yo and this generator should show up in the list

@gpietro gpietro closed this as completed Dec 17, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants