Interface: ProjectConfiguration
Project configuration
Table of contents
Properties
- generators: Object
- implicitDependencies: string[]
- metadata: Object
- name: string
- namedInputs: Object
- projectType: ProjectType
- release: Object
- root: string
- sourceRoot: string
- tags: string[]
- targets: Object
Properties
generators
• Optional
generators: Object
List of default values used by generators.
These defaults are project specific.
Example:
1{
2 "@nx/react": {
3 "library": {
4 "style": "scss"
5 }
6 }
7}
8
Index signature
▪ [collectionName: string
]: { [generatorName: string]
: any
; }
implicitDependencies
• Optional
implicitDependencies: string
[]
List of projects which are added as a dependency
metadata
• Optional
metadata: Object
Type declaration
Name | Type |
---|---|
targetGroups? | Record <string , string []> |
technologies? | string [] |
name
• Optional
name: string
Project's name. Optional if specified in workspace.json
namedInputs
• Optional
namedInputs: Object
Named inputs targets can refer to reduce duplication
Index signature
▪ [inputName: string
]: (string
| InputDefinition
)[]
projectType
• Optional
projectType: ProjectType
Project type
release
• Optional
release: Object
Project specific configuration for nx release
Type declaration
Name | Type |
---|---|
version? | Pick <NxReleaseVersionConfiguration , "generator" | "generatorOptions" > |
root
• root: string
Project's location relative to the root of the workspace
sourceRoot
• Optional
sourceRoot: string
The location of project's sources relative to the root of the workspace
tags
• Optional
tags: string
[]
List of tags used by enforce-module-boundaries / project graph
targets
• Optional
targets: Object
Project's targets
Index signature
▪ [targetName: string
]: TargetConfiguration