我的所有组件遵循相同的结构:
ng g component componentName --skip-import --s true
每次生成组件时,我都会使用这两个标志。我希望能够在不定义标志的情况下进行此操作:
ng g component componentName
我很难确定是否有一个地方可以配置generate
默认值,或者我需要创建自己的模式。有其他人尝试过这样做吗?
我已经尝试查看Angular文档,主要是针对generate
和config
(https://angular.io/cli/config),但我不确定我是否可以这样做。
ng config schematics.@schematics/angular.component.inlineTemplate true
这样的内容? - ABOSappdata/roaming/npm/node_modules/@angular/cli/lib/config/schema.json
。 - Sachin Gupta