Not sure if I missed something, but I have the following grunt setting for grunt-contrib-copy tasks.
copy: { build: { files: { "server-dist/": "server/**/*.!(coffee)", "client-dist/": "client/**/*.!(coffee)" } } }
The client-dist copies as I expect it to recursively work through the file tree, but the server-dist will all subfolders be smoothed to the base folder. Any idea why this is happening? Here i / o
server/ views/ errors/ 404.jade layouts/ base.jade
becomes
server/ errors/ layouts/ base.jade
the views folder is completely blown out. One more thing ... when I delete! (Coffee), this works, but I need to exclude coffee files, since I have work with the grunt-coffee watch function.
source share