Craigory V Coppola a1ccc87a07
docs(misc): documentation headers should include collectionName for searchability (#6451)
Signed-off-by: AgentEnder <craigorycoppola@gmail.com>
2021-07-21 11:40:59 -04:00

851 B

@nrwl/angular:web-worker

Creates a Web Worker.

Usage

nx generate web-worker ...

By default, Nx will search for web-worker in the default collection provisioned in workspace.json.

You can specify the collection explicitly as follows:

nx g @nrwl/angular:web-worker ...

Show what will be generated without writing to disk:

nx g web-worker ... --dry-run

Options

name (required)

Type: string

The name of the worker.

project (required)

Type: string

The name of the project.

path

Type: string

The path at which to create the worker file, relative to the current workspace.

skipFormat

Default: false

Type: boolean

Skip formatting files.

snippet

Default: true

Type: boolean

Add a worker creation snippet in a sibling file of the same name.