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.
24 lines
568 B
24 lines
568 B
// Generated by CoffeeScript 1.6.3
|
|
var ConsoleInterface, DocPad, action;
|
|
|
|
DocPad = require('../lib/docpad');
|
|
|
|
ConsoleInterface = require('../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();
|
|
});
|
|
});
|