DEPRECIATED PROJECT
(WIP) High level git workflow automation with a focus on repositories containing blog posts.
Bepo can stage all your changes, commit them to master, and push them off to your server/gh-pages for building.... All in a single method call! Wow!
var bepo = require('bepo')
var fs = require('fs')
var path = require('path')
var repoPath = '/path/to/repo'
var repoSettings = {
worktree: repoPath,
email: '[email protected]',
name: 'Cool Person',
remote: '[email protected]:person/.github.io.git'
}
var repo = bepo(repoSettings);
repo.clone(function(err, stdout, stderr) {
if (err) throw(err)
console.log('The repo is now cloned!')
fs.writeSync(path.join(repoPath, 'new_post.md'), 'hi this is my new blogpost')
repo.publish(function(err, stdout, stderr) {
if (err) throw(err)
console.log('new_post is committed, and pushed to remote!')
})
})
bepo
is a high level api that wraps quick-gits
that wraps child process.
Create a new bepo object with a settings object:
The settings object can have the following properties:
worktree
: Path to where the repository should live.email
: The email address you want the repository to havename
: The name of the commit userremote
: The URL of the default remote.