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 meta = JSON.parse(fs.readFileSync('./package.json')); | |
var ignored = String(fs.readFileSync('./.gitignore')).split('\n'); | |
function ignore(entry){ | |
if( ignored.indexOf(entry) === -1 ){ | |
fs.appendFileSync('./.gitignore', '\n' + entry); | |
ignored.push(entry); | |
} | |
} |
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
/* | |
For each module found in the source folder | |
replace the duplicate by a symlink to the sources & npm install external sources | |
*/ | |
var fs = require('fs'); | |
var childProcess = require('child_process'); | |
var path = require('path'); |
NewerOlder