@modern-js/core
Version:
A Progressive React Framework for modern web development.
26 lines (25 loc) • 1.15 kB
TypeScript
export * from './types';
export * from './loadEnv';
export * from '@modern-js/plugin';
export { loadConfig } from './config';
export { mergeConfig, initAppDir } from './utils';
export { manager, createPlugin, registerHook } from './manager';
export { AppContext, ConfigContext, ResolvedConfigContext, useAppContext, useConfigContext, useResolvedConfigContext, initAppContext, } from './context';
export declare const cli: {
init: (options?: import("./types").CoreOptions) => Promise<{
resolved: import("./types").NormalizedConfig<{}>;
appContext: import("./types").IAppContext;
}>;
run: (options?: import("./types").CoreOptions) => Promise<void>;
test: (argv: string[], options?: {
coreOptions?: import("./types").CoreOptions;
disableWatcher?: boolean;
}) => Promise<void>;
runCommand: (command: string, commandOptions?: string[], options?: import("./types").CoreOptions) => Promise<void>;
getPrevInitOptions: () => import("./types").CoreOptions | undefined;
};
declare module '@modern-js/utils/compiled/commander' {
interface Command {
commandsMap: Map<string, Command>;
}
}