1
0
mirror of https://github.com/JuanCanham/HackMyResume.git synced 2025-05-02 20:37:08 +01:00

Integrate HMC.

This commit is contained in:
hacksalot
2016-01-27 05:29:26 -05:00
parent 4440d23584
commit beb60d4074
62 changed files with 5697 additions and 31 deletions

8
dist/cli/error.js vendored
View File

@ -8,19 +8,19 @@ Error-handling routines for HackMyResume.
(function() {
var ErrorHandler, FCMD, FS, HMSTATUS, M2C, PATH, PKG, SyntaxErrorEx, WRAP, YAML, _defaultLog, assembleError, chalk, extend, printf;
HMSTATUS = require('hackmycore/dist/core/status-codes');
HMSTATUS = require('../hmc/dist/core/status-codes');
PKG = require('../../package.json');
FS = require('fs');
FCMD = require('hackmycore');
FCMD = require('../hmc');
PATH = require('path');
WRAP = require('word-wrap');
M2C = require('hackmycore/dist/utils/md2chalk.js');
M2C = require('../hmc/dist/utils/md2chalk.js');
chalk = require('chalk');
@ -30,7 +30,7 @@ Error-handling routines for HackMyResume.
printf = require('printf');
SyntaxErrorEx = require('hackmycore/dist/utils/syntax-error-ex');
SyntaxErrorEx = require('../hmc/dist/utils/syntax-error-ex');
require('string.prototype.startswith');

10
dist/cli/main.js vendored
View File

@ -8,7 +8,7 @@ Definition of the `main` function.
(function() {
var Command, EXTEND, FS, HME, HMR, HMSTATUS, OUTPUT, PAD, PATH, PKG, StringUtils, _, _opts, _out, _title, chalk, execute, initOptions, initialize, loadOptions, logMsg, main, safeLoadJSON, splitSrcDest;
HMR = require('hackmycore');
HMR = require('../hmc');
PKG = require('../../package.json');
@ -20,13 +20,13 @@ Definition of the `main` function.
PATH = require('path');
HMSTATUS = require('hackmycore/dist/core/status-codes');
HMSTATUS = require('../hmc/dist/core/status-codes');
HME = require('hackmycore/dist/core/event-codes');
HME = require('../hmc/dist/core/event-codes');
safeLoadJSON = require('hackmycore/dist/utils/safe-json-loader');
safeLoadJSON = require('../hmc/dist/utils/safe-json-loader');
StringUtils = require('hackmycore/dist/utils/string.js');
StringUtils = require('../hmc/dist/utils/string.js');
_ = require('underscore');

10
dist/cli/out.js vendored
View File

@ -10,13 +10,13 @@ Output routines for HackMyResume.
chalk = require('chalk');
HME = require('hackmycore/dist/core/event-codes');
HME = require('../hmc/dist/core/event-codes');
_ = require('underscore');
Class = require('hackmycore/dist/utils/class.js');
Class = require('../hmc/dist/utils/class.js');
M2C = require('hackmycore/dist/utils/md2chalk.js');
M2C = require('../hmc/dist/utils/md2chalk.js');
PATH = require('path');
@ -42,7 +42,7 @@ Output routines for HackMyResume.
OutputHandler = module.exports = Class.extend({
init: function(opts) {
this.opts = EXTEND(true, this.opts || {}, opts);
return this.msgs = YAML.load(PATH.join(__dirname, 'msg.yml')).events;
this.msgs = YAML.load(PATH.join(__dirname, 'msg.yml')).events;
},
log: function(msg) {
var finished;
@ -110,7 +110,7 @@ Output routines for HackMyResume.
case HME.afterAnalyze:
info = evt.info;
rawTpl = FS.readFileSync(PATH.join(__dirname, 'analyze.hbs'), 'utf8');
HANDLEBARS.registerHelper(require('hackmycore/dist/helpers/console-helpers'));
HANDLEBARS.registerHelper(require('../hmc/dist/helpers/console-helpers'));
template = HANDLEBARS.compile(rawTpl, {
strict: false,
assumeObjects: false