0.0.3 • Published 8 years ago

metalsmith-git-builder v0.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

Build Status

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.