1
0
mirror of https://github.com/JuanCanham/HackMyResume.git synced 2024-11-05 09:56:22 +00:00
This commit is contained in:
hacksalot 2016-01-11 08:21:06 -05:00
parent b224c8939b
commit 376e720f4b

View File

@ -1,37 +1,41 @@
/** /**
Implementation of the 'generate' verb for HackMyResume. Implementation of the 'build' verb for HackMyResume.
@module generate.js @module generate.js
@license MIT. See LICENSE.md for details. @license MIT. See LICENSE.md for details.
*/ */
// TODO: EventEmitter
(function() { (function() {
var PATH = require('path') var PATH = require('path')
, FS = require('fs') , FS = require('fs')
, MD = require('marked') , MD = require('marked')
, MKDIRP = require('mkdirp') , MKDIRP = require('mkdirp')
, EXTEND = require('../utils/extend') , EXTEND = require('../utils/extend')
, HACKMYSTATUS = require('../core/status-codes') , HACKMYSTATUS = require('../core/status-codes')
, HME = require('../core/event-codes') , HME = require('../core/event-codes')
, parsePath = require('parse-filepath') , parsePath = require('parse-filepath')
, _opts = require('../core/default-options') , _opts = require('../core/default-options')
, FluentTheme = require('../core/fresh-theme') , FluentTheme = require('../core/fresh-theme')
, JRSTheme = require('../core/jrs-theme') , JRSTheme = require('../core/jrs-theme')
, ResumeFactory = require('../core/resume-factory') , ResumeFactory = require('../core/resume-factory')
, _ = require('underscore') , _ = require('underscore')
, _fmts = require('../core/default-formats') , _fmts = require('../core/default-formats')
, extend = require('../utils/extend') , extend = require('../utils/extend')
, chalk = require('chalk') , chalk = require('chalk')
, pad = require('string-padding') , pad = require('string-padding')
, Verb = require('../verbs/verb') , Verb = require('../verbs/verb');
, _err, _log, rez;
var _err, _log, rez;
/**
An invokable resume generation command.
*/
var BuildVerb = module.exports = Verb.extend({ var BuildVerb = module.exports = Verb.extend({
init: function() { init: function() {
@ -44,6 +48,8 @@ Implementation of the 'generate' verb for HackMyResume.
}); });
/** /**
Given a source resume in FRESH or JRS format, a destination resume path, and a Given a source resume in FRESH or JRS format, a destination resume path, and a
theme file, generate 0..N resumes in the desired formats. theme file, generate 0..N resumes in the desired formats.