@gdjiami/cli
Version:
CLI for build front end project.
44 lines (43 loc) • 1.25 kB
TypeScript
import { ProxyConfig } from './proxy';
export interface ImportPluginConfig {
libraryName: string;
style?: 'css' | boolean;
libraryDirectory?: boolean;
camel2DashComponentName?: boolean;
}
export interface JMOptions {
electron?: boolean;
ie8?: boolean;
offline: boolean;
offlineOptions?: any;
enableOfflineInDev?: boolean;
proxy?: ProxyConfig;
importPlugin?: ImportPluginConfig | ImportPluginConfig[];
enableDuplicatePackageCheck: boolean;
enableTypescriptCheck: boolean;
enableTypescriptCheckInProduction: boolean;
enableTypescriptAsyncCheck: boolean;
enableCircularDependencyCheck: boolean;
enableDllInProduction?: boolean;
enableESlint?: boolean;
enableESlintInProduction?: boolean;
inject?: {
[key: string]: string;
};
useBuiltIns: 'entry' | 'usage' | false;
alias?: {
[key: string]: string;
};
electronExternalsWhitelist?: string[];
ignoreBrowserlistInDevelopment: boolean;
externals?: {
[key: string]: string;
};
dll?: {
include?: string[];
exclude?: string[];
};
}
export default function getOptions(pkg: {
[key: string]: any;
}): JMOptions;