I'm creating a gruntfile.coffee for a project with a series of tasks. The format of some of these tasks is conveniently:
"path/to/dest" : ["path/to/src1", "path/to/src2"]
However, I'd like to save the directory names in variables at the top of the file, so a snippet of the gruntfile might look like this:
BUILD_DIR = "build"
...
files:
"#{BUILD_DIR}/src/js/production.js": ["Thing.js"]
...
However, I keep getting the following error:
Error: In /Users/me/path/to/project/gruntfile.coffee, Parse error on line X: Unexpected '{'
Is there something wrong with my syntax? I've seen this brought up in their issues a lot and their documentation explicity states that they support string interpolation in object keys.