Skip to content

Commit 023e8f4

Browse files
amcdnltinayuangao
authored andcommitted
Schematics CLI 6 (#10703)
* Remove JS files that were accidentally comitted * wip schematics 6.0 update * chore: update utils * chore: fix ngadd * chore: updates * chore: pr feedback * chore: fixes * chore: fix name * chore: fix lint * chore: remove unneeded var * chore: fix path * chore: test fixes * chore: fix from path * chore: fix test? * chore: fix test? * chore: fix test? * chore: fix theme path * chore: fix import
1 parent c880faa commit 023e8f4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+468
-2157
lines changed

src/lib/schematics/dashboard/index.js

Lines changed: 0 additions & 32 deletions
This file was deleted.

src/lib/schematics/dashboard/index.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/lib/schematics/dashboard/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import {chain, Rule, noop, Tree, SchematicContext} from '@angular-devkit/schematics';
22
import {Schema} from './schema';
3-
import {addModuleImportToModule} from '../utils/ast';
4-
import {findModuleFromOptions} from '../utils/devkit-utils/find-module';
3+
import {addModuleImportToModule, findModuleFromOptions} from '../utils/ast';
54
import {buildComponent} from '../utils/devkit-utils/component';
65

76
/**

src/lib/schematics/dashboard/index_spec.js

Lines changed: 0 additions & 51 deletions
This file was deleted.

src/lib/schematics/dashboard/index_spec.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/lib/schematics/dashboard/schema.json

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,56 +6,52 @@
66
"properties": {
77
"path": {
88
"type": "string",
9+
"format": "path",
910
"description": "The path to create the component.",
10-
"default": "app",
1111
"visible": false
1212
},
13-
"sourceDir": {
13+
"project": {
1414
"type": "string",
15-
"description": "The path of the source directory.",
16-
"default": "src",
17-
"alias": "sd",
18-
"visible": false
19-
},
20-
"appRoot": {
21-
"type": "string",
22-
"description": "The root of the application.",
15+
"description": "The name of the project.",
2316
"visible": false
2417
},
2518
"name": {
2619
"type": "string",
27-
"description": "The name of the component."
20+
"description": "The name of the component.",
21+
"$default": {
22+
"$source": "argv",
23+
"index": 0
24+
}
2825
},
2926
"inlineStyle": {
3027
"description": "Specifies if the style will be in the ts file.",
3128
"type": "boolean",
3229
"default": false,
33-
"alias": "is"
30+
"alias": "s"
3431
},
3532
"inlineTemplate": {
3633
"description": "Specifies if the template will be in the ts file.",
3734
"type": "boolean",
3835
"default": false,
39-
"alias": "it"
36+
"alias": "t"
4037
},
4138
"viewEncapsulation": {
4239
"description": "Specifies the view encapsulation strategy.",
4340
"enum": ["Emulated", "Native", "None"],
4441
"type": "string",
45-
"default": "Emulated",
46-
"alias": "ve"
42+
"alias": "v"
4743
},
4844
"changeDetection": {
4945
"description": "Specifies the change detection strategy.",
5046
"enum": ["Default", "OnPush"],
5147
"type": "string",
5248
"default": "Default",
53-
"alias": "cd"
49+
"alias": "c"
5450
},
5551
"prefix": {
5652
"type": "string",
53+
"format": "html-selector",
5754
"description": "The prefix to apply to generated selectors.",
58-
"default": "app",
5955
"alias": "p"
6056
},
6157
"styleext": {
@@ -80,6 +76,7 @@
8076
},
8177
"selector": {
8278
"type": "string",
79+
"format": "html-selector",
8380
"description": "The selector to use for the component."
8481
},
8582
"module": {

src/lib/schematics/nav/index.js

Lines changed: 0 additions & 33 deletions
This file was deleted.

src/lib/schematics/nav/index.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/lib/schematics/nav/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import {chain, Rule, noop, Tree, SchematicContext} from '@angular-devkit/schematics';
22
import {Schema} from './schema';
3-
import {addModuleImportToModule} from '../utils/ast';
4-
import {findModuleFromOptions} from '../utils/devkit-utils/find-module';
3+
import {addModuleImportToModule, findModuleFromOptions} from '../utils/ast';
54
import {buildComponent} from '../utils/devkit-utils/component';
65

76
/**

src/lib/schematics/nav/index_spec.js

Lines changed: 0 additions & 53 deletions
This file was deleted.

0 commit comments

Comments
 (0)