@hyext/builder-neorn
Version:
neo react-native builder for hyext
35 lines (34 loc) • 1.07 kB
TypeScript
import { MetroConfig } from '@hyext/matrix-compiler/dist/matrix-config/configTypes';
import { NeoBuildConfig, InfoProvider } from '../neo-types/neoTypes';
interface Payload {
projectRoot: string;
imageBaseURL: string;
buildConfig: NeoBuildConfig;
metroConfig: MetroConfig;
outputDir: string;
infoProvider: InfoProvider;
RNVersion: string;
onBeforeEach?: any;
onAfterEach?: any;
logger?: {
info: (msg: string) => void;
warn: (msg: string) => void;
error: (msg: string) => void;
success: (msg: string) => void;
};
}
interface BundleInfo {
extType: string;
bundleRelativePath: string;
registerComponents: {
name: string;
queryString?: string;
}[];
platform: 'ios' | 'android';
SDKVersion: string;
bundleMd5: string;
baseUrl?: string;
baseMd5?: string;
}
export default function buildBundle({ projectRoot, imageBaseURL, buildConfig, metroConfig, outputDir, onBeforeEach, infoProvider, RNVersion, logger, }: Payload): Promise<BundleInfo[]>;
export {};