nx/docs/api-react/schematics/application.md
Jack Hsu a9a1f669d7
feat(react): update workspace defaults based on app schematic option (#1726)
The defaults make it easier to generate other apps/libs/components later.
An option `skipWorkspaceJson` can be used to skip updates entirely.
2019-08-14 23:21:44 -04:00

109 lines
1.3 KiB
Markdown

# application
Create an application
## Usage
```bash
ng generate application ...
```
## Options
### babel
Default: `false`
Type: `boolean`
Use Babel and TypeScript preset instead of ts-loader (Useful if you need Babel plugins)
### classComponent
Default: `false`
Type: `boolean`
Use class components instead of functional component
### directory
Type: `string`
The directory of the new application.
### e2eTestRunner
Default: `cypress`
Type: `string`
Test runner to use for end to end (e2e) tests
### linter
Default: `tslint`
Type: `string`
The tool to use for running lint checks.
### name
Type: `string`
The name of the application.
### pascalCaseFiles
Default: `false`
Type: `boolean`
Use pascal case component file name (e.g. App.tsx)
### routing
Type: `boolean`
Generate application with routes
### skipFormat
Default: `false`
Type: `boolean`
Skip formatting files
### skipWorkspaceJson
Default: `false`
Type: `boolean`
Skip updating workspace.json with default schematic options based on values provided to this app (e.g. babel, style)
### style
Default: `css`
Type: `string`
The file extension to be used for style files.
### tags
Type: `string`
Add tags to the application (used for linting)
### unitTestRunner
Default: `jest`
Type: `string`
Test runner to use for unit tests