Skip to content

Commit

Permalink
fix(cli): remove skipTests from generating module (#1616)
Browse files Browse the repository at this point in the history
Co-authored-by: diye <diyews@users.noreply.github.com>
  • Loading branch information
diyews and diyews authored Jul 20, 2023
1 parent 8446da6 commit 0da83f8
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 26 deletions.
6 changes: 2 additions & 4 deletions schematics/application/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,7 @@ function addSchematics(options: ApplicationOptions): Rule {
const p = getProjectFromWorkspace(workspace, options.project);
const schematics = p.extensions.schematics;
schematics['ng-alain:module'] = {
routing: true,
skipTests: false
routing: true
};
schematics['ng-alain:list'] = {
skipTests: false
Expand All @@ -221,8 +220,7 @@ function addSchematics(options: ApplicationOptions): Rule {
skipTests: false
};
schematics['@schematics/angular:module'] = {
routing: true,
skipTests: false
routing: true
};
schematics['@schematics/angular:component'] = {
skipTests: false,
Expand Down
20 changes: 9 additions & 11 deletions schematics/docs/default.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,38 +13,36 @@ However, parameters can be preset via `angular.json`.
{
"schematics": {
"ng-alain:module": {
"routing": true,
"spec": false
"routing": true
},
"ng-alain:list": {
"spec": false
"skipTests": false
},
"ng-alain:edit": {
"spec": false,
"skipTests": false,
"modal": true
},
"ng-alain:view": {
"spec": false,
"skipTests": false,
"modal": true
},
"ng-alain:curd": {
"spec": false
"skipTests": false
},
"@schematics/angular:module": {
"routing": true,
"spec": false
"routing": true
},
"@schematics/angular:component": {
"spec": false,
"skipTests": false,
"flat": false,
"inlineStyle": true,
"inlineTemplate": false
},
"@schematics/angular:directive": {
"spec": false
"skipTests": false
},
"@schematics/angular:service": {
"spec": false
"skipTests": false
}
}
}
Expand Down
20 changes: 9 additions & 11 deletions schematics/docs/default.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,38 +15,36 @@ ng-alain 提供诸多生成模块、页模板,但实际上继承了原生 Angu
{
"schematics": {
"ng-alain:module": {
"routing": true,
"spec": false
"routing": true
},
"ng-alain:list": {
"spec": false
"skipTests": false
},
"ng-alain:edit": {
"spec": false,
"skipTests": false,
"modal": true
},
"ng-alain:view": {
"spec": false,
"skipTests": false,
"modal": true
},
"ng-alain:curd": {
"spec": false
"skipTests": false
},
"@schematics/angular:module": {
"routing": true,
"spec": false
"routing": true
},
"@schematics/angular:component": {
"spec": false,
"skipTests": false,
"flat": false,
"inlineStyle": true,
"inlineTemplate": false
},
"@schematics/angular:directive": {
"spec": false
"skipTests": false
},
"@schematics/angular:service": {
"spec": false
"skipTests": false
}
}
}
Expand Down

0 comments on commit 0da83f8

Please sign in to comment.