Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Node.js generator: package type option #11

Open
UltCombo opened this issue Jan 25, 2015 · 3 comments
Open

Node.js generator: package type option #11

UltCombo opened this issue Jan 25, 2015 · 3 comments

Comments

@UltCombo
Copy link
Member

The choices would be:

  • CLI: sets preferGlobal and bin fields in package.json
  • Library/framework/upstream package
  • Root
  • CLI and API

Though, this might be overcomplicating the issue, I guess a simple "Does this package include a CLI program?" boolean prompt could suffice.

@jaydson
Copy link

jaydson commented Jan 26, 2015

Yeah, let's keep it simple by now.
In the feature we can (maybe) provide more options.

@UltCombo UltCombo added the P3 label Feb 1, 2015
@UltCombo
Copy link
Member Author

UltCombo commented Feb 1, 2015

Had another idea:

Currently we have a "preferred flags" prompt, if the user input matches /\b-g|--global\b/ then we set preferGlobal: true.
Then in another question we ask what kind of Node package is it, this would be a radio selection of API, CLI or both. Or perhaps two checkboxes would be okay too.

Anyway this is low priority, I'll publish slush-es20xx 1.0.0 without this feature.

@UltCombo
Copy link
Member Author

I guess this options set would be more useful to end-users:

  • Node.js server (express back-end + front-end)
  • Just front-end
  • Node.js package (API and/or CLI)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants