UNPKG

1.57 kBTypeScriptView Raw
1import * as parseArgv from 'minimist';
2import { NexeCompiler } from './compiler';
3import { NexeTarget } from './target';
4export declare const version = "{{replace:0}}";
5export interface NexePatch {
6 (compiler: NexeCompiler, next: () => Promise<void>): Promise<void>;
7}
8export interface NexeOptions {
9 build: boolean;
10 input: string;
11 output: string;
12 targets: (string | NexeTarget)[];
13 name: string;
14 remote: string;
15 asset: string;
16 cwd: string;
17 fs: boolean | string[];
18 flags: string[];
19 configure: string[];
20 vcBuild: string[];
21 make: string[];
22 snapshot?: string;
23 resources: string[];
24 temp: string;
25 rc: {
26 [key: string]: string;
27 };
28 enableNodeCli: boolean;
29 bundle: boolean | string;
30 patches: (string | NexePatch)[];
31 plugins: (string | NexePatch)[];
32 native: any;
33 mangle: boolean;
34 ghToken: string;
35 sourceUrl?: string;
36 enableStdIn?: boolean;
37 python?: string;
38 loglevel: 'info' | 'silent' | 'verbose';
39 silent?: boolean;
40 fakeArgv?: boolean;
41 verbose?: boolean;
42 info?: boolean;
43 ico?: string;
44 debugBundle?: boolean;
45 warmup?: string;
46 clean?: boolean;
47 /**
48 * Api Only
49 */
50 downloadOptions: any;
51}
52declare const argv: parseArgv.ParsedArgs;
53declare let help: string;
54export declare function resolveEntry(input: string, cwd: string, maybeEntry: string | undefined, bundle: boolean | string): string;
55declare function normalizeOptions(input?: Partial<NexeOptions>): NexeOptions;
56export { argv, normalizeOptions, help };