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

Update JS.

Keep dist/ updated with src/ for the CLI and require() folks.
(package.json goes off dist).
This commit is contained in:
hacksalot
2016-02-15 16:38:01 -05:00
parent 214c53a3ab
commit a3ed56dd15
7 changed files with 54 additions and 29 deletions

View File

@ -56,7 +56,10 @@ Implementation of the 'analyze' verb for HackMyResume.
var r;
r = ResumeFactory.loadOne(src, {
format: 'FRESH',
objectify: true
objectify: true,
inner: {
"private": opts["private"] === true
}
}, this);
if (opts.assert && this.hasError()) {
return {};

8
dist/verbs/build.js vendored
View File

@ -109,7 +109,8 @@ Implementation of the 'build' verb for HackMyResume.
objectify: false,
quit: true,
inner: {
sort: _opts.sort
sort: _opts.sort,
"private": _opts["private"]
}
}, this);
problemSheets = _.filter(sheetObjects, function(so) {
@ -198,7 +199,9 @@ Implementation of the 'build' verb for HackMyResume.
r: rez,
theme: theme
});
_rezObj = new RTYPES[toFormat]().parseJSON(rez);
_rezObj = new RTYPES[toFormat]().parseJSON(rez, {
"private": _opts["private"]
});
targets = _expand(dst, theme);
_.each(targets, function(t) {
var ref;
@ -233,6 +236,7 @@ Implementation of the 'build' verb for HackMyResume.
var that;
_opts.theme = (opts.theme && opts.theme.toLowerCase().trim()) || 'modern';
_opts.prettify = opts.prettify === true;
_opts["private"] = opts["private"] === true;
_opts.css = opts.css;
_opts.pdf = opts.pdf;
_opts.wrap = opts.wrap || 60;