Skip to content
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

Copy the files from the same directory where Gruntfile.js present, excluding some of them #206

Closed
DJviolin opened this issue Nov 30, 2014 · 2 comments

Comments

@DJviolin
Copy link

I want to copy some files from the same directory where Gruntfile.js is present, but it's not working. I also want to exclude some files. What I do is I mirroring a "development" folder into a "production" one:

{expand: true, src: ['*'], dest: '../production/', filter: ['.git', '.eslintrc', '.gitattributes', '.gitignore', 'gruntfile.js', 'INSTALL_LOG.md', 'npm-debug.log', 'package.json', 'sublime.sublime-project']}

These codes are working:

{expand: true, src: ['css/*'], dest: '../production/', filter: 'isFile'},
{expand: true, src: ['images/**'], dest: '../production/'},

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 my Gruntfile.js:

http://jsfiddle.net/Lxrj1zxg/

Thank You for your help!

@vladikoff
Copy link
Member

#202 (comment)

@DJviolin
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants