You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
// Generated by CoffeeScript 1.6.2
var ConsoleInterface, DocPad, action;
DocPad = require(__dirname + '/../lib/docpad');
ConsoleInterface = require(__dirname + '/../lib/interfaces/console');
action = process.argv.slice(1).join(' ').indexOf('deploy') !== -1 ? 'load' : false;
DocPad.createInstance({ action: action }, function(err, docpad) { if (err) { return console.log(err.stack); } return new ConsoleInterface({ docpad: docpad }, function(err, consoleInterface) { if (err) { return console.log(err.stack); } return consoleInterface.start(); }); });
|