зеркало из https://github.com/microsoft/TACO.git
Fixed the variables issues. Variables needs to be transformed into the
format cordova expects
This commit is contained in:
Родитель
f3bc2f9888
Коммит
48ac896a0d
|
@ -84,10 +84,19 @@ class Plugin extends kitComponentCommand.KitComponentCommand {
|
|||
}
|
||||
|
||||
protected getCommandOptions(commandData: commands.ICommandData): Cordova.ICordovaPluginOptions {
|
||||
|
||||
// Sanitize the --variable option flags
|
||||
var variables: string[] = commandData.options["variable"] || [];
|
||||
var cli_variables: Cordova.IKeyValueStore<string> = {}
|
||||
variables.forEach(function(variable: string): void {
|
||||
var keyval: any[] = variable.split("=");
|
||||
cli_variables[keyval[0].toUpperCase()] = keyval[1];
|
||||
});
|
||||
|
||||
return <Cordova.ICordovaPluginOptions>{
|
||||
searchpath: commandData.options["searchpath"],
|
||||
noregistry: commandData.options["noregistry"],
|
||||
cli_variables: commandData.options["cli_variables"],
|
||||
cli_variables: cli_variables,
|
||||
browserify: commandData.options["browserify"],
|
||||
link: commandData.options["link"],
|
||||
save: commandData.options["save"],
|
||||
|
|
Загрузка…
Ссылка в новой задаче