metalsmith-watcher

0.1.2 • Public • Published

metalsmith-watch

Build Status Dependencies

Installation

npm install metalsmith-watcher

Usage

Default Usage

metalsmith-watcher will watch and rebuild all source files upon change

var Metalsmith = require('metalsmith');
var watch = require('metalsmith-watcher');
 
Metalsmith(__dirname)
.source('src/')
.use(watch())
.build(cb);
Patterns

(coming soon) .. specify what to watch and what to rebuild

Metalsmith(__dirname)
.use(watch([
  [['src/scss/\*'], ['src/scss/main.scss’]], // Rebuilds main.scss when scss files change
  [['templates/\*''!templates/ignorethis.file'], ['src/\*.md']] // Ignores 'ignorethis.file'
]))
.build();

To Test

npm test

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.2
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.2
    1
  • 0.1.1
    0
  • 0.1.0
    0

Package Sidebar

Install

npm i metalsmith-watcher

Weekly Downloads

1

Version

0.1.2

License

MIT

Last publish

Collaborators

  • chinedufn