1
0
mirror of https://github.com/JuanCanham/HackMyResume.git synced 2025-05-04 05:17:08 +01:00

Add symlink support.

This commit is contained in:
devlinjd
2015-12-08 10:13:04 -05:00
parent fcaeb381fe
commit 7c58f0ea96
2 changed files with 44 additions and 21 deletions

View File

@ -80,6 +80,7 @@ Abstract theme representation.
// Set up a hash of formats supported by this theme.
var formatsHash = { };
var that = this;
// Establish the base theme folder
var tplFolder = PATH.join( this.folder, 'src' );
@ -110,7 +111,7 @@ Abstract theme representation.
// We should have a valid output format now.
formatsHash[ outFmt ] =
formatsHash[outFmt] || { outFormat: outFmt, files: [] };
formatsHash[outFmt] || { outFormat: outFmt, files: [], symLinks: that.formats[ outFmt ].symLinks };
// Create the file representation object.
var obj = {
@ -199,7 +200,11 @@ Abstract theme representation.
// We should have a valid output format now.
formatsHash[ outFmt ] =
formatsHash[outFmt] || { outFormat: outFmt, files: [] };
formatsHash[ outFmt ] || {
outFormat: outFmt,
files: [],
symLinks: that.formats[ outFmt ].symLinks
};
// Create the file representation object.
var obj = {
@ -235,12 +240,6 @@ Abstract theme representation.
return fmt.ext !== 'css';
});
// Object.keys( formatsHash ).forEach(function(k){
// formatsHash[ k ].files.forEach(function(xhs){
// console.log(xhs.orgPath);
// });
// });
return formatsHash;
}