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

Add support for clean option #53

Merged
merged 1 commit into from May 6, 2014
Merged

Add support for clean option #53

merged 1 commit into from May 6, 2014

Conversation

kfranqueiro
Copy link
Contributor

This adds support for a clean method/property, which receives a boolean
indicating whether to remove the destination directory before writing.
The default is true (consistent with previous behavior).

Setting this to false can allow for use in situations where the source
directory is a child of the destination directory, e.g. for gh-pages setups
where the source is contained within the same repository. Note that
moved/removed files will need to be cleaned up by other means.

This adds support for a `clean` method/property, which receives a boolean
indicating whether to remove the destination directory before writing.
The default is `true` (consistent with previous behavior).

Setting this to `false` can allow for use in situations where the source
directory is a child of the destination directory, e.g. for gh-pages setups
where the source is contained within the same repository.  Note that
moved/removed files will need to be cleaned up by other means.
@ianstormtaylor
Copy link
Contributor

sexy! thanks

ianstormtaylor added a commit that referenced this pull request May 6, 2014
Add support for `clean` option
@ianstormtaylor ianstormtaylor merged commit 1ef7689 into metalsmith:master May 6, 2014
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

Successfully merging this pull request may close these issues.

None yet

2 participants