MCPcopy
hub / github.com/ionic-team/capacitor / runHooks

Function runHooks

cli/src/common.ts:150–158  ·  view source on GitHub ↗
(config: Config, platformName: string, dir: string, hook: string)

Source from the content-addressed store, hash-verified

148}
149
150export async function runHooks(config: Config, platformName: string, dir: string, hook: string): Promise<void> {
151 await runPlatformHook(config, platformName, dir, hook);
152
153 const allPlugins = await getPlugins(config, platformName);
154
155 for (const p of allPlugins) {
156 await runPlatformHook(config, platformName, p.rootPath, hook);
157 }
158}
159
160export async function runPlatformHook(
161 config: Config,

Callers 3

copyFunction · 0.90
updateFunction · 0.90
syncFunction · 0.90

Calls 2

getPluginsFunction · 0.90
runPlatformHookFunction · 0.85

Tested by

no test coverage detected