nx/docs/api-react/schematics/application.md
Jack Hsu 57fe219c03 feat(react): add routing support to react app, lib, and component schematics
* `--routing` for app, lib, component generates component with default
  `<Route>` and `<Link>`

* `--parentRoute` for feature lib adds its routes to the specified
  component (by path)
2019-05-31 12:54:57 -04:00

939 B

application

Create an application

Usage

ng generate application ...

Options

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

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

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