wordpress-shortcode-webpack-plugin
Version:
Create Wordpress plugins from React apps built using Webpack
10 lines (9 loc) • 597 B
TypeScript
import yazl from 'yazl';
export declare function readFile(_fs: any, // InputFileSystem from Webpack, not exported :(
path: string): string;
export declare function kebabToTitle(str: string): string;
export declare function kebabToSnake(str: string): string;
export declare function jsObjectToPhpArray(jsObj: Object, indent?: number, last?: boolean): string;
export declare function indentText(str: string, amount: number): string;
export declare function getTabs(num: number): string;
export declare function addDirectory(zip: yazl.ZipFile, realPath: string, metadataPath: string): Promise<void>;