问题描述
我想创建自定义集合,以便为我的 Angular 项目轻松生成库或组件。
NX 插件:
所以我将 @test/angular:component
添加到我的 angular.json
但它没有出现在我的 nx 插件中
angular.json
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json","version": 1,"newProjectRoot": "","projects": {...},"defaultProject": "nida-web","schematics": {
"@schematics/angular:component": {
"changeDetection": "Default","export": false,"flat": false,"inlinestyle": false,"inlineTemplate": false,"module": "","prefix": "","skipImport": false,"spec": true,"styleext": "scss","viewEncapsulation": "Emulated"
},"@schematics/angular:module": {
"commonModule": true,"routing": false,"routingScope": "Child","spec": true
},"@schematics/angular:service": {
"flat": true,"@schematics/angular:pipe": {
"export": false,"flat": true,"@schematics/angular:directive": {
"export": false,"prefix": "app","selector": "","@schematics/angular:class": {
"spec": true
},"@nrwl/angular:application": {
"style": "scss","linter": "eslint","unitTestRunner": "jest"
},"@nrwl/angular:library": {
"style": "scss","@nrwl/angular:component": {
"style": "scss"
},"@test/angular:component": {
"style": "scss"
}
},"cli": {
"analytics": false,"defaultCollection": "@nrwl/angular"
}
}
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)