ionic-team / ionic-team/ionic-cli
Configure skip-test globally on angular.json is not working for service
- 主要語言
- TypeScript
- 星號
- 2k
- 分支
- 682
- PR 合併指標
- 30 天內沒有已合併 PR
描述
Hi,
_CLI_
`ionic g service core/services/utils/storage `
_angular.json_
```
"@ionic/angular-toolkit:service": {
"skip-test": true
}
```
and tried this too:
```
"@ionic/angular-toolkit:service": {
"spec": false
}
```
But still above CLI generates `spec` file.
If I use this CLI then it works without `spec` file
`ionic g service core/services/utils/toast --skipTests=true`
So how to configure this feature globally using `angular.json`?
Ionic:
Ionic CLI : 6.9.2 (C:\Users\Sampath\AppData\Roaming\npm\node_modules\@ionic\cli)
Ionic Framework : @ionic/angular 5.3.3
@angular-devkit/build-angular : 0.1001.2
@angular-devkit/schematics : 10.0.8
@angular/cli : 10.1.2
@ionic/angular-toolkit : 2.3.3
Capacitor:
Capacitor CLI : 2.4.1
@capacitor/core : 2.4.1
Utility:
cordova-res : 0.14.0
native-run (update available: 0.3.0) : 0.2.5
System:
NodeJS : v12.13.1 (C:\Program Files\nodejs\node.exe)
npm : 6.12.1
OS : Windows 10
貢獻指南
研究方向
Reproduce the service-generation commands shown in the issue with the angular.json configurations and compare the generated files. Start from the Ionic CLI service generator and Angular schematics configuration handling; done means the global setting prevents the service spec file while the explicit skip-tests option continues to work.
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- angular, typescript
- 領域
- cli
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100