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
594 B

  1. // Generated by CoffeeScript 1.6.2
  2. var ConsoleInterface, DocPad, action;
  3. DocPad = require(__dirname + '/../lib/docpad');
  4. ConsoleInterface = require(__dirname + '/../lib/interfaces/console');
  5. action = process.argv.slice(1).join(' ').indexOf('deploy') !== -1 ? 'load' : false;
  6. DocPad.createInstance({
  7. action: action
  8. }, function(err, docpad) {
  9. if (err) {
  10. return console.log(err.stack);
  11. }
  12. return new ConsoleInterface({
  13. docpad: docpad
  14. }, function(err, consoleInterface) {
  15. if (err) {
  16. return console.log(err.stack);
  17. }
  18. return consoleInterface.start();
  19. });
  20. });