metalsmith-git-builder
v0.0.3
Published
Metalsmith plugin that builds into a directory named after current git sha and symlinks it into another directory.
Downloads
9
Readme
Metalsmith - Git-Builder
Metalsmith plugin that builds into a directory named after current git sha and symlinks it into another directory.
Installation
npm install metalsmith-git-builder --save
Usage
var metalsmith = require('metalsmith');
var builder = require('metalsmith-git-builder');
var build = builder();
metalsmith(__dirname)
.use(build({
directory: 'current' // default
}))
.build(function (err, files) {
if (err) {
throw err;
}
build.make();
});
This will create build/[git-commit-sha]
and a symlink to the same folder under build/current
.