@@ -86,43 +86,53 @@ export default class extends BaseGenerator {
86
86
[
87
87
`${ dir } /assets` ,
88
88
`${ dir } /utils` ,
89
- `${ dir } /app/components/${ lc } ` ,
90
- `${ dir } /app/components/common` ,
91
- `${ dir } /app/components/svg` ,
89
+ `${ dir } /app/components/${ lc } /create` ,
90
+ `${ dir } /app/components/${ lc } /edit` ,
91
+ `${ dir } /app/components/${ lc } /list` ,
92
+ `${ dir } /app/components/${ lc } /show` ,
93
+ `${ dir } /app/components/common/delete` ,
94
+ `${ dir } /app/components/common/form` ,
95
+ `${ dir } /app/components/common/header` ,
96
+ `${ dir } /app/components/common/sidebar` ,
97
+ `${ dir } /app/components/common/table` ,
98
+ `${ dir } /app/components/svg/list-svg` ,
99
+ `${ dir } /app/components/svg/menu` ,
92
100
`${ dir } /app/interface` ,
93
101
`${ dir } /app/router` ,
94
102
`${ dir } /app/service` ,
95
103
] . forEach ( ( dir ) => this . createDir ( dir , false ) ) ;
96
104
97
105
//CREATE FILE
98
106
[
99
- `${ dir } /app/components/svg/list-svg/list-svg.component.svg` ,
100
- `${ dir } /app/components/svg/list-svg/list-svg.component.ts` ,
101
- `${ dir } /app/components/svg/menu/menu.component.svg` ,
102
- `${ dir } /app/components/svg/menu/menu.component.ts` ,
103
- `${ dir } /app/components/common/delete/delete.component.html` ,
104
- `${ dir } /app/components/common/delete/delete.component.ts` ,
105
- `${ dir } /app/components/common/form/form.component.html` ,
106
- `${ dir } /app/components/common/form/form.component.ts` ,
107
- `${ dir } /app/components/common/header/header.component.html` ,
108
- `${ dir } /app/components/common/header/header.component.ts` ,
109
- `${ dir } /app/components/common/sidebar/sidebar.component.html` ,
110
- `${ dir } /app/components/common/sidebar/sidebar.component.ts` ,
111
- `${ dir } /app/components/common/table/table.component.html` ,
112
- `${ dir } /app/app.component.html` ,
113
- `${ dir } /app/app.component.ts` ,
114
- `${ dir } /app/app.routes.ts` ,
115
- ] . forEach ( ( file ) => this . createFile ( file , file , context , false ) ) ;
107
+ "app/components/svg/list-svg/list-svg.component.svg" ,
108
+ "app/components/svg/list-svg/list-svg.component.ts" ,
109
+ "app/components/svg/menu/menu.component.svg" ,
110
+ "app/components/svg/menu/menu.component.ts" ,
111
+ "app/components/common/delete/delete.component.html" ,
112
+ "app/components/common/delete/delete.component.ts" ,
113
+ "app/components/common/form/form.component.html" ,
114
+ "app/components/common/form/form.component.ts" ,
115
+ "app/components/common/header/header.component.html" ,
116
+ "app/components/common/header/header.component.ts" ,
117
+ "app/components/common/sidebar/sidebar.component.html" ,
118
+ "app/components/common/sidebar/sidebar.component.ts" ,
119
+
120
+ "app/app.component.html" ,
121
+ "app/app.component.ts" ,
122
+ "app/app.routes.ts" ,
123
+ ] . forEach ( ( file ) =>
124
+ this . createFile ( file , `${ dir } /${ file } ` , context , false )
125
+ ) ;
116
126
117
127
[
118
- ` app/components/%s/create/create.component.html",
128
+ " app/components/%s/create/create.component.html",
119
129
"app/components/%s/create/create.component.ts" ,
120
130
"app/components/%s/edit/edit.component.html" ,
121
131
"app/components/%s/edit/edit.component.ts" ,
122
132
"app/components/%s/list/list.component.html" ,
123
133
"app/components/%s/list/list.component.ts" ,
124
134
"app/components/%s/show/show.component.html" ,
125
- "app/components/%s/show/show.component.ts",` ,
135
+ "app/components/%s/show/show.component.ts" ,
126
136
] . forEach ( ( file ) => this . createFileFromPattern ( file , dir , [ lc ] , context ) ) ;
127
137
}
128
138
0 commit comments