nx/docs/api-schematics/application.md
2019-03-02 12:03:30 -05:00

31 lines
1.9 KiB
Markdown

# application
Create an application
## Usage
```bash
ng generate application ...
```
### Options
| Name | Alias | Description | Type | Default value |
| ------------------- | ----- | ------------------------------------------------- | ------- | ------------- |
| `prefix` | p | The prefix to apply to generated selectors. | string | `undefined` |
| `framework` | | The Framework for the application. | string | `angular` |
| `directory` | | The directory of the new application. | string | `undefined` |
| `inlineStyle` | s | Specifies if the style will be in the ts file. | boolean | `false` |
| `inlineTemplate` | t | Specifies if the template will be in the ts file. | boolean | `false` |
| `viewEncapsulation` | | Specifies the view encapsulation strategy. | string | `undefined` |
| `routing` | | Generates a routing module. | boolean | `false` |
| `name` | | The name of the application. | string | `undefined` |
| `style` | | The file extension to be used for style files. | string | `css` |
| `skipTests` | S | Skip creating spec files. | boolean | `false` |
| `skipFormat` | | Skip formatting files | boolean | `false` |
| `skipPackageJson` | | Do not add dependencies to package.json. | boolean | `false` |
| `unitTestRunner` | | Test runner to use for unit tests | string | `jest` |
| `e2eTestRunner` | | Test runner to use for end to end (e2e) tests | string | `cypress` |
| `tags` | | Add tags to the application (used for linting) | string | `undefined` |