cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <>
Subject [jira] [Commented] (CB-12705) Project *_plugin_install hooks don't have information on installed plugin
Date Tue, 02 May 2017 00:09:04 GMT


ASF subversion and git services commented on CB-12705:

Commit 1e2a49479b3f03b55e0e8f59361ec47415ac6d27 in cordova-lib's branch refs/heads/common-2.0.x
from feichngr
[;h=1e2a494 ]

CB-12705: Pass plugin info to project *_plugin_install hooks

Before running runScriptViaModuleLoader context.opts.plugin already contains information on
the plugin. Modified the function so that the field is only overridden if the script comes
from a plugin.

> Project *_plugin_install hooks don't have information on installed plugin
> -------------------------------------------------------------------------
>                 Key: CB-12705
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: cordova-cli, CordovaLib
>    Affects Versions: 6.5.0
>            Reporter: Fabian Eichinger
> I want to build a {{after_plugin_install}} javascript hook for my project that only executes
it logic when installing a specific plugin (in my case {{cordova-plugin-file}}). As it turns
out the context passed to project-level {{\*_plugin_install}} hooks do not contain *any* information
on the plugin that was installed and this makes these kind of hooks basically useless.
> I propose passing to them the same information in {{context.opts.plugin}} as to plugin

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message