@nx/playwright:init

Initializes a Playwright project in the current workspace.

Usage

nx generate init ...

By default, Nx will search for init in the default collection provisioned in workspace.json.

You can specify the collection explicitly as follows:

nx g @nx/playwright:init ...
Nx 15 and lower use @nrwl/ instead of @nx/

Show what will be generated without writing to disk:

nx g init ... --dry-run

Options

skipFormat

boolean
Default: false

Skip formatting files.

skipPackageJson

boolean
Default: false

Do not add dependencies to package.json.