I wanted to copy all files in a folder, but I wanted to exclude a particular file-extension in a sub-folder. How can I do that?
Here's a snippet of my code:
frontendDev: {
files: [{
expand: true,
cwd: './frontend/app',
…
I have the following copy task in a gruntfile.js
copy: {
css: {
expand: true,
cwd: 'min/css',
src: 'theme_<%= props.majorversion %>.<%= props.minorversion %>.min.css',
dest:…
Instead of adding the destinations in the dest attribute I would like to make it dynamic so I can assign the destinations when I run the task from the command line or when I run it from another task. That way I can copy the file to any folder(s) I…
I would like to write a Grunt task that, during build, will copy all .html files that I have and make an .asp version of it in /dist as well.
I have been trying to use grunt-contrib-copy to accomplish this, and here's what I have:
copy: {
//some…
I want to copy all js into one folder which belongs to angular Like angular, angular-cookies, angular-resource and angular-route etc.
I was trying to add regex for cwd but it fails to copy.
Folder Structure:
app(route…
I want to copy style.css in the build directory to overwrite the style.css in the main project directory.
This is my file structure
project
├── assets
│ ├── styles
│ │ └── build
│ │ └── style.css
│ └── gruntfile.js
└── style.css
In…
Is it possible to copy one file to multiple directories with Grunt?
ie :
expand: true,
cwd: '<%= yeoman.app %>',
dest: '<%= yeoman.app %>/client/*',
src: 'core/index.html'
Where the * is all the subfolders inside the clients folder.
Thank you!
I have the following directories tree:
- client
- plugins
- plugin1
- plugin2
- plugin3
- widgets
- widget1
- widget2
- resources
- img
I need to copy all files from…
I have installed fontawesome with bower and am using grunt's "grunt-contrib-copy" to copy it to a diff directory.
When I manually copy it, the font works ... but, when grunt does it, they do not work.
Now, I checked the files, and I noticed grunt's…
Looks like it's not re-copying my files when I click save anywhere on my development files (so I want to re-copy onto the Production folder immediately). Here is the part from my Gruntfile.js.
Location of this file: /development/Gruntfile.js
Where I…
I'm trying to use grunt-contrib-copy (version 0.4.1) to rewrite some strings inside a file during the build process. As a test I can copy the file, so it's not a permissions or location problem.
These are the options for the fileProcessor task (in…
I have a grunt contrib copy task that will copy a file correctly, but I would also like to change a file path that is repeated through out the the content of the file that is being copied. I do not have a lot of experience with javascript regular…
I have an express app with my dev views in /assets/views. I figure I need to separate development and production views because in production I'll be editing the HTML when I used grunt-contrib-usemin to concat/uglify scripts.
So here's the problem.…
I am using grunt-contrib-copy to create a build/ folder for my NodeJS express application before deploying it. When running the command, it fails with the error that the folder already exists (Error code: EEXIST).
The copy block in the Gruntfile…
Not sure if this is possible, but I want to specify a variable to construct a destination path when using grunt-contrib-copy like so:
module.exports = function(grunt) {
var $globals = {
buildPath: 'default'
};
…