Created
January 3, 2013 17:45
-
-
Save davidpfahler/4445300 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
coffee: | |
modules: | |
files: | |
src: ["src/**/*.coffee"] | |
dest: '.' | |
expand: true | |
rename: (destBase, destPath) -> destBase + destPath.replace(/\.coffee$/, '.js') |
I'm in the process of committing a change to grunt that will show generated src/dest mappings when --verbose
is used.
Ok, see if this commit helps you debug:
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
IIRC, because
destBase
is the value you specified fordest
, grunt is just concatenating that value with the source path, generating a filename like.src/foo.js
. You should specify adest
ending with/
or use Node'spath.join()
to join path parts.