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

Function createEmptyCordovaJS

cli/src/cordova.ts:159–163  ·  view source on GitHub ↗
(config: Config, platform: string)

Source from the content-addressed store, hash-verified

157}
158
159export async function createEmptyCordovaJS(config: Config, platform: string): Promise<void> {
160 const webDir = await getWebDir(config, platform);
161 await writeFile(join(webDir, 'cordova.js'), '');
162 await writeFile(join(webDir, 'cordova_plugins.js'), '');
163}
164
165export async function removePluginFiles(config: Config, platform: string): Promise<void> {
166 const webDir = await getWebDir(config, platform);

Callers 1

handleCordovaPluginsJSFunction · 0.85

Calls 1

getWebDirFunction · 0.70

Tested by

no test coverage detected