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:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user