Forge
Plugins

Conformance

Plugin for workspace conformance rules

@bjb-forge/nx-conformance-project

Installation

npx forge add @bjb-forge/nx-conformance-project

Plugin Options

{
  "plugin": "@bjb-forge/nx-conformance-project/nx-plugin",
  "options": {}
}
OptionTypeDescription
assetsarrayAssets 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 js project for JB.

nx g @bjb-forge/nx-conformance-project:conformance-project [options]
OptionTypeRequiredDefaultDescription
directorystringYes-A directory where the project is placed.
scopestringNoforgeImport Path Scope

conformance-rule

Create a conformance rule in a plugin

nx g @bjb-forge/nx-conformance-project:conformance-rule [options]
OptionTypeRequiredDefaultDescription
directorystringYes-A directory of the plugin project.
e2eDirectorystringYes-A directory of the e2e plugin project.

On this page