gruntjs - How do i copy entire folder from one place to another with grunt-contrib-copy? -
what correct way copy 2 folders 1 place another:
this code wrote , not correct one, want following:
copy: { main: { files: [ // includes files within path {src: ['public/modules/game'], dest: 'footboss-phonegap/www/modules/'}, // includes files within path , sub-directories {src: ['public/modules/core'], dest: 'footboss-phonegap/www/modules/'} ] } }
i want copy entire folder name game public/modules/
and copy empty direcory in footboss-phonegap/www/modules/
so in end structure in footboss-phonegap/www/modules/
-game (full folder src) -core (full folder src)
well, answer needed: cwd how should src when files need transfer not js, of them (html,css,mp3 etc.)
copy: { main: { files: [ // includes files within path {expand:true,cwd:'public/modules/game', src: ['**/*'], dest: 'footboss-phonegap/www/modules/game'}, // includes files within path , sub-directories {expand:true,cwd:'public/modules/core', src: ['**/*'], dest: 'footboss-phonegap/www/modules/core'} ] } }
Comments
Post a Comment