mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2024-11-05 01:56:21 +00:00
Copy JRS theme assets to target.
This commit is contained in:
parent
6bc6b3262e
commit
bf5c040971
@ -46,6 +46,7 @@
|
||||
"homepage": "https://github.com/hacksalot/HackMyResume",
|
||||
"dependencies": {
|
||||
"colors": "^1.1.2",
|
||||
"copy": "^0.1.3",
|
||||
"fluent-themes": "~0.7.1-beta",
|
||||
"fresca": "~0.2.2",
|
||||
"fs-extra": "^0.24.0",
|
||||
|
@ -57,7 +57,8 @@
|
||||
|
||||
// Load input resumes...
|
||||
if( !src || !src.length ) { throw { fluenterror: 3 }; }
|
||||
var sheets = ResumeFactory.load( src, _log, null, theTheme.render ? 'JRS' : 'FRESH' );
|
||||
var sheets = ResumeFactory.load( src, _log, null,
|
||||
theTheme.render ? 'JRS' : 'FRESH' );
|
||||
|
||||
// Merge input resumes...
|
||||
var msg = '';
|
||||
@ -128,9 +129,21 @@
|
||||
|
||||
theFormat = _fmts.filter(
|
||||
function(fmt) { return fmt.name === targInfo.fmt.outFormat; })[0];
|
||||
MKDIRP.sync( PATH.dirname( f ) ); // Ensure dest folder exists;
|
||||
|
||||
var outFolder = PATH.dirname( f );
|
||||
MKDIRP.sync( outFolder ); // Ensure dest folder exists;
|
||||
|
||||
// TODO: refactor
|
||||
if( theme.render ) {
|
||||
var COPY = require('copy');
|
||||
var globs = [ /*'**',*/ '*.css', '*.js', '*.png', '*.jpg', '*.gif', '*.bmp' ];
|
||||
COPY.sync( globs , outFolder, {
|
||||
cwd: theme.folder, nodir: true,
|
||||
ignore: ['node_modules/','node_modules/**']
|
||||
// rewrite: function(p1, p2) {
|
||||
// return PATH.join(p2, p1);
|
||||
// }
|
||||
});
|
||||
var rezHtml = theme.render( rez );
|
||||
FS.writeFileSync( f, rezHtml );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user