Centralize npm installation in root, so you only have to do it once

This commit is contained in:
Richard Feldman
2016-03-06 00:01:13 -08:00
parent 33e8ad0cff
commit 0edc438117
19 changed files with 54466 additions and 57 deletions

10
install.js Normal file
View File

@@ -0,0 +1,10 @@
var fs = require("fs");
var execSync = require("child_process").execSync;
var path = require("path");
fs.readdirSync("stages").forEach(function(stage) {
var cwd = path.join(__dirname, "stages", stage);
console.log("Installing packages for " + cwd);
execSync("elm-package install --yes", { cwd: cwd });
});