Plugins
Conformance
Plugin for workspace conformance rules
@bjb-forge/nx-conformance-project
Installation
npx @bjb-forge/cli add @bjb-forge/nx-conformance-projectPlugin Options
{
"plugin": "@bjb-forge/nx-conformance-project/nx-plugin",
"options": {}
}| Option | Type | Description |
|---|---|---|
assets | array | Assets to copy during conformance sync |
Inferred Targets
build
Compiles the conformance package using TypeScript.
Condition: Conformance projects with a package.json
lint
Runs ESLint to check code quality.
Condition: Conformance projects with a package.json
test
Runs unit tests using Jest.
Condition: Conformance projects with a package.json
Generators
conformance-project
Create a conformance project.
nx g @bjb-forge/nx-conformance-project:conformance-project [options]| Option | Type | Required | Default | Description |
|---|---|---|---|---|
directory | string | Yes | - | A directory where the project is placed |
scope | string | No | forge | Import path scope |
conformance-rule
Create a conformance rule.
nx g @bjb-forge/nx-conformance-project:conformance-rule [options]| Option | Type | Required | Default | Description |
|---|---|---|---|---|
directory | string | Yes | - | A directory of the plugin project |
e2eDirectory | string | Yes | - | A directory of the e2e plugin project |