@@ -19,8 +19,8 @@ module.exports = yeoman.Base.extend({
19
19
licenseChecker : false
20
20
} ;
21
21
22
+ this . props . licenseHeader = this . fs . read ( path . join ( __dirname , './alfresco-license-header.ts' ) ) ;
22
23
if ( this . options . alfresco ) {
23
- this . props . licenseHeader = this . fs . read ( path . join ( __dirname , './alfresco-license-header.ts' ) ) ;
24
24
this . props . licenseChecker = true ;
25
25
}
26
26
} ,
@@ -141,13 +141,6 @@ module.exports = yeoman.Base.extend({
141
141
writing : function ( ) {
142
142
this . props . projectNameCamelCase = _ . chain ( this . props . projectName ) . camelCase ( ) . upperFirst ( ) ;
143
143
144
- if ( this . props . licenseChecker ) {
145
- this . fs . copyTpl (
146
- this . templatePath ( '_license_header.txt' ) ,
147
- this . destinationPath ( 'assets/license_header.txt' )
148
- ) ;
149
- }
150
-
151
144
this . fs . copyTpl (
152
145
this . templatePath ( '_karma.conf.js' ) ,
153
146
this . destinationPath ( 'karma.conf.js' )
@@ -158,14 +151,64 @@ module.exports = yeoman.Base.extend({
158
151
this . destinationPath ( 'karma-test-shim.js' )
159
152
) ;
160
153
154
+ ////config folder
155
+ //
161
156
this . fs . copy (
162
- this . templatePath ( '_tsconfig.json' ) ,
163
- this . destinationPath ( 'tsconfig.json' )
157
+ this . templatePath ( 'config/assets/_license_header.txt' ) ,
158
+ this . destinationPath ( 'config/assets/license_header.txt' )
159
+ ) ;
160
+
161
+ this . fs . copy (
162
+ this . templatePath ( 'config/assets/_license_header_add.txt' ) ,
163
+ this . destinationPath ( 'config/assets/license_header_add.txt' )
164
+ ) ;
165
+
166
+ this . fs . copy (
167
+ this . templatePath ( 'config/assets/_tslint.json' ) ,
168
+ this . destinationPath ( 'config/assets/tslint.json' )
169
+ ) ;
170
+
171
+ this . fs . copy (
172
+ this . templatePath ( 'config/custom-loaders/_file-loader-multi.js' ) ,
173
+ this . destinationPath ( 'config/custom-loaders/file-loader-multi.js' )
174
+ ) ;
175
+
176
+ this . fs . copy (
177
+ this . templatePath ( 'config/custom-loaders/_license-check.js' ) ,
178
+ this . destinationPath ( 'config/custom-loaders/license-check.js' )
179
+ ) ;
180
+
181
+ this . fs . copy (
182
+ this . templatePath ( 'config/_helpers.js' ) ,
183
+ this . destinationPath ( 'config/helpers.js' )
184
+ ) ;
185
+
186
+ this . fs . copy (
187
+ this . templatePath ( 'config/_webpack.common.js' ) ,
188
+ this . destinationPath ( 'config/webpack.common.js' )
189
+ ) ;
190
+
191
+ this . fs . copy (
192
+ this . templatePath ( 'config/_webpack.test.js' ) ,
193
+ this . destinationPath ( 'config/webpack.test.js' )
194
+ ) ;
195
+
196
+ this . fs . copyTpl (
197
+ this . templatePath ( '_webpack.build.js' ) ,
198
+ this . destinationPath ( 'webpack.build.js' ) ,
199
+ this . props
164
200
) ;
165
201
166
202
this . fs . copy (
167
- this . templatePath ( '_tslint.json' ) ,
168
- this . destinationPath ( 'tslint.json' )
203
+ this . templatePath ( '_webpack.test.js' ) ,
204
+ this . destinationPath ( 'webpack.test.js' )
205
+ ) ;
206
+ //
207
+ ////
208
+
209
+ this . fs . copy (
210
+ this . templatePath ( '_tsconfig.json' ) ,
211
+ this . destinationPath ( 'tsconfig.json' )
169
212
) ;
170
213
171
214
this . fs . copy (
@@ -189,12 +232,6 @@ module.exports = yeoman.Base.extend({
189
232
this . props
190
233
) ;
191
234
192
- this . fs . copyTpl (
193
- this . templatePath ( '_gulpfile.ts' ) ,
194
- this . destinationPath ( 'gulpfile.ts' ) ,
195
- this . props
196
- ) ;
197
-
198
235
this . fs . copyTpl (
199
236
this . templatePath ( '_sourceFile.ts' ) ,
200
237
this . destinationPath ( 'src/' + this . props . projectName + '.component.ts' ) ,
0 commit comments