mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2025-05-02 12:27:08 +01:00
Integrate HMC.
This commit is contained in:
@ -6,18 +6,18 @@ Error-handling routines for HackMyResume.
|
||||
|
||||
|
||||
|
||||
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')
|
||||
extend = require('extend')
|
||||
YAML = require('yamljs')
|
||||
printf = require('printf')
|
||||
SyntaxErrorEx = require('hackmycore/dist/utils/syntax-error-ex')
|
||||
SyntaxErrorEx = require('../hmc/dist/utils/syntax-error-ex')
|
||||
require('string.prototype.startswith')
|
||||
|
||||
|
||||
|
@ -6,16 +6,16 @@ Definition of the `main` function.
|
||||
|
||||
|
||||
|
||||
HMR = require 'hackmycore'
|
||||
HMR = require '../hmc'
|
||||
PKG = require '../../package.json'
|
||||
FS = require 'fs'
|
||||
EXTEND = require 'extend'
|
||||
chalk = require 'chalk'
|
||||
PATH = require 'path'
|
||||
HMSTATUS = require 'hackmycore/dist/core/status-codes'
|
||||
HME = require 'hackmycore/dist/core/event-codes'
|
||||
safeLoadJSON = require 'hackmycore/dist/utils/safe-json-loader'
|
||||
StringUtils = require 'hackmycore/dist/utils/string.js'
|
||||
HMSTATUS = require '../hmc/dist/core/status-codes'
|
||||
HME = require '../hmc/dist/core/event-codes'
|
||||
safeLoadJSON = require '../hmc/dist/utils/safe-json-loader'
|
||||
StringUtils = require '../hmc/dist/utils/string.js'
|
||||
_ = require 'underscore'
|
||||
OUTPUT = require './out'
|
||||
PAD = require 'string-padding'
|
||||
|
@ -7,10 +7,10 @@ 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')
|
||||
M2C = require('hackmycore/dist/utils/md2chalk.js')
|
||||
Class = require('../hmc/dist/utils/class.js')
|
||||
M2C = require('../hmc/dist/utils/md2chalk.js')
|
||||
PATH = require('path')
|
||||
LO = require('lodash')
|
||||
FS = require('fs')
|
||||
@ -28,6 +28,7 @@ OutputHandler = module.exports = Class.extend
|
||||
init: ( opts ) ->
|
||||
@opts = EXTEND( true, this.opts || { }, opts )
|
||||
@msgs = YAML.load(PATH.join( __dirname, 'msg.yml' )).events
|
||||
return
|
||||
|
||||
|
||||
|
||||
@ -108,7 +109,7 @@ OutputHandler = module.exports = Class.extend
|
||||
when 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 })
|
||||
tot = 0
|
||||
info.keywords.forEach (g) -> tot += g.count
|
||||
|
Reference in New Issue
Block a user