From 00e640734733da613280ba3be882cd375e59290d Mon Sep 17 00:00:00 2001 From: devlinjd Date: Thu, 10 Dec 2015 10:28:19 -0500 Subject: [PATCH 1/4] Kludge theme loading issue for FCVD. Resolve in v0.11.0. --- src/eng/underscore-generator.js | 4 ++-- src/gen/template-generator.js | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/eng/underscore-generator.js b/src/eng/underscore-generator.js index c2a0543..54be147 100644 --- a/src/eng/underscore-generator.js +++ b/src/eng/underscore-generator.js @@ -10,8 +10,8 @@ Underscore template generate for FluentCV. module.exports = function( json, jst, format, cssInfo, opts ) { // Tweak underscore's default template delimeters - var delims = opts.themeObj.delimeters || opts.template; - if( opts.themeObj.delimeters ) { + var delims = (opts.themeObj && opts.themeObj.delimeters) || opts.template; + if( opts.themeObj && opts.themeObj.delimeters ) { delims = _.mapObject( delims, function(val,key) { return new RegExp( val, "ig"); }); diff --git a/src/gen/template-generator.js b/src/gen/template-generator.js index 3788c8f..1fd47db 100644 --- a/src/gen/template-generator.js +++ b/src/gen/template-generator.js @@ -121,7 +121,8 @@ Template-based resume generator base for FluentCV. Object.keys( curFmt.symLinks ).forEach( function(loc) { var absLoc = PATH.join(outFolder, loc); var absTarg = PATH.join(PATH.dirname(absLoc), curFmt.symLinks[loc]); - var type = PATH.parse( absLoc ).ext ? 'file' : 'junction'; // 'file', 'dir', or 'junction' (Windows only) + // 'file', 'dir', or 'junction' (Windows only) + var type = PATH.parse( absLoc ).ext ? 'file' : 'junction'; FS.symlinkSync( absTarg, absLoc, type); }); } @@ -140,7 +141,8 @@ Template-based resume generator base for FluentCV. */ single: function( json, jst, format, cssInfo, opts ) { this.opts.freezeBreaks && ( jst = freeze(jst) ); - var eng = require( '../eng/' + opts.themeObj.engine + '-generator' ); + var eng = require( '../eng/' + ((opts.themeObj && opts.themeObj.engine) || + opts.engine) + '-generator' ); var result = eng( json, jst, format, cssInfo, opts ); this.opts.freezeBreaks && ( result = unfreeze(result) ); return result; From 0474dc7dbe63331d690ba3e0fbef957b6a52f7bd Mon Sep 17 00:00:00 2001 From: devlinjd Date: Fri, 11 Dec 2015 03:04:34 -0500 Subject: [PATCH 2/4] Bump version to 0.10.1. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 59b76ec..a6d3ccf 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fluentcv", - "version": "0.10.0", + "version": "0.10.1", "description": "Generate beautiful, targeted resumes from your command line, shell, or in Javascript with Node.js.", "repository": { "type": "git", From 95540efe29d1451ad995a67dc24b0aff6e3f7af4 Mon Sep 17 00:00:00 2001 From: devlinjd Date: Fri, 11 Dec 2015 04:02:05 -0500 Subject: [PATCH 3/4] Tweak FRESCA and theme dependency versions. --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index a6d3ccf..10233b6 100644 --- a/package.json +++ b/package.json @@ -32,9 +32,9 @@ }, "homepage": "https://github.com/fluentdesk/fluentcv", "dependencies": { - "fresca": "^0.2.0", + "fresca": "~0.2.1", "colors": "^1.1.2", - "fluent-themes": "0.6.0-beta", + "fluent-themes": "~0.6.1-beta", "fs-extra": "^0.24.0", "handlebars": "^4.0.5", "html": "0.0.10", From 8747429bc63a33b4c17e77c77edf115a8738e68e Mon Sep 17 00:00:00 2001 From: devlinjd Date: Fri, 11 Dec 2015 22:35:26 -0500 Subject: [PATCH 4/4] Update NPM registry description. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 10233b6..a99624c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "fluentcv", "version": "0.10.1", - "description": "Generate beautiful, targeted resumes from your command line, shell, or in Javascript with Node.js.", + "description": "Generate polished résumés and CVs in HTML, Markdown, LaTeX, MS Word, PDF, plain text, JSON, XML, YAML, smoke signal, and carrier pigeon.", "repository": { "type": "git", "url": "https://github.com/fluentdesk/fluentcv.git"