Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

move the CLI into a yeoman generator #12

Open
jonschlinkert opened this issue Mar 29, 2014 · 1 comment
Open

move the CLI into a yeoman generator #12

jonschlinkert opened this issue Mar 29, 2014 · 1 comment
Labels

Comments

@jonschlinkert
Copy link
Owner

This will allow users and implementors to get what they want from this lib.

  • make the logic in normalize-pkg more granular. e.g instead of adding flags for everything we can just expose an API for, say, normalizing from a string to an object, or vice versa
  • move the opinions to the generator and subgenerators
  • out of the box, the generator can create a new package.json using yo pkg
  • If a package.json already exists, the generator will normalize it using some agreed upon defaults

Subgenerators

Subgenerators will make it easy to generate a package.json that follows whatever standards you want. E.g. to generate a package.json that strictly adheres to npm standards, you would use the strict subgenerator with yo pkg:strict.

@jonschlinkert
Copy link
Owner Author

cc @pdehaan

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant