1
0
mirror of https://github.com/JuanCanham/HackMyResume.git synced 2025-08-14 20:41:01 +01:00

chore: update project dependencies

This commit is contained in:
hacksalot
2018-02-12 00:05:29 -05:00
parent 7144126175
commit c4f7350528
71 changed files with 1600 additions and 1737 deletions

View File

@@ -122,14 +122,14 @@ module.exports = class TemplateGenerator extends BaseGenerator
return
# Write the file
opts.beforeWrite? thisFilePath
opts.beforeWrite? data: thisFilePath
MKDIRP.sync PATH.dirname( thisFilePath )
if file.info.action != 'copy'
FS.writeFileSync thisFilePath, file.data, encoding: 'utf8', flags: 'w'
else
FS.copySync file.info.path, thisFilePath
opts.afterWrite? thisFilePath
opts.afterWrite? data: thisFilePath
# Post-processing
if @onAfterSave
@@ -174,9 +174,9 @@ createSymLinks = ( curFmt, outFolder ) ->
try
FS.symlinkSync absTarg, absLoc, type
catch
catch err
succeeded = false
if _error.code == 'EEXIST'
if err.code == 'EEXIST'
FS.unlinkSync absLoc
try
FS.symlinkSync absTarg, absLoc, type