nexe
Version:
Create a single executable out of your Node.js application
57 lines (56 loc) • 1.56 kB
TypeScript
import parseArgv from 'minimist';
import { NexeCompiler } from './compiler';
import { NexeTarget } from './target';
export declare const version = "{{ version }}";
export interface NexePatch {
(compiler: NexeCompiler, next: () => Promise<void>): Promise<void>;
}
export interface NexeOptions {
build: boolean;
input: string;
output: string;
targets: (string | NexeTarget)[];
name: string;
remote: string;
asset: string;
cwd: string;
fs: boolean | string[];
flags: string[];
configure: string[];
vcBuild: string[];
make: string[];
snapshot?: string;
resources: string[];
temp: string;
rc: {
[key: string]: string;
};
enableNodeCli: boolean;
bundle: boolean | string;
patches: (string | NexePatch)[];
plugins: (string | NexePatch)[];
native: any;
mangle: boolean;
ghToken: string;
sourceUrl?: string;
enableStdIn?: boolean;
python?: string;
loglevel: 'info' | 'silent' | 'verbose';
silent?: boolean;
fakeArgv?: boolean;
verbose?: boolean;
info?: boolean;
ico?: string;
debugBundle?: boolean;
warmup?: string;
clean?: boolean;
/**
* Api Only
*/
downloadOptions: any;
}
declare const argv: parseArgv.ParsedArgs;
declare let help: string;
export declare function resolveEntry(input: string, cwd: string, maybeEntry: string | undefined, bundle: boolean | string): string;
declare function normalizeOptions(input?: Partial<NexeOptions>): NexeOptions;
export { argv, normalizeOptions, help };