Skip to content
Permalink
Browse files
properly fixed cordovajs generation
  • Loading branch information
stevengill committed Oct 1, 2014
1 parent 59f4b83 commit ec8a219dcc9c1f852fbc134a618cdbaa5a4cc811
Showing 1 changed file with 2 additions and 2 deletions.
@@ -392,14 +392,14 @@ function updateJS() {
} else {
console.log("Updating js for platforms...");
try {
require(path.join(cordova_js_git_dir, "node_modules", "grunt --platformVersion=MSTEST"));
require(path.join(cordova_js_git_dir, "node_modules", "grunt"));
} catch (e) {
console.error("Grunt isn't installed in cordova-js, you need to:\n\trun `npm install` from: "+ cordova_js_git_dir);
}

pushd(cordova_js_git_dir);
var nodeCommand = /^win/.test(process.platform) ? process.argv[0] + " " : "";
var code = shelljs.exec(nodeCommand + path.join(__dirname, "node_modules", "grunt-cli", "bin", "grunt")).code;
var code = shelljs.exec(nodeCommand + path.join(__dirname, "node_modules", "grunt-cli", "bin", "grunt") + ' --platformVersion=MSTEST').code;
if (code) {
console.log("Failed to build js.");
process.exit(1);

0 comments on commit ec8a219

Please sign in to comment.