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