@magic-xpa/cli 4.1201.0 → 4.1201.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +28 -28
- package/index.js.map +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
- package/src/collection.json +75 -75
- package/src/public_api.js.map +1 -1
- package/src/public_api.ts +5 -5
- package/src/schematics/magic-utils/config.js.map +1 -1
- package/src/schematics/magic-utils/config.ts +68 -68
- package/src/schematics/magic-utils/env.js.map +1 -1
- package/src/schematics/magic-utils/env.ts +50 -50
- package/src/schematics/magic-utils/manifest.js.map +1 -1
- package/src/schematics/magic-utils/manifest.ts +46 -46
- package/src/schematics/magic-utils/metadata.class.js.map +1 -1
- package/src/schematics/magic-utils/metadata.class.ts +159 -159
- package/src/schematics/magic-utils/rules/generate.rule.js.map +1 -1
- package/src/schematics/magic-utils/rules/generate.rule.ts +61 -61
- package/src/schematics/magic-utils/rules/init-add-modules.rule.js.map +1 -1
- package/src/schematics/magic-utils/rules/init-add-modules.rule.ts +360 -360
- package/src/schematics/magic-utils/rules/init-magic-metadata.rule.js.map +1 -1
- package/src/schematics/magic-utils/rules/init-magic-metadata.rule.ts +19 -19
- package/src/schematics/magic-utils/rules/magic-option.scheme.js.map +1 -1
- package/src/schematics/magic-utils/rules/magic-option.scheme.ts +24 -24
- package/src/schematics/magic-utils/utils.js.map +1 -1
- package/src/schematics/magic-utils/utils.ts +134 -134
- package/src/schematics/mg-Install-prerequisites/index.js.map +1 -1
- package/src/schematics/mg-Install-prerequisites/index.ts +30 -30
- package/src/schematics/mg-Install-prerequisites/schema.json +14 -14
- package/src/schematics/mg-add/files/src/app/app.component.html +17 -17
- package/src/schematics/mg-add/files/src/app/app.routes.ts +14 -14
- package/src/schematics/mg-add/files/src/app/magic/component-list.g.ts +9 -9
- package/src/schematics/mg-add/files/src/magic-styles.css +131 -131
- package/src/schematics/mg-add/schema.json +29 -29
- package/src/schematics/mg-add/utils/add-declaration-to-root-module.js.map +1 -1
- package/src/schematics/mg-add/utils/add-declaration-to-root-module.ts +12 -12
- package/src/schematics/mg-add/webModule/app.routes.ts +14 -14
- package/src/schematics/mg-add-tasks/index.js.map +1 -1
- package/src/schematics/mg-add-tasks/index.ts +53 -53
- package/src/schematics/mg-add-tasks/schema.json +41 -41
- package/src/schematics/mg-delete-files/index.js.map +1 -1
- package/src/schematics/mg-delete-files/index.ts +12 -12
- package/src/schematics/mg-delete-files/schema.json +14 -14
- package/src/schematics/mg-gen-module/index.js.map +1 -1
- package/src/schematics/mg-gen-module/index.ts +14 -14
- package/src/schematics/mg-gen-module/schema.json +24 -24
- package/src/schematics/mg-generate/index.js.map +1 -1
- package/src/schematics/mg-generate/index.ts +12 -12
- package/src/schematics/mg-generate/schema.json +34 -34
- package/src/schematics/mg-install/index.js.map +1 -1
- package/src/schematics/mg-install/index.ts +37 -37
- package/src/schematics/mg-install/schema.json +24 -24
- package/src/schematics/mg-routes/schema.json +14 -14
- package/src/schematics/mg-single-control/schema.json +24 -24
- package/src/schematics/utils/ast.js.map +1 -1
- package/src/schematics/utils/ast.ts +103 -103
- package/src/schematics/utils/devkit-utils/README.md +1 -1
- package/src/schematics/utils/devkit-utils/ast-utils.js.map +1 -1
- package/src/schematics/utils/devkit-utils/ast-utils.ts +570 -570
- package/src/schematics/utils/devkit-utils/ast-utils_old.js.map +1 -1
- package/src/schematics/utils/devkit-utils/ast-utils_old.ts +478 -478
- package/src/schematics/utils/devkit-utils/change.js.map +1 -1
- package/src/schematics/utils/devkit-utils/change.ts +127 -127
- package/src/schematics/utils/devkit-utils/component.js.map +1 -1
- package/src/schematics/utils/devkit-utils/component.ts +136 -136
- package/src/schematics/utils/devkit-utils/config.js.map +1 -1
- package/src/schematics/utils/devkit-utils/config.ts +120 -120
- package/src/schematics/utils/devkit-utils/find-module.js.map +1 -1
- package/src/schematics/utils/devkit-utils/find-module.ts +108 -108
- package/src/schematics/utils/devkit-utils/ng-ast-utils.js.map +1 -1
- package/src/schematics/utils/devkit-utils/ng-ast-utils.ts +84 -84
- package/src/schematics/utils/devkit-utils/parse-name.js.map +1 -1
- package/src/schematics/utils/devkit-utils/parse-name.ts +24 -24
- package/src/schematics/utils/devkit-utils/route-utils.js.map +1 -1
- package/src/schematics/utils/devkit-utils/route-utils.ts +180 -180
- package/src/schematics/utils/devkit-utils/validation.js +1 -1
- package/src/schematics/utils/devkit-utils/validation.js.map +1 -1
- package/src/schematics/utils/devkit-utils/validation.ts +16 -16
- package/src/schematics/utils/html.js.map +1 -1
- package/src/schematics/utils/html.ts +63 -63
- package/src/schematics/utils/lib-versions.js.map +1 -1
- package/src/schematics/utils/lib-versions.ts +3 -3
- package/src/schematics/utils/package.js.map +1 -1
- package/src/schematics/utils/package.ts +22 -22
- package/src/schematics/utils/testing.js.map +1 -1
- package/src/schematics/utils/testing.ts +25 -25
- package/src/types/enums/Enums.js.map +1 -1
- package/src/types/enums/Enums.ts +2063 -2063
- package/src/types/enums/generated-file-types.enum.js.map +1 -1
- package/src/types/enums/generated-file-types.enum.ts +6 -6
- package/src/types/enums/horizontal-alignments.enum.js.map +1 -1
- package/src/types/enums/horizontal-alignments.enum.ts +6 -6
- package/src/types/enums/themes.enum.js.map +1 -1
- package/src/types/enums/themes.enum.ts +6 -6
- package/src/types/index.js.map +1 -1
- package/src/types/index.ts +8 -8
- package/src/types/interfaces/app.js.map +1 -1
- package/src/types/interfaces/app.ts +89 -89
- package/src/types/interfaces/control.js.map +1 -1
- package/src/types/interfaces/control.ts +106 -106
- package/src/types/interfaces/template.config.js.map +1 -1
- package/src/types/interfaces/template.config.ts +11 -11
- package/templates/angular/src/app/app.component.html.ejs +17 -17
- package/templates/angular/src/app/cmp-array.ejs +3 -3
- package/templates/angular/src/app/cmp-hash.ejs +3 -3
- package/templates/angular/src/app/component-list.g.ts +21 -21
- package/templates/angular/src/app.component.ts +16 -16
- package/templates/angular/src/app.module.ts +70 -70
- package/templates/angular/src/app.routes.ts +73 -73
- package/templates/angular/src/styles/app.css +5 -5
- package/templates/attributes/button_attributes.ejs +2 -2
- package/templates/attributes/common/base/class.ejs +6 -6
- package/templates/attributes/common/base/control_type.ejs +53 -53
- package/templates/attributes/common/base/enabled.ejs +9 -9
- package/templates/attributes/common/base/imageFileName.ejs +3 -3
- package/templates/attributes/common/base/no_control_class.ejs +3 -3
- package/templates/attributes/common/base/rtol.ejs +3 -3
- package/templates/attributes/common/base/tabindex.ejs +11 -11
- package/templates/attributes/common/base/testingId.ejs +8 -8
- package/templates/attributes/common/base/tooltip.ejs +7 -7
- package/templates/attributes/common/base/visible.ejs +6 -6
- package/templates/attributes/common/base/wallpaper.ejs +3 -3
- package/templates/attributes/common/base_attributes.ejs +10 -10
- package/templates/attributes/common/container_attributes.ejs +6 -6
- package/templates/attributes/common/control_attributes.ejs +3 -3
- package/templates/attributes/common/format.ejs +5 -5
- package/templates/attributes/common/input/hint.ejs +13 -13
- package/templates/attributes/common/input/multiline_edit.ejs +3 -3
- package/templates/attributes/common/input/must_input.ejs +8 -8
- package/templates/attributes/common/input/password_edit.ejs +7 -7
- package/templates/attributes/common/input/row_editing_input_attributes.ejs +6 -6
- package/templates/attributes/common/input/validation.ejs +5 -5
- package/templates/attributes/common/input_attributes.ejs +4 -4
- package/templates/attributes/common/no_control_base_attributes.ejs +4 -4
- package/templates/attributes/common/row_editing_button_attributes.ejs +10 -10
- package/templates/component/view.component.html +14 -14
- package/templates/component/view.component.ts +136 -136
- package/templates/themes/basicHTML/Code/theme.module.ts +10 -10
- package/templates/themes/basicHTML/combobox.ejs +37 -37
- package/templates/themes/basicHTML/edit.ejs +169 -169
- package/templates/themes/basicHTML/form.ejs +4 -4
- package/templates/themes/basicHTML/group.ejs +4 -4
- package/templates/themes/basicHTML/image.ejs +6 -6
- package/templates/themes/basicHTML/label.ejs +11 -11
- package/templates/themes/basicHTML/listbox.ejs +21 -21
- package/templates/themes/basicHTML/push-button.ejs +28 -28
- package/templates/themes/basicHTML/radio.ejs +20 -20
- package/templates/themes/basicHTML/subform.ejs +6 -6
- package/templates/themes/basicHTML/tab.ejs +31 -31
- package/templates/themes/basicHTML/tabpage.ejs +5 -5
- package/templates/themes/basicHiddenHTML/Code/theme.module.ts +10 -10
- package/templates/themes/basicHiddenHTML/combobox.ejs +5 -5
- package/templates/themes/basicHiddenHTML/form.ejs +3 -3
- package/templates/themes/basicHiddenHTML/group.ejs +2 -2
- package/templates/themes/basicHiddenHTML/image.ejs +4 -4
- package/templates/themes/basicHiddenHTML/label.ejs +1 -1
- package/templates/themes/basicHiddenHTML/listbox.ejs +8 -8
- package/templates/themes/basicHiddenHTML/push-button.ejs +26 -26
- package/templates/themes/basicHiddenHTML/radio.ejs +17 -17
- package/templates/themes/basicHiddenHTML/tab.ejs +13 -13
- package/templates/themes/basicHiddenHTML/table.ejs +18 -18
- package/templates/themes/basicHiddenHTML/tabpage.ejs +2 -2
- package/templates/themes/container.ejs +26 -26
- package/templates/themes/control.ejs +52 -52
- package/templates/themes/editTypeSelector.ejs +1 -1
- package/templates/themes/material/Code/theme.module.ts +68 -68
- package/templates/themes/material/base_attributes_date.ejs +8 -8
- package/templates/themes/material/combobox.ejs +58 -58
- package/templates/themes/material/edit.ejs +204 -204
- package/templates/themes/material/group.ejs +3 -3
- package/templates/themes/material/listbox.ejs +22 -22
- package/templates/themes/material/push-button.ejs +28 -28
- package/templates/themes/material/radio.ejs +22 -22
- package/templates/themes/material/subform.ejs +8 -8
- package/templates/themes/material/tab.ejs +19 -19
- package/templates/themes/router_outlet.ejs +5 -5
- package/templates/themes/table/HTMLTable/table.ejs +37 -37
- package/templates/themes/table/grid/additionalComponentCode.ejs +26 -26
- package/templates/themes/table/grid/additionalIncludes.ejs +1 -1
- package/templates/themes/table/grid/table.ejs +37 -37
- package/templates/themes/table/repeatable/column.ejs +11 -11
- package/templates/themes/table/repeatable/table.ejs +28 -28
- package/templates/themes/tableTypeSelector.ejs +21 -21
- package/tsconfig.json +36 -36
|
@@ -1,131 +1,131 @@
|
|
|
1
|
-
@import "@angular/material/prebuilt-themes/indigo-pink.css";
|
|
2
|
-
|
|
3
|
-
.align_center {
|
|
4
|
-
text-align: center;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.align_right {
|
|
8
|
-
text-align: right;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.multiline {
|
|
12
|
-
word-break: break-all;
|
|
13
|
-
white-space: pre-line;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.edit_multiline {
|
|
17
|
-
overflow: scroll;
|
|
18
|
-
overflow-y: scroll;
|
|
19
|
-
overflow-x: hidden;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.thin_border {
|
|
23
|
-
border: 1px solid #F00;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.thick_border {
|
|
27
|
-
border: 2px solid #F00;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.hidden_border {
|
|
31
|
-
border-style: hidden;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.emboss_border {
|
|
35
|
-
border: 1px solid;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.threed_border {
|
|
39
|
-
border-style: outset;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.threedsunken_border {
|
|
43
|
-
border-style: inset;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.twod_border {
|
|
47
|
-
border: 2px solid;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.windows_border {
|
|
51
|
-
border: 2px solid;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.tab_control {
|
|
55
|
-
overflow: hidden;
|
|
56
|
-
border: 1px solid #ccc;
|
|
57
|
-
background-color: #f1f1f1;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.tab_button {
|
|
61
|
-
background-color: inherit;
|
|
62
|
-
float: left;
|
|
63
|
-
border: none;
|
|
64
|
-
outline: none;
|
|
65
|
-
cursor: pointer;
|
|
66
|
-
padding: 14px 16px;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.tab_button_active {
|
|
70
|
-
background-color: #ccc;
|
|
71
|
-
float: left;
|
|
72
|
-
border: none;
|
|
73
|
-
outline: none;
|
|
74
|
-
cursor: pointer;
|
|
75
|
-
padding: 14px 16px;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.tab_button:hover {
|
|
79
|
-
background-color: #ddd;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.tab_content {
|
|
83
|
-
padding: 6px 12px;
|
|
84
|
-
border: 1px solid #ccc;
|
|
85
|
-
border-bottom: none;
|
|
86
|
-
border-left: none;
|
|
87
|
-
border-right: none;
|
|
88
|
-
clear:both;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
/* style for input on table*/
|
|
92
|
-
.InputPropsForRowEditing {
|
|
93
|
-
text-decoration: underline;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.button_image_background_size{
|
|
97
|
-
background-size: 100% 100%;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.lable_overflow{
|
|
101
|
-
overflow: hidden;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.table_scrollBar{
|
|
105
|
-
height: 600px;
|
|
106
|
-
overflow-y: scroll;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.container_border{
|
|
110
|
-
border: lightskyblue solid 1px;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.selected {
|
|
114
|
-
background: #F5F5F5 !important;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.table_row:hover {
|
|
118
|
-
background-color: #EEEEEE;
|
|
119
|
-
}
|
|
120
|
-
/* remark : we decided to give the end user the normal list box without you update the behavior*/
|
|
121
|
-
/*for material list box control*/
|
|
122
|
-
/*hide the check box*/
|
|
123
|
-
/*mat-list-option mat-pseudo-checkbox.mat-pseudo-checkbox{*/
|
|
124
|
-
/*display: none;*/
|
|
125
|
-
/*}*/
|
|
126
|
-
/*!*for material list box control*!*/
|
|
127
|
-
/*!* for selected item that is true the style will be by following *!*/
|
|
128
|
-
/*mat-list-option[aria-selected = "true"]*/
|
|
129
|
-
/*{*/
|
|
130
|
-
/*background-color: blue;*/
|
|
131
|
-
/*}*/
|
|
1
|
+
@import "@angular/material/prebuilt-themes/indigo-pink.css";
|
|
2
|
+
|
|
3
|
+
.align_center {
|
|
4
|
+
text-align: center;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.align_right {
|
|
8
|
+
text-align: right;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.multiline {
|
|
12
|
+
word-break: break-all;
|
|
13
|
+
white-space: pre-line;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.edit_multiline {
|
|
17
|
+
overflow: scroll;
|
|
18
|
+
overflow-y: scroll;
|
|
19
|
+
overflow-x: hidden;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.thin_border {
|
|
23
|
+
border: 1px solid #F00;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.thick_border {
|
|
27
|
+
border: 2px solid #F00;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.hidden_border {
|
|
31
|
+
border-style: hidden;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.emboss_border {
|
|
35
|
+
border: 1px solid;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.threed_border {
|
|
39
|
+
border-style: outset;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.threedsunken_border {
|
|
43
|
+
border-style: inset;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.twod_border {
|
|
47
|
+
border: 2px solid;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.windows_border {
|
|
51
|
+
border: 2px solid;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.tab_control {
|
|
55
|
+
overflow: hidden;
|
|
56
|
+
border: 1px solid #ccc;
|
|
57
|
+
background-color: #f1f1f1;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.tab_button {
|
|
61
|
+
background-color: inherit;
|
|
62
|
+
float: left;
|
|
63
|
+
border: none;
|
|
64
|
+
outline: none;
|
|
65
|
+
cursor: pointer;
|
|
66
|
+
padding: 14px 16px;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.tab_button_active {
|
|
70
|
+
background-color: #ccc;
|
|
71
|
+
float: left;
|
|
72
|
+
border: none;
|
|
73
|
+
outline: none;
|
|
74
|
+
cursor: pointer;
|
|
75
|
+
padding: 14px 16px;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.tab_button:hover {
|
|
79
|
+
background-color: #ddd;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.tab_content {
|
|
83
|
+
padding: 6px 12px;
|
|
84
|
+
border: 1px solid #ccc;
|
|
85
|
+
border-bottom: none;
|
|
86
|
+
border-left: none;
|
|
87
|
+
border-right: none;
|
|
88
|
+
clear:both;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/* style for input on table*/
|
|
92
|
+
.InputPropsForRowEditing {
|
|
93
|
+
text-decoration: underline;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.button_image_background_size{
|
|
97
|
+
background-size: 100% 100%;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.lable_overflow{
|
|
101
|
+
overflow: hidden;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.table_scrollBar{
|
|
105
|
+
height: 600px;
|
|
106
|
+
overflow-y: scroll;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.container_border{
|
|
110
|
+
border: lightskyblue solid 1px;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.selected {
|
|
114
|
+
background: #F5F5F5 !important;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.table_row:hover {
|
|
118
|
+
background-color: #EEEEEE;
|
|
119
|
+
}
|
|
120
|
+
/* remark : we decided to give the end user the normal list box without you update the behavior*/
|
|
121
|
+
/*for material list box control*/
|
|
122
|
+
/*hide the check box*/
|
|
123
|
+
/*mat-list-option mat-pseudo-checkbox.mat-pseudo-checkbox{*/
|
|
124
|
+
/*display: none;*/
|
|
125
|
+
/*}*/
|
|
126
|
+
/*!*for material list box control*!*/
|
|
127
|
+
/*!* for selected item that is true the style will be by following *!*/
|
|
128
|
+
/*mat-list-option[aria-selected = "true"]*/
|
|
129
|
+
/*{*/
|
|
130
|
+
/*background-color: blue;*/
|
|
131
|
+
/*}*/
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/schema",
|
|
3
|
-
"$id": "SchematicsMagicAdd",
|
|
4
|
-
"title": "Magic Options Schema",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"properties": {
|
|
7
|
-
"skipInstall": {
|
|
8
|
-
"type": "boolean",
|
|
9
|
-
"default": false,
|
|
10
|
-
"description": "Do not install the new packages (e.g., --skipInstall)"
|
|
11
|
-
},
|
|
12
|
-
"skipPackageJson": {
|
|
13
|
-
"type": "boolean",
|
|
14
|
-
"default": false,
|
|
15
|
-
"description": "Do not add magic dependencies to package.json (e.g., --skipPackageJson)"
|
|
16
|
-
},
|
|
17
|
-
"skipHelp": {
|
|
18
|
-
"type": "boolean",
|
|
19
|
-
"default": false,
|
|
20
|
-
"description": "Whether to create Startup Welcome Pag (e.g., --skipHelp)"
|
|
21
|
-
},
|
|
22
|
-
"project":{
|
|
23
|
-
"type": "string",
|
|
24
|
-
"description": "The name of the project",
|
|
25
|
-
"aliases" : ["p"]
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
"required": []
|
|
29
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "SchematicsMagicAdd",
|
|
4
|
+
"title": "Magic Options Schema",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"skipInstall": {
|
|
8
|
+
"type": "boolean",
|
|
9
|
+
"default": false,
|
|
10
|
+
"description": "Do not install the new packages (e.g., --skipInstall)"
|
|
11
|
+
},
|
|
12
|
+
"skipPackageJson": {
|
|
13
|
+
"type": "boolean",
|
|
14
|
+
"default": false,
|
|
15
|
+
"description": "Do not add magic dependencies to package.json (e.g., --skipPackageJson)"
|
|
16
|
+
},
|
|
17
|
+
"skipHelp": {
|
|
18
|
+
"type": "boolean",
|
|
19
|
+
"default": false,
|
|
20
|
+
"description": "Whether to create Startup Welcome Pag (e.g., --skipHelp)"
|
|
21
|
+
},
|
|
22
|
+
"project":{
|
|
23
|
+
"type": "string",
|
|
24
|
+
"description": "The name of the project",
|
|
25
|
+
"aliases" : ["p"]
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"required": []
|
|
29
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-declaration-to-root-module.js","sourceRoot":"","sources":["add-declaration-to-root-module.ts"],"names":[],"mappings":";;AAKA,gEAMC;AAXD,yCAA8C;AAC9C,kEAA0E;AAE1E,+CAA+C;AAE/C,SAAgB,0BAA0B,CAAC,IAAU,EAAE,UAAkB,EAAE,SAAiB;IAC3F,IACC,IAAI,GAAK,uBAAuB,EAChC,MAAM,GAAG,IAAA,mBAAa,EAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAEpC,IAAA,kCAAsB,EAAC,MAAM,EAAE,IAAA,gBAAS,EAAC,IAAI,CAAC,EAAE,UAAU,EAAE,SAAS,CAAC,CAAC;AACxE,CAAC","sourcesContent":["import {getSourceFile} from '../../utils/ast';\
|
|
1
|
+
{"version":3,"file":"add-declaration-to-root-module.js","sourceRoot":"","sources":["add-declaration-to-root-module.ts"],"names":[],"mappings":";;AAKA,gEAMC;AAXD,yCAA8C;AAC9C,kEAA0E;AAE1E,+CAA+C;AAE/C,SAAgB,0BAA0B,CAAC,IAAU,EAAE,UAAkB,EAAE,SAAiB;IAC3F,IACC,IAAI,GAAK,uBAAuB,EAChC,MAAM,GAAG,IAAA,mBAAa,EAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAEpC,IAAA,kCAAsB,EAAC,MAAM,EAAE,IAAA,gBAAS,EAAC,IAAI,CAAC,EAAE,UAAU,EAAE,SAAS,CAAC,CAAC;AACxE,CAAC","sourcesContent":["import {getSourceFile} from '../../utils/ast';\nimport {addDeclarationToModule} from '../../utils/devkit-utils/ast-utils';\nimport {Tree} from '@angular-devkit/schematics';\nimport {normalize} from '@angular-devkit/core';\n\nexport function addDeclarationToRootModule(host: Tree, moduleName: string, importSrc: string) {\n\tlet\n\t\tpath = `src/app/app.module.ts`,\n\t\tsource = getSourceFile(host, path);\n\t\n\taddDeclarationToModule(source, normalize(path), moduleName, importSrc);\n}\n"]}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {getSourceFile} from '../../utils/ast';
|
|
2
|
-
import {addDeclarationToModule} from '../../utils/devkit-utils/ast-utils';
|
|
3
|
-
import {Tree} from '@angular-devkit/schematics';
|
|
4
|
-
import {normalize} from '@angular-devkit/core';
|
|
5
|
-
|
|
6
|
-
export function addDeclarationToRootModule(host: Tree, moduleName: string, importSrc: string) {
|
|
7
|
-
let
|
|
8
|
-
path = `src/app/app.module.ts`,
|
|
9
|
-
source = getSourceFile(host, path);
|
|
10
|
-
|
|
11
|
-
addDeclarationToModule(source, normalize(path), moduleName, importSrc);
|
|
12
|
-
}
|
|
1
|
+
import {getSourceFile} from '../../utils/ast';
|
|
2
|
+
import {addDeclarationToModule} from '../../utils/devkit-utils/ast-utils';
|
|
3
|
+
import {Tree} from '@angular-devkit/schematics';
|
|
4
|
+
import {normalize} from '@angular-devkit/core';
|
|
5
|
+
|
|
6
|
+
export function addDeclarationToRootModule(host: Tree, moduleName: string, importSrc: string) {
|
|
7
|
+
let
|
|
8
|
+
path = `src/app/app.module.ts`,
|
|
9
|
+
source = getSourceFile(host, path);
|
|
10
|
+
|
|
11
|
+
addDeclarationToModule(source, normalize(path), moduleName, importSrc);
|
|
12
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {Routes, RouterModule} from '@angular/router';
|
|
2
|
-
import { NgModule } from "@angular/core";
|
|
3
|
-
import { CommonModule } from "@angular/common";
|
|
4
|
-
|
|
5
|
-
export const routes: Routes = [
|
|
6
|
-
|
|
7
|
-
];
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
@NgModule({
|
|
11
|
-
imports: [CommonModule,RouterModule.forChild(routes)],
|
|
12
|
-
exports: [RouterModule]
|
|
13
|
-
})
|
|
14
|
-
export class MagicRoutingModule { }
|
|
1
|
+
import {Routes, RouterModule} from '@angular/router';
|
|
2
|
+
import { NgModule } from "@angular/core";
|
|
3
|
+
import { CommonModule } from "@angular/common";
|
|
4
|
+
|
|
5
|
+
export const routes: Routes = [
|
|
6
|
+
|
|
7
|
+
];
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
@NgModule({
|
|
11
|
+
imports: [CommonModule,RouterModule.forChild(routes)],
|
|
12
|
+
exports: [RouterModule]
|
|
13
|
+
})
|
|
14
|
+
export class MagicRoutingModule { }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;AAMA,gCA4CC;AAjDD,4DAA4F;AAE5F,4CAAkF;AAGlF,SAAgB,UAAU,CAAC,OAAyB;IAClD,OAAO,CAAC,IAAS,EAAE,OAAwB,EAAC,EAAE;QAE5C,OAAO,CAAC,GAAG,CAAC,yDAAyD,GAAG,OAAO,CAAC,UAAU,CAAE,CAAC;QAC7F,qBAAe,CAAC,IAAI,CAAC,IAAI,mBAAa,CAAC,gBAAgB,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC;QAE9E,8BAA8B;QAC9B,MAAM,cAAc,GAAG,OAAO,CAAC,OAAO,CACpC,IAAI,wBAAgB,CAAC,YAAY,EAAE;YACjC,WAAW,EAAO,KAAK;YACvB,eAAe,EAAG,KAAK;YACvB,YAAY,EAAM,EAAE;YACpB,eAAe,EAAG,qBAAe;SAClC,CAAC,CACH,CAAC;QAIF,OAAO,CAAC,GAAG,CAAC,6DAA6D,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;QACpG,kBAAY,CAAC,IAAI,CAAC,IAAI,mBAAa,CAAC,oBAAoB,EAAE,OAAO,CAAC,cAAc,CAAE,CAAC,CAAC;QAEpF,2BAA2B;QAC3B,MAAM,mBAAmB,GAAG,OAAO,CAAC,OAAO,CACzC,IAAI,wBAAgB,CAAC,YAAY,EAAE;YACjC,WAAW,EAAO,OAAO,CAAC,WAAW;YACrC,eAAe,EAAG,OAAO,CAAC,eAAe;YACzC,YAAY,EAAM,kBAAY;YAC9B,eAAe,EAAG,EAAE;SACrB,CAAC,EACF,CAAC,cAAc,CAAC,CACjB,CAAC;QAGF,MAAM,eAAe,GAAG,OAAO,CAAC,OAAO,CACrC,IAAI,wBAAgB,CAAC,cAAc,EAAE,OAAO,CAAC,EAC7C,CAAC,cAAc,EAAC,mBAAmB,CAAC,CACrC,CAAC;QAEF,MAAM,SAAS,GAAG,OAAO,CAAC,OAAO,CAC/B,IAAI,wBAAgB,CAAC,QAAQ,EAAE,OAAO,CAAC,EACvC,CAAC,cAAc,EAAE,mBAAmB,EAAE,eAAe,CAAC,CACvD,CAAC;IAEJ,CAAC,CAAC;AACJ,CAAC","sourcesContent":["import { Rule,Tree,SchematicContext } from \"@angular-devkit/schematics\";\
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;AAMA,gCA4CC;AAjDD,4DAA4F;AAE5F,4CAAkF;AAGlF,SAAgB,UAAU,CAAC,OAAyB;IAClD,OAAO,CAAC,IAAS,EAAE,OAAwB,EAAC,EAAE;QAE5C,OAAO,CAAC,GAAG,CAAC,yDAAyD,GAAG,OAAO,CAAC,UAAU,CAAE,CAAC;QAC7F,qBAAe,CAAC,IAAI,CAAC,IAAI,mBAAa,CAAC,gBAAgB,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC;QAE9E,8BAA8B;QAC9B,MAAM,cAAc,GAAG,OAAO,CAAC,OAAO,CACpC,IAAI,wBAAgB,CAAC,YAAY,EAAE;YACjC,WAAW,EAAO,KAAK;YACvB,eAAe,EAAG,KAAK;YACvB,YAAY,EAAM,EAAE;YACpB,eAAe,EAAG,qBAAe;SAClC,CAAC,CACH,CAAC;QAIF,OAAO,CAAC,GAAG,CAAC,6DAA6D,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;QACpG,kBAAY,CAAC,IAAI,CAAC,IAAI,mBAAa,CAAC,oBAAoB,EAAE,OAAO,CAAC,cAAc,CAAE,CAAC,CAAC;QAEpF,2BAA2B;QAC3B,MAAM,mBAAmB,GAAG,OAAO,CAAC,OAAO,CACzC,IAAI,wBAAgB,CAAC,YAAY,EAAE;YACjC,WAAW,EAAO,OAAO,CAAC,WAAW;YACrC,eAAe,EAAG,OAAO,CAAC,eAAe;YACzC,YAAY,EAAM,kBAAY;YAC9B,eAAe,EAAG,EAAE;SACrB,CAAC,EACF,CAAC,cAAc,CAAC,CACjB,CAAC;QAGF,MAAM,eAAe,GAAG,OAAO,CAAC,OAAO,CACrC,IAAI,wBAAgB,CAAC,cAAc,EAAE,OAAO,CAAC,EAC7C,CAAC,cAAc,EAAC,mBAAmB,CAAC,CACrC,CAAC;QAEF,MAAM,SAAS,GAAG,OAAO,CAAC,OAAO,CAC/B,IAAI,wBAAgB,CAAC,QAAQ,EAAE,OAAO,CAAC,EACvC,CAAC,cAAc,EAAE,mBAAmB,EAAE,eAAe,CAAC,CACvD,CAAC;IAEJ,CAAC,CAAC;AACJ,CAAC","sourcesContent":["import { Rule,Tree,SchematicContext } from \"@angular-devkit/schematics\";\nimport { NodePackageInstallTask, RunSchematicTask } from \"@angular-devkit/schematics/tasks\";\nimport { addPackageToPackageJson } from \"../utils/package\";\nimport { dependencies, devDependencies, Idependencies } from \"../magic-utils/env\";\nimport { MagicOptionScheme } from \"../magic-utils/rules/magic-option.scheme\";\n\nexport function mgAddTasks(options:MagicOptionScheme): Rule {\n return (host:Tree, context:SchematicContext)=>{\n\n console.log(\" [V - add install dependencies !] options.cliVersion=\" + options.cliVersion );\n devDependencies.push(new Idependencies(\"@magic-xpa/cli\", options.cliVersion));\n\n // install the devDependencies\n const devInstallTask = context.addTask(\n new RunSchematicTask('mg-install', {\n skipInstall : false,\n skipPackageJson : false,\n dependencies : [],\n devDependencies : devDependencies\n })\n );\n\n\n\n console.log(\" [V - add install dependencies !] options.angularVersion=\" + options.angularVersion);\n dependencies.push(new Idependencies(\"@magic-xpa/angular\", options.angularVersion ));\n\n // install the dependencies\n const packagesInstallTask = context.addTask(\n new RunSchematicTask('mg-install', {\n skipInstall : options.skipInstall,\n skipPackageJson : options.skipPackageJson,\n dependencies : dependencies,\n devDependencies : []\n }),\n [devInstallTask]\n );\n\n\n const deleteFilesTask = context.addTask(\n new RunSchematicTask('delete-files', options),\n [devInstallTask,packagesInstallTask]\n );\n\n const ngAddTask = context.addTask(\n new RunSchematicTask('mg-add', options),\n [devInstallTask, packagesInstallTask, deleteFilesTask]\n );\n\n };\n}\n\n\n"]}
|
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
import { Rule,Tree,SchematicContext } from "@angular-devkit/schematics";
|
|
2
|
-
import { NodePackageInstallTask, RunSchematicTask } from "@angular-devkit/schematics/tasks";
|
|
3
|
-
import { addPackageToPackageJson } from "../utils/package";
|
|
4
|
-
import { dependencies, devDependencies, Idependencies } from "../magic-utils/env";
|
|
5
|
-
import { MagicOptionScheme } from "../magic-utils/rules/magic-option.scheme";
|
|
6
|
-
|
|
7
|
-
export function mgAddTasks(options:MagicOptionScheme): Rule {
|
|
8
|
-
return (host:Tree, context:SchematicContext)=>{
|
|
9
|
-
|
|
10
|
-
console.log(" [V - add install dependencies !] options.cliVersion=" + options.cliVersion );
|
|
11
|
-
devDependencies.push(new Idependencies("@magic-xpa/cli", options.cliVersion));
|
|
12
|
-
|
|
13
|
-
// install the devDependencies
|
|
14
|
-
const devInstallTask = context.addTask(
|
|
15
|
-
new RunSchematicTask('mg-install', {
|
|
16
|
-
skipInstall : false,
|
|
17
|
-
skipPackageJson : false,
|
|
18
|
-
dependencies : [],
|
|
19
|
-
devDependencies : devDependencies
|
|
20
|
-
})
|
|
21
|
-
);
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
console.log(" [V - add install dependencies !] options.angularVersion=" + options.angularVersion);
|
|
26
|
-
dependencies.push(new Idependencies("@magic-xpa/angular", options.angularVersion ));
|
|
27
|
-
|
|
28
|
-
// install the dependencies
|
|
29
|
-
const packagesInstallTask = context.addTask(
|
|
30
|
-
new RunSchematicTask('mg-install', {
|
|
31
|
-
skipInstall : options.skipInstall,
|
|
32
|
-
skipPackageJson : options.skipPackageJson,
|
|
33
|
-
dependencies : dependencies,
|
|
34
|
-
devDependencies : []
|
|
35
|
-
}),
|
|
36
|
-
[devInstallTask]
|
|
37
|
-
);
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
const deleteFilesTask = context.addTask(
|
|
41
|
-
new RunSchematicTask('delete-files', options),
|
|
42
|
-
[devInstallTask,packagesInstallTask]
|
|
43
|
-
);
|
|
44
|
-
|
|
45
|
-
const ngAddTask = context.addTask(
|
|
46
|
-
new RunSchematicTask('mg-add', options),
|
|
47
|
-
[devInstallTask, packagesInstallTask, deleteFilesTask]
|
|
48
|
-
);
|
|
49
|
-
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
|
|
1
|
+
import { Rule,Tree,SchematicContext } from "@angular-devkit/schematics";
|
|
2
|
+
import { NodePackageInstallTask, RunSchematicTask } from "@angular-devkit/schematics/tasks";
|
|
3
|
+
import { addPackageToPackageJson } from "../utils/package";
|
|
4
|
+
import { dependencies, devDependencies, Idependencies } from "../magic-utils/env";
|
|
5
|
+
import { MagicOptionScheme } from "../magic-utils/rules/magic-option.scheme";
|
|
6
|
+
|
|
7
|
+
export function mgAddTasks(options:MagicOptionScheme): Rule {
|
|
8
|
+
return (host:Tree, context:SchematicContext)=>{
|
|
9
|
+
|
|
10
|
+
console.log(" [V - add install dependencies !] options.cliVersion=" + options.cliVersion );
|
|
11
|
+
devDependencies.push(new Idependencies("@magic-xpa/cli", options.cliVersion));
|
|
12
|
+
|
|
13
|
+
// install the devDependencies
|
|
14
|
+
const devInstallTask = context.addTask(
|
|
15
|
+
new RunSchematicTask('mg-install', {
|
|
16
|
+
skipInstall : false,
|
|
17
|
+
skipPackageJson : false,
|
|
18
|
+
dependencies : [],
|
|
19
|
+
devDependencies : devDependencies
|
|
20
|
+
})
|
|
21
|
+
);
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
console.log(" [V - add install dependencies !] options.angularVersion=" + options.angularVersion);
|
|
26
|
+
dependencies.push(new Idependencies("@magic-xpa/angular", options.angularVersion ));
|
|
27
|
+
|
|
28
|
+
// install the dependencies
|
|
29
|
+
const packagesInstallTask = context.addTask(
|
|
30
|
+
new RunSchematicTask('mg-install', {
|
|
31
|
+
skipInstall : options.skipInstall,
|
|
32
|
+
skipPackageJson : options.skipPackageJson,
|
|
33
|
+
dependencies : dependencies,
|
|
34
|
+
devDependencies : []
|
|
35
|
+
}),
|
|
36
|
+
[devInstallTask]
|
|
37
|
+
);
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
const deleteFilesTask = context.addTask(
|
|
41
|
+
new RunSchematicTask('delete-files', options),
|
|
42
|
+
[devInstallTask,packagesInstallTask]
|
|
43
|
+
);
|
|
44
|
+
|
|
45
|
+
const ngAddTask = context.addTask(
|
|
46
|
+
new RunSchematicTask('mg-add', options),
|
|
47
|
+
[devInstallTask, packagesInstallTask, deleteFilesTask]
|
|
48
|
+
);
|
|
49
|
+
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/schema",
|
|
3
|
-
"$id": "SchematicsMagicAddTasks",
|
|
4
|
-
"title": "Magic Options Schema",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"properties": {
|
|
7
|
-
"skipInstall": {
|
|
8
|
-
"type": "boolean",
|
|
9
|
-
"default": false,
|
|
10
|
-
"description": "Do not install the new packages (e.g., --skipInstall)"
|
|
11
|
-
},
|
|
12
|
-
"skipPackageJson": {
|
|
13
|
-
"type": "boolean",
|
|
14
|
-
"default": false,
|
|
15
|
-
"description": "Do not add magic dependencies to package.json (e.g., --skipPackageJson)"
|
|
16
|
-
},
|
|
17
|
-
"skipHelp": {
|
|
18
|
-
"type": "boolean",
|
|
19
|
-
"default": false,
|
|
20
|
-
"description": "Whether to create Startup Welcome Pag (e.g., --skipHelp)"
|
|
21
|
-
},
|
|
22
|
-
"project":{
|
|
23
|
-
"type": "string",
|
|
24
|
-
"description": "The name of the project",
|
|
25
|
-
"aliases" : ["p"]
|
|
26
|
-
},
|
|
27
|
-
"cliVersion":{
|
|
28
|
-
"type": "string",
|
|
29
|
-
"default": "*",
|
|
30
|
-
"description": "The cli version ",
|
|
31
|
-
"aliases" : ["c"]
|
|
32
|
-
},
|
|
33
|
-
"angularVersion":{
|
|
34
|
-
"type": "string",
|
|
35
|
-
"default": "*",
|
|
36
|
-
"description": "The angular version ",
|
|
37
|
-
"aliases" : ["a"]
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
"required": []
|
|
41
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "SchematicsMagicAddTasks",
|
|
4
|
+
"title": "Magic Options Schema",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"skipInstall": {
|
|
8
|
+
"type": "boolean",
|
|
9
|
+
"default": false,
|
|
10
|
+
"description": "Do not install the new packages (e.g., --skipInstall)"
|
|
11
|
+
},
|
|
12
|
+
"skipPackageJson": {
|
|
13
|
+
"type": "boolean",
|
|
14
|
+
"default": false,
|
|
15
|
+
"description": "Do not add magic dependencies to package.json (e.g., --skipPackageJson)"
|
|
16
|
+
},
|
|
17
|
+
"skipHelp": {
|
|
18
|
+
"type": "boolean",
|
|
19
|
+
"default": false,
|
|
20
|
+
"description": "Whether to create Startup Welcome Pag (e.g., --skipHelp)"
|
|
21
|
+
},
|
|
22
|
+
"project":{
|
|
23
|
+
"type": "string",
|
|
24
|
+
"description": "The name of the project",
|
|
25
|
+
"aliases" : ["p"]
|
|
26
|
+
},
|
|
27
|
+
"cliVersion":{
|
|
28
|
+
"type": "string",
|
|
29
|
+
"default": "*",
|
|
30
|
+
"description": "The cli version ",
|
|
31
|
+
"aliases" : ["c"]
|
|
32
|
+
},
|
|
33
|
+
"angularVersion":{
|
|
34
|
+
"type": "string",
|
|
35
|
+
"default": "*",
|
|
36
|
+
"description": "The angular version ",
|
|
37
|
+
"aliases" : ["a"]
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"required": []
|
|
41
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;AAKA,sCAKC;AAVD,2DAAsD;AACtD,4FAAmF;AACnF,gDAAuD;AAGvD,SAAgB,aAAa,CAAC,OAAyB;IACrD,OAAO,IAAA,kBAAK,EAAC;QACX,IAAA,4CAAiB,EAAE,OAAO,CAAC;QAC3B,IAAA,wBAAgB,EAAG,OAAO,CAAC;KAC5B,CAAC,CAAC;AACL,CAAC","sourcesContent":["import {chain,Rule} from \"@angular-devkit/schematics\";\
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;AAKA,sCAKC;AAVD,2DAAsD;AACtD,4FAAmF;AACnF,gDAAuD;AAGvD,SAAgB,aAAa,CAAC,OAAyB;IACrD,OAAO,IAAA,kBAAK,EAAC;QACX,IAAA,4CAAiB,EAAE,OAAO,CAAC;QAC3B,IAAA,wBAAgB,EAAG,OAAO,CAAC;KAC5B,CAAC,CAAC;AACL,CAAC","sourcesContent":["import {chain,Rule} from \"@angular-devkit/schematics\";\nimport { initMagicMetadata} from \"../magic-utils/rules/init-magic-metadata.rule\";\nimport { deleteMagicFiles} from \"../magic-utils/utils\";\nimport { MagicOptionScheme } from \"../magic-utils/rules/magic-option.scheme\";\n\nexport function mgDeleteFiles(options:MagicOptionScheme): Rule {\n return chain([\n initMagicMetadata (options),\n deleteMagicFiles (options),\n ]);\n}\n\n"]}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {chain,Rule} from "@angular-devkit/schematics";
|
|
2
|
-
import { initMagicMetadata} from "../magic-utils/rules/init-magic-metadata.rule";
|
|
3
|
-
import { deleteMagicFiles} from "../magic-utils/utils";
|
|
4
|
-
import { MagicOptionScheme } from "../magic-utils/rules/magic-option.scheme";
|
|
5
|
-
|
|
6
|
-
export function mgDeleteFiles(options:MagicOptionScheme): Rule {
|
|
7
|
-
return chain([
|
|
8
|
-
initMagicMetadata (options),
|
|
9
|
-
deleteMagicFiles (options),
|
|
10
|
-
]);
|
|
11
|
-
}
|
|
12
|
-
|
|
1
|
+
import {chain,Rule} from "@angular-devkit/schematics";
|
|
2
|
+
import { initMagicMetadata} from "../magic-utils/rules/init-magic-metadata.rule";
|
|
3
|
+
import { deleteMagicFiles} from "../magic-utils/utils";
|
|
4
|
+
import { MagicOptionScheme } from "../magic-utils/rules/magic-option.scheme";
|
|
5
|
+
|
|
6
|
+
export function mgDeleteFiles(options:MagicOptionScheme): Rule {
|
|
7
|
+
return chain([
|
|
8
|
+
initMagicMetadata (options),
|
|
9
|
+
deleteMagicFiles (options),
|
|
10
|
+
]);
|
|
11
|
+
}
|
|
12
|
+
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/schema",
|
|
3
|
-
"$id": "SchematicsMagicDeleteFiles",
|
|
4
|
-
"title": "Magic Options Schema",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"properties": {
|
|
7
|
-
"project":{
|
|
8
|
-
"type": "string",
|
|
9
|
-
"description": "The name of the project",
|
|
10
|
-
"aliases" : ["p"]
|
|
11
|
-
}
|
|
12
|
-
},
|
|
13
|
-
"required": []
|
|
14
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "SchematicsMagicDeleteFiles",
|
|
4
|
+
"title": "Magic Options Schema",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"project":{
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "The name of the project",
|
|
10
|
+
"aliases" : ["p"]
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"required": []
|
|
14
|
+
}
|