Created
June 13, 2016 13:24
-
-
Save bajzarpa/c005d63443ccda6b8662e1e94505a022 to your computer and use it in GitHub Desktop.
Create symlinks with filepatterns
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fs = require('fs'); | |
var glob = require('glob'); | |
glob('/Modules/**/Views/', function(err, file) { | |
file.forEach(function(file) { | |
var filePath = file.split('/'); | |
fs.link(file, 'target/path/' + filePath[filePath.length-3], function() {}); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment