Skip to content

fix(gen): expose skip-install option and improve usage docs #1253

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

Merged
merged 1 commit into from
Sep 6, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 21 additions & 2 deletions app/USAGE
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
Description:
Creates an full-stack AngularJS + Node app
Creates a Full-Stack AngularJS + Node app

Example:
yo angular-fullstack
yo angular-fullstack

Sub Generators:

Server Side:
angular-fullstack:endpoint

Client Side:
angular-fullstack:route
angular-fullstack:controller
angular-fullstack:filter
angular-fullstack:directive
angular-fullstack:service
angular-fullstack:provider
angular-fullstack:factory
angular-fullstack:decorator

Deployment:
angular-fullstack:openshift
angular-fullstack:heroku
7 changes: 6 additions & 1 deletion app/generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,15 @@ export default class Generator extends Base {

this.argument('name', { type: String, required: false });

this.option('skip-install', {
desc: 'Do not install dependencies',
type: Boolean,
defaults: false
});

this.option('app-suffix', {
desc: 'Allow a custom suffix to be added to the module name',
type: String,
required: 'false',
defaults: 'App'
});
}
Expand Down
30 changes: 30 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,21 @@ Available generators:
### App
Sets up a new AngularJS + Express app, generating all the boilerplate you need to get started.

Usage:
```bash
Usage:
yo angular-fullstack:app [options] [<name>]

Options:
-h, --help # Print the generator's options and usage
--skip-cache # Do not remember prompt answers Default: false
--skip-install # Do not install dependencies Default: false
--app-suffix # Allow a custom suffix to be added to the module name Default: App

Arguments:
name Type: String Required: false
```

Example:
```bash
yo angular-fullstack
Expand All @@ -92,6 +107,21 @@ yo angular-fullstack
### Endpoint
Generates a new API endpoint.

Usage:
```bash
Usage:
yo angular-fullstack:endpoint [options] <name>

Options:
-h, --help # Print the generator's options and usage
--skip-cache # Do not remember prompt answers Default: false
--route # URL for the endpoint
--models # Specify which model(s) to use
--endpointDirectory # Parent directory for enpoints

Arguments:
name Type: String Required: true
```

Example:
```bash
Expand Down