Add empty tasks to update the modules. Broken.

This commit is contained in:
Erjan Gavalji
2015-10-23 15:18:10 +03:00
parent 8e6b4b5628
commit 6ad3474803

View File

@@ -3,9 +3,12 @@ module.exports = {
run: function(grunt) {
var pathModule = require("path");
var modulesPackageConfig = grunt.file.readJSON('package.json');
//Construct and validate the arguments
var args = {
platform: grunt.option("platform"),
modulesPath: grunt.option("modulespath"),
tnsPath: grunt.option("tnsPath"),
emulatorProcessIdentifier: grunt.option("emuPId"),
emuAvdName: grunt.option("avd"),
@@ -32,6 +35,7 @@ module.exports = {
var localCfg = {
tnsPath: args.tnsPath || "tns",
emulatorProcessIdentifier: args.emulatorProcessIdentifier,
modulesPath: args.modulesPath || "./bin/dist/tns-core-modules-" + modulesPackageConfig.version + ".tgz",
emuAvdName: args.emuAvdName,
outfile: args.outFile || "./TestRunResult.txt",
androidFrameworkArgument: args.androidRuntimePath ? " --frameworkPath=" + args.androidRuntimePath : "",
@@ -168,6 +172,8 @@ module.exports = {
"exec:createApp",
"clean:originalAppDir",
"copy:testsAppToRunDir",
"untar:modules",
"copy:updateModules",
getPlatformSpecificTask("exec:add{platform}Platform"),
getPlatformSpecificTask("copy:add{platform}Permissions"),