1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 | import { PackageTools } from "@kemao/package-tools/PackageTools/PackageTools";
|
17 | import * as webpack from "webpack";
|
18 | import { Version } from "../Core/Version";
|
19 | import { BrowserPack } from "./BrowserPack";
|
20 | export declare class ServerPack {
|
21 | version: Version;
|
22 | packageTools: PackageTools;
|
23 | count: number;
|
24 | sourceFile: any;
|
25 | outFile: any;
|
26 | watch: boolean;
|
27 | compiler: any;
|
28 | eventMap: Map<any, any>;
|
29 | browserPack: BrowserPack;
|
30 | sourceDir: any;
|
31 | env: {
|
32 | NODE_ENV: any;
|
33 | publicPath: string;
|
34 | };
|
35 | |
36 |
|
37 |
|
38 |
|
39 | setSourceDir(sourceDir: string): void;
|
40 | setBrowserPack(browserPack: any): void;
|
41 | setSourceFile(sourceFile: string): void;
|
42 | setOutFile(outFile: string): void;
|
43 | addEventListener(eventName: "build" | "buildStart" | "end", listener: (event: any) => void): void;
|
44 | build(): Promise<void>;
|
45 | setWatch(watch: boolean): void;
|
46 | getWatch(): boolean;
|
47 | |
48 |
|
49 |
|
50 | close(): void;
|
51 | trigger(eventName: "build" | "buildStart" | "end", data?: object): Promise<void>;
|
52 | pack(entry: any): Promise<void>;
|
53 | setENV(env: any): void;
|
54 | isProduction(): boolean;
|
55 | sendMessage(messageStr: string, title?: string, icon?: "info" | "error" | "warn"): void;
|
56 | protected webpack(config: webpack.Configuration): Promise<unknown>;
|
57 | protected done(webpackSelfError: any, stats: any): Promise<void>;
|
58 | private isWatch;
|
59 | }
|