Jack Hsu 0923dab318 feat(react): adds and updates React schematics with more options
- Added component schematic that adds to existing project.
    * Supports CSS-in-JS styles, functional components, etc.
- Lib and app schematics now support new style, funtional components options (same as component)
2019-05-22 17:06:46 -04:00

739 B

library

Create a library

Usage

ng generate library ...

Options

directory

Type: string

A directory where the app is placed

name

Type: string

Library name

pascalCaseFiles

Default: false

Type: boolean

Use pascal case component file name (e.g. App.tsx)®

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