Repository: cordova-mobile-spec Updated Branches: refs/heads/master 859f1ebab -> 7a8101496
Added --forceplugins option to add '--force' flag when adding plugins Project: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/commit/7a810149 Tree: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/tree/7a810149 Diff: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/diff/7a810149 Branch: refs/heads/master Commit: 7a8101496703f780c20c9324c2c5bde3928ade60 Parents: 859f1eb Author: Shazron Abdullah <[email protected]> Authored: Mon Apr 24 11:43:17 2017 -0700 Committer: Shazron Abdullah <[email protected]> Committed: Mon Apr 24 11:43:17 2017 -0700 ---------------------------------------------------------------------- createmobilespec/createmobilespec.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/7a810149/createmobilespec/createmobilespec.js ---------------------------------------------------------------------- diff --git a/createmobilespec/createmobilespec.js b/createmobilespec/createmobilespec.js index 19a5888..89623e4 100755 --- a/createmobilespec/createmobilespec.js +++ b/createmobilespec/createmobilespec.js @@ -141,6 +141,7 @@ var top_dir = process.cwd() + path.sep, .boolean("clearnpmcache").describe("clearnpmcache", "rm -rf ~/.npm/cache; rm -rf ~/.plugman") .string("plugins").describe("plugins", "Used to explicitly specify the list of plugins to be installed.\n" + "Example: --plugins=\"cordova-plugin-device cordova-plugin-file-transfer my-custom-plugin\"") + .boolean("forceplugins").describe("forceplugins", "Add the --force flag when adding plugins\n") .string("variable").describe("variable", "Used to pass preferences / variables down to cordova components (like plugins).\n" + "Example: --variable FILETRANSFER_SERVER_ADDRESS=\"http://yourlocal-IPAddressHere:5000\"") .boolean("skipjs").describe("skipjs", "Do not update the platform's cordova.js from the js git repo, use the one already present in the platform.\n" + @@ -608,7 +609,8 @@ function installPlugins() { // we do need local plugin-test-framework console.log("Installing local test framework plugins..."); var linkPluginsFlag = (argv.link || argv.linkplugins) ? ' --link' : ''; - var allPluginFlags = linkPluginsFlag + browserifyFlag + variableFlag; + var forcePluginsFlag = (argv.forceplugins)? ' --force' : ''; + var allPluginFlags = linkPluginsFlag + browserifyFlag + variableFlag + forcePluginsFlag; // Install mobilespec tests only if we install default list of plugins // If custom list of plugins is being installed, mobilespec tests can be listed there, if needed --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
