nx g @nx/react:lib shared/ui Custom generators can be created in tools/generators . Use tags in project.json :
"tags": ["scope:shared", "type:ui"] Define boundaries in .eslintrc.json : nx g @nx/react:lib shared/ui Custom generators can be
"rules": "@nx/enforce-module-boundaries": ["error", "depConstraints": [ "sourceTag": "scope:app", "onlyDependOnLibsWithTags": ["scope:shared", "scope:app"] ] ] "depConstraints": [ "sourceTag": "scope:app"
nx list Example: generate a React component library nx g @nx/react:lib shared/ui Custom generators can be