UNPKG

767 BTypeScriptView Raw
1import { Compiler } from 'webpack';
2interface GitRevisionPluginOptions {
3 gitWorkTree?: string;
4 commithashCommand?: string;
5 versionCommand?: string;
6 branch?: boolean;
7 branchCommand?: string;
8 lastCommitDateTimeCommand?: string;
9 lightweightTags?: boolean;
10}
11export declare class GitRevisionPlugin {
12 gitWorkTree?: string;
13 commithashCommand: string;
14 versionCommand: string;
15 createBranchFile: boolean;
16 branchCommand: string;
17 lastCommitDateTimeCommand: string;
18 constructor(options?: GitRevisionPluginOptions);
19 commithash(): string | null;
20 version(): string | null;
21 branch(): string | null;
22 lastcommitdatetime(): string | null;
23 apply(compiler: Compiler): void;
24}
25export {};