1
0
mirror of https://github.com/JuanCanham/HackMyResume.git synced 2025-12-13 00:33:49 +00:00

Add baseline support for local generation of JSON Resume themes.

This commit is contained in:
hacksalot
2015-12-28 04:37:42 -05:00
parent 547b87afc6
commit 3c1ae4cbd1
9 changed files with 122 additions and 67 deletions

View File

@@ -1,6 +1,6 @@
(function(){
var loadSourceResumes = require('../core/load-source-resumes');
var ResumeFactory = require('../core/resume-factory');
/**
Convert between FRESH and JRS formats.
@@ -16,7 +16,7 @@
if( src && dst && src.length && dst.length && src.length !== dst.length ) {
throw { fluenterror: 7 };
}
var sheets = loadSourceResumes( src, _log );
var sheets = ResumeFactory.load( src, _log );
sheets.forEach(function(sheet, idx){
var sourceFormat = sheet.imp.orgFormat === 'JRS' ? 'JRS' : 'FRESH';
var targetFormat = sourceFormat === 'JRS' ? 'FRESH' : 'JRS';