From 376e720f4bddcd991fe9901253064534c4f7bcd4 Mon Sep 17 00:00:00 2001 From: hacksalot Date: Mon, 11 Jan 2016 08:21:06 -0500 Subject: [PATCH] Scrub. --- src/verbs/build.js | 48 ++++++++++++++++++++++++++-------------------- 1 file changed, 27 insertions(+), 21 deletions(-) diff --git a/src/verbs/build.js b/src/verbs/build.js index 406bbed..c44995b 100644 --- a/src/verbs/build.js +++ b/src/verbs/build.js @@ -1,37 +1,41 @@ /** -Implementation of the 'generate' verb for HackMyResume. +Implementation of the 'build' verb for HackMyResume. @module generate.js @license MIT. See LICENSE.md for details. */ -// TODO: EventEmitter + (function() { - var PATH = require('path') - , FS = require('fs') - , MD = require('marked') - , MKDIRP = require('mkdirp') - , EXTEND = require('../utils/extend') - , HACKMYSTATUS = require('../core/status-codes') - , HME = require('../core/event-codes') - , parsePath = require('parse-filepath') - , _opts = require('../core/default-options') - , FluentTheme = require('../core/fresh-theme') - , JRSTheme = require('../core/jrs-theme') - , ResumeFactory = require('../core/resume-factory') - , _ = require('underscore') - , _fmts = require('../core/default-formats') - , extend = require('../utils/extend') - , chalk = require('chalk') - , pad = require('string-padding') - , Verb = require('../verbs/verb') - , _err, _log, rez; + var PATH = require('path') + , FS = require('fs') + , MD = require('marked') + , MKDIRP = require('mkdirp') + , EXTEND = require('../utils/extend') + , HACKMYSTATUS = require('../core/status-codes') + , HME = require('../core/event-codes') + , parsePath = require('parse-filepath') + , _opts = require('../core/default-options') + , FluentTheme = require('../core/fresh-theme') + , JRSTheme = require('../core/jrs-theme') + , ResumeFactory = require('../core/resume-factory') + , _ = require('underscore') + , _fmts = require('../core/default-formats') + , extend = require('../utils/extend') + , chalk = require('chalk') + , pad = require('string-padding') + , Verb = require('../verbs/verb'); + + var _err, _log, rez; + /** + An invokable resume generation command. + */ var BuildVerb = module.exports = Verb.extend({ 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 theme file, generate 0..N resumes in the desired formats.