File tree Expand file tree Collapse file tree 3 files changed +12
-4
lines changed Expand file tree Collapse file tree 3 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -8,9 +8,9 @@ module.exports = {
88 return baseUrl + value ;
99 } ) ;
1010 } ,
11- canRsync : function ( ) {
11+ canRsync : function ( options ) {
1212 // Enable process.platform to be mocked in options for testing.
13- var platform = options . platform || process . platform ;
13+ var platform = options && options . platform ? options . platform : process . platform ;
1414 return platform !== "win32" ;
1515 }
1616} ;
Original file line number Diff line number Diff line change @@ -11,7 +11,15 @@ module.exports = function(grunt) {
1111 grunt . loadNpmTasks ( 'grunt-composer' ) ;
1212 var Help = require ( '../lib/help' ) ( grunt ) ;
1313
14- grunt . config ( [ 'composer' , 'install' ] , { } ) ;
14+ grunt . config ( [ 'composer' , 'install' ] , {
15+ options : {
16+ flags : [
17+ 'no-interaction' ,
18+ 'no-progress' ,
19+ 'prefer-dist'
20+ ] ,
21+ }
22+ } ) ;
1523
1624 Help . add ( {
1725 task : 'composer' ,
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ module.exports = function(grunt) {
5757 'clean:temp' ,
5858 'drush:make' ,
5959 'clean:default' ,
60- gdt . canRsync ? 'rsync:tempbuild' : 'copy:tempbuild' ,
60+ gdt . canRsync ( ) ? 'rsync:tempbuild' : 'copy:tempbuild' ,
6161 'clean:temp'
6262 ]
6363 }
You can’t perform that action at this time.
0 commit comments