Questions tagged [grunt-contrib-copy]

Copy files and folders.

Grunt task to copy files and folders.

131 questions
0
votes
1 answer

How to use grunt to copy a series of files to the same directory they come from?

I have a series of directories like... component A - t9n - componentAT9n.json component B - t9n - componentBT9N.json Where each of these directories I need to duplicate the one file ending in t9n.json to _en.json ultimately ending up…
Carson Wood
  • 1,174
  • 3
  • 14
  • 23
0
votes
0 answers

Why it says Task "speak" not found. Use --force to continue

I have a problem with grunt. My Grunt version is: grunt-cli v1.4.3 grunt v1.4.1 An Error occurs as I run any task. Warning: Task "speak" not found. Use --force to continue. This occurs with every function I run (for example grunt css or…
0
votes
1 answer

Grunt copy plugin not able to configure

I'm new to grunt and for my project I'm using grunt-contrib-copy plugin.My folder structure is: module.exports = function(grunt){ const sass = require('node-sass'); require('load-grunt-tasks')(grunt); grunt.initConfig({ sass: { …
Sajjad Tabreez
  • 188
  • 4
  • 21
0
votes
2 answers

Grunt loop for copy task, but copying only last file

Can you help me with this problem? I'm trying to create a function in Gruntfile.js to copy template files to my project using a loop and .json file to "automate" a copy job, apparently the function looks great because Grunt runs the copy job…
luanmessias
  • 96
  • 1
  • 6
0
votes
1 answer

grunt-contrib-copy task is not copying

I am writing grunt-contrib-copy task to copy from source to dest. But no files are copied. Even there are no errors. I am not able to understand what is happening. copy:{ index: { files: [ { …
Sammi
  • 109
  • 3
  • 11
0
votes
1 answer

grunt copy part of a sorted directory

I have a directory structure like the following: dist/ static/ static/keep1 static/keep2 static/versions/1 static/versions/2 static/versions/3 I want to copy everything from static into dist, with the exception of the versions directory. I want to…
s g
  • 5,289
  • 10
  • 49
  • 82
0
votes
2 answers

Grunt watch to fire different tasks in different environments

After GruntJS generates my CSS+JS, I want it to copy the generated files to the appropriate places on the servers, and so I've set up different grunt-copy tasks to do so. The paths to copy to are different for the development and production…
thugsb
  • 22,856
  • 6
  • 30
  • 44
0
votes
1 answer

grunt-contrib-copy is corrupting binary files

I am using the "grunt-contrib-copy": "^1.0.0" and the copied binary files are getting damaged, Please look at my grunt configuration and help me on this. copy: { options: { // exclude binary format from the processContent function …
Jaini Naveen
  • 155
  • 1
  • 17
0
votes
0 answers

grunt-contrib-copy - Copy HTML file from ROOT to DIST folder with different assets path

I am trying to copy HTML file from ROOT folder to DIST folder and that HTML will be minified. I've already achieved that so far. Now, when the HTML files is being copied to DIST folder, I want to change the INCLUDE path within all included CSS and…
0
votes
1 answer

extra c: added to destination path on windows ((Error code: ENOENT))

Using latest version of grunt if we try to work like copying copy: { main: { files: [ { expand: true src: ['/dev/war archive/latestfile/**/*.txt'], dest: '/fernando/backups/pbuse/war', filter…
HariKishore K
  • 399
  • 3
  • 6
0
votes
1 answer

grunt copy - Couldn't load the png image

I am new to grunt. I am copying the src folder to build by running the command grunt copy. But I can't open all png images in the build folder(destination folder). I got a fatal error while trying to open the image. Errors: "Could not…
Surya Raj M
  • 988
  • 1
  • 10
  • 20
0
votes
1 answer

How can I duplicate a folder structure multiple times using grunt / grunt-contrib-copy

I have a folder structure that i need to duplicate with custom names to start a project - I've looked at modifying grunt-contrib-copy with a custom function: var gruntCopy = grunt.config.get('copy'); for (var item in gruntCopy) { var files…
0
votes
2 answers

Adapt dest folder to ** globbing pattern

I'm working with grunt-contrib-copy. I have this file tree: `-- src `-- model |-- a4 | `-- public | |-- css | |-- img | `-- js |-- posters | `-- public | …
mombul
  • 327
  • 1
  • 10
0
votes
1 answer

Grunt: Copy directory where dir name is dynamic?

I am decking out my own version of Yii2 advanced with Grunt to handle everything. From resetting Yii2 back to factory (removing -local.php, cleaning logs, assets, etc), using Gulp for asset handling, combining and minifying CSS and JS, with LESS,…
Wade
  • 3,757
  • 2
  • 32
  • 51
0
votes
1 answer

Grunt Copy from Windows C Drive to Mapped Network Drive

Background I have a local set of files on my computer, under C:/websites/PROJECT. I would like to use Grunt to copy these files to a live server when I'm ready to push changes. I have access to the live server, which is self hosted. I can access it…
Kelderic
  • 6,502
  • 8
  • 46
  • 85
1 2 3
8 9