0.1.1 • Published 9 years ago

metalsmith-external-watch v0.1.1

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

Build Status

A module to watch source directories, run a preview server, and trigger builds for a Metalsmith site.

Overview

The functionality of this package is still rough, but workable.

Install

$ npm install --save metalsmith-external-watch

Usage

var externalWatch = require('metalsmith-external-watch');

externalWatch(function() {
    Metalsmith(__dirname)
        .build();
});

This will watch the src and template directories for changes. When changes occur it will run the function passed as an argument (for example, to build the project) and it serves the build directory on 8080.

License

MIT © Leland Miller