0.0.2 • Published 6 years ago

ribot v0.0.2

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

ribot

riot builder

usage

var ribot = require('ribot')

// build (return ribot instance)
var ribotInstance = ribot.build({
  target: 'src',
  output: 'dst',
  options: {
    template: 'pug',
  },
});

// watch (return ribot instance)
var ribotInstance = ribot.watch({
  target: 'src',
  output: 'dst',
  options: {
    template: 'pug',
  },
});

// create instance
var ribotInstance = ribot.create({
  target: 'src',
  output: 'dst',
  options: {
    template: 'pug',
  },
});

// setTemplate
ribotInstance.setTemplate('pug');

// watcher (chokidar)
var watcher = ribotInstance.watcher;
watcher.on('change', (fileName) => {
  console.log(`change: ${fileName}`);
});