Jack Hsu a2fbc47c13 feat(react): improve lib schematic by replacing parentRoute with appProject option
- Instead of providing full path to app component, just pass the project's name.
- Updates both app.tsx and main.tsx so user no longer need to do any maual updates.
2019-08-14 18:10:51 -04:00

91 lines
973 B
Markdown

# library
Create a library
## Usage
```bash
ng generate library ...
```
## Options
### appProject
Type: `string`
The application project to add the library route to
### directory
Type: `string`
A directory where the app is placed
### linter
Default: `tslint`
Type: `string`
The tool to use for running lint checks.
### name
Type: `string`
Library name
### pascalCaseFiles
Default: `false`
Type: `boolean`
Use pascal case component file name (e.g. App.tsx)®
### routing
Type: `boolean`
Generate library with routes
### skipFormat
Default: `false`
Type: `boolean`
Skip formatting files
### skipTsConfig
Default: `false`
Type: `boolean`
Do not update tsconfig.json for development experience.
### style
Default: `css`
Type: `string`
The file extension to be used for style files.
### tags
Type: `string`
Add tags to the library (used for linting)
### unitTestRunner
Default: `jest`
Type: `string`
Test runner to use for unit tests