src/hooks/scriptsFinder.js
function getAllPluginsHookScriptFiles (hook, opts) {
    var scripts = [];
    var currentPluginOptions;

    var plugins = (new PluginInfoProvider()).getAllWithinSearchPath(path.join(opts.projectRoot, 'plugins'));

    plugins.forEach(function (pluginInfo) {
        currentPluginOptions = {
            id: pluginInfo.id,
            pluginInfo: pluginInfo,
            dir: pluginInfo.dir
        };

        scripts = scripts.concat(getPluginScriptFiles(currentPluginOptions, hook, opts.cordova.platforms));
    });
    return scripts;
}
function getAllPluginsHookScriptFiles (hook, opts) {
    var scripts = [];
    var currentPluginOptions;

    var plugins = (new PluginInfoProvider()).getAllWithinSearchPath(path.join(opts.projectRoot, 'plugins'));

    plugins.forEach(function (pluginInfo) {
        currentPluginOptions = {
            id: pluginInfo.id,
            pluginInfo: pluginInfo,
            dir: pluginInfo.dir
        };

        scripts = scripts.concat(getPluginScriptFiles(currentPluginOptions, hook, opts.cordova.platforms));
    });
    return scripts;
}
function getAllPluginsHookScriptFiles ( hook , opts ) { var scripts = [ ] ; var currentPluginOptions ; var plugins = ( new PluginInfoProvider ( ) ) . getAllWithinSearchPath ( path . join ( opts . projectRoot , 'plugins' ) ) ; plugins . forEach ( function ( pluginInfo ) { currentPluginOptions = { id : pluginInfo . id , pluginInfo : pluginInfo , dir : pluginInfo . dir } ; scripts = scripts . concat ( getPluginScriptFiles ( currentPluginOptions , hook , opts . cordova . platforms ) ) ; } ) ; return scripts ; }
Gets hook scripts defined by all plugins.
Gets hook scripts defined by all plugins .