nx generate @code-pushup/nx-plugin:configuration
By default, the Nx plugin will search for existing configuration files. If they are not present it creates a code-pushup.config.ts and adds a target to your project.json file.
You can specify the project explicitly as follows:
nx g @code-pushup/nx-plugin:configuration <project-name>
Root/
├── project-name/
│ ├── project.json 👈 updated
│ ├── code-pushup.config.ts 👈 generated
│ └── ...
└── ...
Show what will be generated without writing to disk:
nx g configuration ... --dry-run
| Name | type | description |
|---|---|---|
| --project | string (REQUIRED) |
The name of the project. |
| --targetName | string (DEFAULT 'code-pushup') |
The id used to identify a target in your project.json. |
| --bin | string |
Path to Code PushUp CLI |
| --skipProject | boolean (DEFAULT false) |
Skip adding the target to project.json. |
| --skipConfig | boolean (DEFAULT false) |
Skip adding the code-pushup.config.ts to project root. |