I would really like to execute manual cleanup after new files have been copied but before everything is added.
Ideally I could just hook in a function that receives the git instance.
API proposal
lib
var ghpages = require('gh-pages');
var getOutdatedBranches = require('./complexCleanupStep');
ghpages.publish(
'dist',
{
async beforeAdd(git) {
git.rm(await getOutdatedBranches());
}
},
(err) => { /*...*/ }
);
cli
gh-pages --beforeAdd="./myCustomScript.js"
Let me know what you think about this. I'd happily submit a PR.
I would really like to execute manual cleanup after new files have been copied but before everything is added.
Ideally I could just hook in a function that receives the
gitinstance.API proposal
lib
cli
gh-pages --beforeAdd="./myCustomScript.js"Let me know what you think about this. I'd happily submit a PR.