@@ -265,9 +265,9 @@ module.exports = function (grunt) {
265
265
filerev: {
266
266
dist : {
267
267
src : [
268
- '<%%= yeoman.dist %>/client/!(bower_components){,*/}*.{js,css}' ,
269
- '<%%= yeoman.dist %>/client/assets/images/{,*/}*.{png,jpg,jpeg,gif,webp,svg}' ,
270
- '<%%= yeoman.dist %>/client/assets/fonts/*'
268
+ '<%%= yeoman.dist %>/<%%= yeoman. client %> /!(bower_components){,*/}*.{js,css}' ,
269
+ '<%%= yeoman.dist %>/<%%= yeoman. client %> /assets/images/{,*/}*.{png,jpg,jpeg,gif,webp,svg}' ,
270
+ '<%%= yeoman.dist %>/<%%= yeoman. client %> /assets/fonts/*'
271
271
]
272
272
}
273
273
} ,
@@ -278,19 +278,19 @@ module.exports = function (grunt) {
278
278
useminPrepare: {
279
279
html : [ '<%%= yeoman.client %>/index.html' ] ,
280
280
options : {
281
- dest : '<%%= yeoman.dist %>/client'
281
+ dest : '<%%= yeoman.dist %>/<%%= yeoman. client %> '
282
282
}
283
283
} ,
284
284
285
285
// Performs rewrites based on rev and the useminPrepare configuration
286
286
usemin: {
287
- html : [ '<%%= yeoman.dist %>/client/{,!(bower_components)/**/}*.html' ] ,
288
- css : [ '<%%= yeoman.dist %>/client/!(bower_components){,*/}*.css' ] ,
289
- js : [ '<%%= yeoman.dist %>/client/!(bower_components){,*/}*.js' ] ,
287
+ html : [ '<%%= yeoman.dist %>/<%%= yeoman. client %> /{,!(bower_components)/**/}*.html' ] ,
288
+ css : [ '<%%= yeoman.dist %>/<%%= yeoman. client %> /!(bower_components){,*/}*.css' ] ,
289
+ js : [ '<%%= yeoman.dist %>/<%%= yeoman. client %> /!(bower_components){,*/}*.js' ] ,
290
290
options : {
291
291
assetsDirs : [
292
- '<%%= yeoman.dist %>/client' ,
293
- '<%%= yeoman.dist %>/client/assets/images'
292
+ '<%%= yeoman.dist %>/<%%= yeoman. client %> ' ,
293
+ '<%%= yeoman.dist %>/<%%= yeoman. client %> /assets/images'
294
294
] ,
295
295
// This is so we update image references in our ng-templates
296
296
patterns : {
@@ -308,7 +308,7 @@ module.exports = function (grunt) {
308
308
expand : true ,
309
309
cwd : '<%%= yeoman.client %>/assets/images' ,
310
310
src : '{,*/}*.{png,jpg,jpeg,gif,svg}' ,
311
- dest : '<%%= yeoman.dist %>/client/assets/images'
311
+ dest : '<%%= yeoman.dist %>/<%%= yeoman. client %> /assets/images'
312
312
} ]
313
313
}
314
314
} ,
@@ -357,7 +357,7 @@ module.exports = function (grunt) {
357
357
// Replace Google CDN references
358
358
cdnify: {
359
359
dist : {
360
- html : [ '<%%= yeoman.dist %>/client/*.html' ]
360
+ html : [ '<%%= yeoman.dist %>/<%%= yeoman. client %> /*.html' ]
361
361
}
362
362
} ,
363
363
@@ -368,7 +368,7 @@ module.exports = function (grunt) {
368
368
expand : true ,
369
369
dot : true ,
370
370
cwd : '<%%= yeoman.client %>' ,
371
- dest : '<%%= yeoman.dist %>/client' ,
371
+ dest : '<%%= yeoman.dist %>/<%%= yeoman. client %> ' ,
372
372
src : [
373
373
'*.{ico,png,txt}' ,
374
374
'.htaccess' ,
@@ -380,7 +380,7 @@ module.exports = function (grunt) {
380
380
} , {
381
381
expand : true ,
382
382
cwd : '.tmp/images' ,
383
- dest : '<%%= yeoman.dist %>/client/assets/images' ,
383
+ dest : '<%%= yeoman.dist %>/<%%= yeoman. client %> /assets/images' ,
384
384
src : [ 'generated/*' ]
385
385
} , {
386
386
expand : true ,
@@ -623,7 +623,8 @@ module.exports = function (grunt) {
623
623
scripts: {
624
624
options : {
625
625
transform : function ( filePath ) {
626
- filePath = filePath . replace ( '/client/' , '' ) ;
626
+ var yoClient = grunt . config . get ( 'yeoman.client' ) ;
627
+ filePath = filePath . replace ( '/' + yoClient + '/' , '' ) ;
627
628
filePath = filePath . replace ( '/.tmp/' , '' ) ;
628
629
return '<script src="' + filePath + '"></script>' ;
629
630
} ,
@@ -645,8 +646,9 @@ module.exports = function (grunt) {
645
646
stylus: {
646
647
options : {
647
648
transform : function ( filePath ) {
648
- filePath = filePath . replace ( '/client/app/' , '' ) ;
649
- filePath = filePath . replace ( '/client/components/' , '../components/' ) ;
649
+ var yoClient = grunt . config . get ( 'yeoman.client' ) ;
650
+ filePath = filePath . replace ( '/' + yoClient + '/app/' , '' ) ;
651
+ filePath = filePath . replace ( '/' + yoClient + '/components/' , '../components/' ) ;
650
652
return '@import \'' + filePath + '\';' ;
651
653
} ,
652
654
starttag : '// injector' ,
@@ -664,8 +666,9 @@ module.exports = function (grunt) {
664
666
sass: {
665
667
options : {
666
668
transform : function ( filePath ) {
667
- filePath = filePath . replace ( '/client/app/' , '' ) ;
668
- filePath = filePath . replace ( '/client/components/' , '../components/' ) ;
669
+ var yoClient = grunt . config . get ( 'yeoman.client' ) ;
670
+ filePath = filePath . replace ( '/' + yoClient + '/app/' , '' ) ;
671
+ filePath = filePath . replace ( '/' + yoClient + '/components/' , '../components/' ) ;
669
672
return '@import \'' + filePath + '\';' ;
670
673
} ,
671
674
starttag : '// injector' ,
@@ -683,8 +686,9 @@ module.exports = function (grunt) {
683
686
less: {
684
687
options : {
685
688
transform : function ( filePath ) {
686
- filePath = filePath . replace ( '/client/app/' , '' ) ;
687
- filePath = filePath . replace ( '/client/components/' , '../components/' ) ;
689
+ var yoClient = grunt . config . get ( 'yeoman.client' ) ;
690
+ filePath = filePath . replace ( '/' + yoClient + '/app/' , '' ) ;
691
+ filePath = filePath . replace ( '/' + yoClient + '/components/' , '../components/' ) ;
688
692
return '@import \'' + filePath + '\';' ;
689
693
} ,
690
694
starttag : '// injector' ,
@@ -702,7 +706,8 @@ module.exports = function (grunt) {
702
706
css: {
703
707
options : {
704
708
transform : function ( filePath ) {
705
- filePath = filePath . replace ( '/client/' , '' ) ;
709
+ var yoClient = grunt . config . get ( 'yeoman.client' ) ;
710
+ filePath = filePath . replace ( '/' + yoClient + '/' , '' ) ;
706
711
filePath = filePath . replace ( '/.tmp/' , '' ) ;
707
712
return '<link rel="stylesheet" href="' + filePath + '">' ;
708
713
} ,
0 commit comments