Skip to content

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

License

Notifications You must be signed in to change notification settings

lelandmiller/metalsmith-external-watch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published