Questions tagged [grunt-contrib-copy]

Copy files and folders.

Grunt task to copy files and folders.

131 questions
0
votes
1 answer

Webstorm breakpoints not working with grunt copy

As part of the dev workflow grunt-contrib-copy is copying files from /src to /dist where the node server & debugger are running. When I create breakpoints within /dist everything works perfectly with the debugger, but when I create them in /src they…
benc
  • 1,978
  • 3
  • 15
  • 22
0
votes
2 answers

Copy is not working in grunt

module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), copy: { files: [ {expand: true,cwd:"js/" ,src: ['libs/*'], dest: '../test/js/libs/'}, {expand:…
Abdul
  • 942
  • 2
  • 14
  • 32
0
votes
1 answer

Copy a folder with files and folders

I have a subdir and in there, there are many more folders and files. So what I want is to copy the subdir with all the folders and files. This is what it looks like now: . ├── Gruntfile.js └── src ├── a └── subdir └── b …
RiesvGeffen
  • 1,539
  • 2
  • 11
  • 29
0
votes
1 answer

Can't copy from Windows to OSX with grunt

Trying to grunt-contrib-copy files from a remote Windows 10 computer to OSX. This all used to work perfectly for several years, For the last couple of months it's stopped working. It could have been around the time I upgraded the remote host to…
BlinkyBill
  • 397
  • 2
  • 12
0
votes
1 answer

grunt custom task copying files that should be omitted

I have a pair of grunt copy tasks defined: copy : { develop : { expand : true, flatten : false, cwd : "develop/", src : ["index.html", "gwt/**/*", "!**/*.less", "!**/*.scss", "modules/**/*", "components/**/*",…
Jason
  • 11,263
  • 21
  • 87
  • 181
0
votes
1 answer

Grunt copy exclude folder entirely (not just contents)

[edit: solved, see answer below] I would like to run a grunt-contrib-copy task that will copy everything from one directory (a source directory) to another location (a distribution directory) with the exception of one folder. In other words, given…
Greg Pettit
  • 10,749
  • 5
  • 53
  • 72
0
votes
1 answer

Yeoman/gruntjs angularjs and directives with html files in the folder

i'm using yeoman as tool for mantaining the app organized. Since i've many directives i did not use the standard way the yeoman generate the directive, thus scripts/directive/name.js for the code and views/template_directive.html for the template.…
EsseTi
  • 4,079
  • 5
  • 36
  • 63
0
votes
1 answer

grunt.file write/copy with permissions

Is there a way to specify the permissions of a file during a grunt.file.copy(...), except using the 'fs.chmod' after copy has finished? I will have to require the whole 'fs' module otherwise, just for changing the permissions. Will it be a lot of…
Gautam
  • 108
  • 8
0
votes
1 answer

How to use dynamic values in Grunt tasks called from inside a forEach?

We are trying to run grunt tasks using grunt.config.set for dynamically concatinated strings. These grunt.configs are set in a forEach loop and change each time before the task is run. This does unfortunately not work, as grunt only uses the last…
count1k
  • 3
  • 2
0
votes
1 answer

How to tell Lineman to copy all files from /dist to a different directory?

When I run lineman build it generates all the minified CSS and JS in the /dist directory. I can't figure out how to make it copy those minified files into a different directory( My Public Directory at path - ../lib/app/public). My Lineman…
Praveen Puglia
  • 5,577
  • 5
  • 34
  • 68
0
votes
1 answer

exclude multiple files with one sentence in grunt

I wanna exclude multiple files with specific file name in grunt copy task, and the config now is this: src: [ '**', '!**/{master, client, socket}.*', '!**/*.map' ] but it only excludes file named with "master". It there a way to exclude…
Dolphin_Wood
  • 847
  • 5
  • 19
0
votes
2 answers

Why is Grunt Copy giving me an 'undefined is not a function' warning?

I'm using Grunt as a build tool (surprise) and I'm using grunt-contrib-copy as a debugging and early development tool. I've scouted my code multiple times, and I don't understand why I'm getting an error. Here is my code. Gruntfile.js module.exports…
0
votes
1 answer

Grunt copy format

Take for example these two grunt configs: copy: { dist: { files: [ ... ] } } and copy: { dist: { ... } } } "copy" is my task, "dist" is my target, but what is "files"? Seems to work all…
Julian
  • 8,808
  • 8
  • 51
  • 90
0
votes
2 answers

Copy files from parent folder with grunt-contrib-copy

I am trying to copy files over from a parent folder using grunt-contrib-copy. My folder structure is: -libs -html5shiv -respond -jquery -apps -exampleApp1 -GruntFile.js -build -exampleApp2 -GruntFile.js -build I am trying…
Daan van Hulst
  • 1,426
  • 15
  • 32
0
votes
1 answer

How to copy files from a directory to its parent directory by using copy command of grunt

I am developing an application in angular js and GRUNT build tool. I want to copy all the files of demo directory to its parent directory. For example the folder structure is like below root | parent1 | Demo | file1 file2 Like…
Anuradha
  • 169
  • 1
  • 10
1 2 3
8 9