UNPKG

@modern-js/module-tools-v2

Version:

The meta-framework suite designed from scratch for frontend-focused modern web development.

38 lines 1.04 kB
import { registerHook } from '../hooks'; import type { BaseBuildConfig, BuildConfig } from './config'; import type { DevCommandOptions } from './command'; export interface BuildTaskResult { status: 'success' | 'fail'; message?: string; config: BaseBuildConfig; } export interface BuildResult { status: 'success' | 'fail'; message?: string; config: BuildConfig; } export interface RegisterBuildPlatformResult { platform: string | string[]; build: (currentPlatform: string, context: { isTsProject: boolean; }) => void | Promise<void>; } export interface BuildPlatformResult { status: 'success' | 'fail'; message: string; } export interface DevToolData { name: string; subCommands?: string[]; menuItem?: { name: string; value: string; }; action: (options: DevCommandOptions, context: { isTsProject?: boolean; }) => void | Promise<void>; } export declare type PromptResult = { choiceDevTool: string | symbol; } & Record<string, any>; export declare type ModuleToolsHooks = typeof registerHook;