-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with preserve_dirs not working #21
Comments
Thanks! I ended up just putting my coffee and js in the same folder for now. But can't wait till this is working! |
Whoops. Works for me, can't reproduce.
This works well. |
I was just about to post to say I'm having a similar problem with this code (which is similar to the code I use on other plugins): coffee: {
compile: {
src: [ './app/views/scripts/**/*.coffee' ],
dest: './staging/scripts/',
options: {
bare: true,
preserve_dirs: true,
base_path: './app/views/scripts/'
}
}
} However I fixed this by removing the coffee: {
compile: {
src: ['app/views/scripts/**/*.coffee'],
dest: 'staging/scripts/',
options: {
bare: true,
preserve_dirs: true,
base_path: 'app/views/scripts/'
}
}
} Not sure why this is a problem though! |
I have the next folder structure:
And i want the /src/coffee/app/ coffee files to be compiled in /app, preserving the folder structure, i mean, resulting the next folder structure.
So i've used this config to the Coffee on the grunt.js:
But the output was the following:
What i'm doing bad? |
I get a small issue where if I use the preserve_dirs option, any file that's not in a directory gets put into a directory in the compiled version: app: {
src: ['scripts/coffeescripts/app/**/*.coffee'],
dest: 'scripts/javascripts/app/',
options: {
bare: false,
preserve_dirs: true,
base_path: 'scripts/coffeescripts/app/'
}
} So this:
Compiles to:
|
As reported back on issue #11:
When I use preserve_dirs: true, it ignores dest and puts the files inside my coffee directory next to the file it is converted from, instead of in my js dir i have specified in dest. Am I doing something wrong?
{
src: [coffeeDir + '*/.coffee'],
dest: jsDir,
options: {
bare: true,
preserve_dirs: true
}
}
I've tried setting a base_dir as the js dir also, but no luck. I see you are talking about a destPath, is that different than just dest?
The text was updated successfully, but these errors were encountered: