Skip to content

Commit

Permalink
feat(generators): provide visual feedback of symlinked sources
Browse files Browse the repository at this point in the history
  • Loading branch information
cueedee committed Oct 11, 2017
1 parent fc1a339 commit 9f2e96c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ module.exports =

dst
, this.fs.read( src )
, function ( err, status ) {
, ( err, status ) => {

if ( 'identical' === status ) { return; }

Expand All @@ -183,7 +183,11 @@ module.exports =
if ( 'ENOENT' !== error.code ) { throw error; }
}

fsCore.symlinkSync( path.relative( path.dirname( dst ), src ), dst );
src = path.relative( path.dirname( dst ), src );

fsCore.symlinkSync( src, dst );

this.log( chalk.magenta( 'symlinked' ) + ' -> ' + src );
}
);
}
Expand Down

0 comments on commit 9f2e96c

Please sign in to comment.