@hyext/builder-neorn
Version:
neo react-native builder for hyext
55 lines (54 loc) • 1.9 kB
TypeScript
import startServer from './start/startServer';
import buildByProjectConfig from './build/buildByProjectConfig';
import { NeoBuilderInfo, NeoBuilderConfig, CreateAppPayload, HostExtType } from './neo-types/neoTypes';
export declare function createApp(options: CreateAppPayload): Promise<{
config: {
hostId: string;
host: string;
buildConfig: {
entry: string;
extType: string;
}[];
};
}>;
interface StartPayload {
projectName: string;
contextPath: string;
config: any;
inputPath: string;
outputPath: string;
publicPath: string;
}
export declare function start(options: StartPayload): Promise<import("@hyext/matrix-compiler/dist/lib/generateBuildResult").RNBuildResult>;
interface BuildPayload {
projectName: string;
config: NeoBuilderConfig;
inputPath: string;
outputPath: string;
publicPath: string;
releasePath?: string;
mode?: 'production';
}
export declare function build({ projectName, config, inputPath, outputPath, publicPath }: BuildPayload): Promise<import("@hyext/matrix-compiler/dist/lib/generateBuildResult").RNBuildResult>;
export declare const verifyAppByBuildConfig: ({ projectRoot, config }: {
projectRoot: string;
config: any;
}) => Promise<unknown>;
interface VerifyAppPayload {
contextPath: string;
projectRoot: string;
config: NeoBuilderConfig;
}
export declare function verifyApp({ contextPath: projectRoot }: VerifyAppPayload): Promise<unknown>;
export declare const providedProjectConfig: (payload?: {
config: {};
}) => any;
declare type ConfigOptions = {
contextPath: string;
projectName: string;
builderInfo: NeoBuilderInfo;
hostExtTypes: HostExtType[];
};
export declare function config({ contextPath, builderInfo, hostExtTypes }: ConfigOptions): Promise<void>;
export { buildByProjectConfig };
export { startServer };