Skip to content

Conversation

mhartington
Copy link
Contributor

Adds module and no-module flags to the CLI

Requires ionic-team/ionic-app-scripts#1141 to be merged first

switch (type) {
case 'page':
await AppScripts.processPageRequest(context, name);
await AppScripts.processPageRequest(context, name, includeNgModule, includePageConstants);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe move the options into an object? I can imagine there being a lot more than 2 options for generators. We probably don't want 10+ positional args, especially cross-library.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense

description: 'The name of the component being generated',
}
],
options: [
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can provide examples of these options using the exampleCommands list above.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is done

@imhoffd imhoffd merged commit 07d2c7f into master Jul 25, 2017
@imhoffd imhoffd deleted the wip-generators-2 branch July 25, 2017 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants