Repository: cordova-lib Updated Branches: refs/heads/master 0b63aeb5a -> 4edc08075
CB-13303 : added save_exact and production opts This closes #596 Project: http://git-wip-us.apache.org/repos/asf/cordova-lib/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-lib/commit/4edc0807 Tree: http://git-wip-us.apache.org/repos/asf/cordova-lib/tree/4edc0807 Diff: http://git-wip-us.apache.org/repos/asf/cordova-lib/diff/4edc0807 Branch: refs/heads/master Commit: 4edc080750cc715585a5570b6a0d4da7a13bc3c7 Parents: 0b63aeb Author: Audrey So <[email protected]> Authored: Tue Oct 3 15:57:52 2017 -0700 Committer: Steve Gill <[email protected]> Committed: Tue Oct 3 18:39:46 2017 -0700 ---------------------------------------------------------------------- src/cordova/plugin/add.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/4edc0807/src/cordova/plugin/add.js ---------------------------------------------------------------------- diff --git a/src/cordova/plugin/add.js b/src/cordova/plugin/add.js index 056a451..0bf5fb1 100644 --- a/src/cordova/plugin/add.js +++ b/src/cordova/plugin/add.js @@ -87,7 +87,9 @@ function add (projectRoot, hooksRunner, opts) { link: opts.link, pluginInfoProvider: pluginInfoProvider, variables: opts.cli_variables, - is_top_level: true + is_top_level: true, + save_exact: opts['save-exact'] || false, + production: opts.production }; return module.exports.determinePluginTarget(projectRoot, cfg, target, fetchOptions).then(function (resolvedTarget) { @@ -121,7 +123,9 @@ function add (projectRoot, hooksRunner, opts) { // files platform_www directory, so they'll be applied to www on each prepare. usePlatformWww: true, nohooks: opts.nohooks, - force: opts.force + force: opts.force, + save_exact: opts['save-exact'] || false, + production: opts.production }; events.emit('verbose', 'Calling plugman.install on plugin "' + pluginInfo.dir + '" for platform "' + platform); --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
