ribot

0.0.2 • Public • Published

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}`);
});

Readme

Keywords

none

Package Sidebar

Install

npm i ribot

Weekly Downloads

0

Version

0.0.2

License

MIT

Unpacked Size

75.8 kB

Total Files

10

Last publish

Collaborators

  • phi