.svn folders copied to public folder #40

dotherightthing opened this Issue Sep 24, 2013 · 2 comments


None yet

2 participants



When I run kss-node, the public directory is copied from my custom template folder, to my generated folder (along with the KSS sections).

Because my template folder is managed in Subversion, there is an .svn folder that is being copied across as well. This throws my Subversion client, as there are now two copies of that .svn folder in two separate locations and it doesn't like it.

I had a peek at how kss-node works, and see that the files are being copied over with wrench.copyDirSyncRecursive.

The wrench-js docs show that there is an option to prevent .foo files being copied over:

wrench.copyDirSyncRecursive('directory_to_copy', 'location_where_copy_should_end_up', {
    excludeHiddenUnix: bool, // Whether to copy hidden Unix files or not (preceding .)

I edited my copy of kss-node, to add excludeHiddenUnix: true to both instances of wrench.copyDirSyncRecursive, but the .svn folders are still being copied across.

I'm unsure whether this functionality was added to wrench-js after 1.3.x (the version you're using). I had a look through the 'Blame' listing on the wrench-js but couldn't see any mention of that specific change.
There are also some unit tests over on that repo but I'm not sure how to run them.

Alternatively, there are some custom solutions floating around, such as this one.

I'm aware that these might be shortcomings with wrench-js and nothing to do with kss-node but it looks like wrench-js is not being updated anymore (at least by the original author) so perhaps an alternative fix is necessary.

For now I can workaround this by adding a 'clean' step to my Grunt workflow, to remove the copied .svn folder.



For now I can workaround this by adding a 'clean' step to my Grunt workflow, to remove the copied .svn folder.

FYI the workaround I ended up with, was:

  1. added the kss template folder to my project (this could be automated with Yeoman)
  2. changed the index.html template to point to template/public
  3. used Grunt to clean (delete) the redundant generated/public after kss runs



There's now a prominent warning about the excludeHiddenUnix option on the docs page: https://github.com/ryanmcgrath/wrench-js#possibly-breaking-change-in-v150

So it looks like that option requires wrench 1.5.0.

@JohnAlbin JohnAlbin added this to the 1.0.0 milestone Jul 21, 2014
@JohnAlbin JohnAlbin added the bug label Jul 22, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment