You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
copy: {
build: {
files: [
//Copy the javascript files
{
expand: true, // Enable dynamic expansion.
cwd: 'scripts/',
src: ['**/*.js'], // Actual pattern(s) to match.
dest: '../js/', // Destination path prefix.
ext: '.js', // Dest filepaths will have this extension.
rename: function(dest, src){
return dest + src; //this is actually much more complicated in my code
}
},
//Copy the javascript files -debug
{
expand: true, // Enable dynamic expansion.
cwd: '../js/',
src: ['**/*.js'], // Actual pattern(s) to match.
dest: '../js/', // Destination path prefix.
ext: '-debug.js', // Dest filepaths will have this extension.
},
],
}
}
What I want to do is this:
Drop into scripts folder and do some processing and renaming so that the result lives in ../js.
Go into ../js and go through each .js file and for each file, make an exact copy in the exact location with the filename ending in -debug.js.
With my current config, if I run grunt the first time, only the first task (drop into scripts and do the processing/copying)` would run.
I need to run grunt again in order for the second copy (debug) to be generated.
It seems to me that before performing any copy, it actually first check to see if all the copy rules can be executed even though the second copy rule depends on the first one.
Is there anyway to make grunt ignore that and just run the first then second rule sequentially?
The text was updated successfully, but these errors were encountered:
Here's my current config:
What I want to do is this:
scripts
folder and do some processing and renaming so that the result lives in../js
.../js
and go through each.js
file and for each file, make an exact copy in the exact location with the filename ending in-debug.js
.With my current config, if I run grunt the first time, only the first task (drop into
scripts
and do the processing/copying)` would run.I need to run grunt again in order for the second copy (debug) to be generated.
It seems to me that before performing any copy, it actually first check to see if all the copy rules can be executed even though the second copy rule depends on the first one.
Is there anyway to make grunt ignore that and just run the first then second rule sequentially?
The text was updated successfully, but these errors were encountered: