mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2024-11-22 16:30:11 +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",
|
"homepage": "https://github.com/hacksalot/HackMyResume",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"colors": "^1.1.2",
|
"colors": "^1.1.2",
|
||||||
|
"copy": "^0.1.3",
|
||||||
"fluent-themes": "~0.7.1-beta",
|
"fluent-themes": "~0.7.1-beta",
|
||||||
"fresca": "~0.2.2",
|
"fresca": "~0.2.2",
|
||||||
"fs-extra": "^0.24.0",
|
"fs-extra": "^0.24.0",
|
||||||
|
@ -57,7 +57,8 @@
|
|||||||
|
|
||||||
// Load input resumes...
|
// Load input resumes...
|
||||||
if( !src || !src.length ) { throw { fluenterror: 3 }; }
|
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...
|
// Merge input resumes...
|
||||||
var msg = '';
|
var msg = '';
|
||||||
@ -128,9 +129,21 @@
|
|||||||
|
|
||||||
theFormat = _fmts.filter(
|
theFormat = _fmts.filter(
|
||||||
function(fmt) { return fmt.name === targInfo.fmt.outFormat; })[0];
|
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 ) {
|
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 );
|
var rezHtml = theme.render( rez );
|
||||||
FS.writeFileSync( f, rezHtml );
|
FS.writeFileSync( f, rezHtml );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user