-
Notifications
You must be signed in to change notification settings - Fork 627
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
Building my project with metalsmith obliterates src, .git directories #41
Comments
Update: It deletes |
I think this functionality should instead be implemented as a plugin (might already be implemented as a plugin, metalsmith-cleanscript does something related). Alternatively, at the very least, it should be configurable.. Although that might mean an extension of the javascript API if I'm not mistaken, which wouldn't be very good. |
As a workaround you could build to the standard "build" dir and move the files afterwards, either in the build callback or just like or even something like this if you wanted your gh-pages branch to be "pristine": (haven't tested) git checkout --orphan gh-pages
git rm -fr .
git checkout master -- ./_src
nodejs ./_src/build.js && mv ./_src/build/* . && rm -fr ./_src |
@ericgj sorry for missing your suggestion here! |
Definitely down for this to be configurable. Discussion here: #51 |
Repro steps
I'm working on getting to the bottom of this. It's a pretty serious issue
The text was updated successfully, but these errors were encountered: