Skip to content
Permalink
Browse files
CB-8441 added missing requires and updated npm run scripts
  • Loading branch information
stevengill committed May 18, 2015
1 parent 358ca61 commit 4a250651c3a05d4ca3be67076223d2dd36429063
Showing 3 changed files with 7 additions and 5 deletions.
@@ -12,9 +12,9 @@
"node": "~0.10.x"
},
"scripts": {
"test": "grunt test --platformVersion=4.0.0",
"build": "grunt --platfromVersion=4.0.0",
"build-browserify": "grunt compile:browserify --platformVersion=4.0.0"
"test": "grunt test",
"build": "grunt compile",
"build-browserify": "grunt compile-browserify"
},
"contributors": [
{
@@ -48,9 +48,9 @@ module.exports = function(grunt) {
var platformPkgJson = require('../node_modules/cordova-'+platformName+'/package.json');
platformVersion = platformPkgJson.version;
} else {
console.log('please add a platform version flag and value');
console.log('platformVersion not supplied. Setting platformVersion to N/A');
console.log('ex: grunt compile-browserify --platformVersion=3.6.0');
throw new Error("platformVersion is required!");
platformVersion = 'N/A';
}
}
generate(platformName, useWindowsLineEndings, platformVersion, done);
@@ -17,6 +17,8 @@
* under the License.
*/
var generate = require('./lib/packager');
var fs = require('fs');
var path = require('path');

module.exports = function(grunt) {
grunt.registerMultiTask('compile', 'Packages cordova.js', function() {

0 comments on commit 4a25065

Please sign in to comment.