fork-ts-checker-webpack-plugin 0.4.14 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +23 -0
- package/README.md +3 -0
- package/lib/{types/CancellationToken.d.ts → CancellationToken.d.ts} +4 -4
- package/lib/CancellationToken.js +28 -27
- package/lib/{types/FilesRegister.d.ts → FilesRegister.d.ts} +9 -14
- package/lib/FilesRegister.js +24 -24
- package/lib/{types/FilesWatcher.d.ts → FilesWatcher.d.ts} +4 -7
- package/lib/FilesWatcher.js +27 -29
- package/lib/FsHelper.d.ts +5 -0
- package/lib/FsHelper.js +20 -0
- package/lib/IncrementalChecker.d.ts +34 -0
- package/lib/IncrementalChecker.js +97 -109
- package/lib/{types/Message.d.ts → Message.d.ts} +0 -0
- package/lib/{types/NormalizedMessage.d.ts → NormalizedMessage.d.ts} +16 -23
- package/lib/NormalizedMessage.js +76 -86
- package/lib/{types/VueProgram.d.ts → VueProgram.d.ts} +0 -0
- package/lib/VueProgram.js +62 -77
- package/lib/{types/WorkResult.d.ts → WorkResult.d.ts} +6 -6
- package/lib/WorkResult.js +22 -25
- package/lib/{types/WorkSet.d.ts → WorkSet.d.ts} +6 -6
- package/lib/WorkSet.js +6 -7
- package/lib/{types/cluster.d.ts → cluster.d.ts} +0 -0
- package/lib/cluster.js +19 -19
- package/lib/{types/formatter → formatter}/codeframeFormatter.d.ts +0 -0
- package/lib/formatter/codeframeFormatter.js +17 -16
- package/lib/{types/formatter → formatter}/defaultFormatter.d.ts +0 -0
- package/lib/formatter/defaultFormatter.js +9 -9
- package/lib/index.d.ts +98 -0
- package/lib/index.js +183 -192
- package/lib/{types/service.d.ts → service.d.ts} +0 -0
- package/lib/service.js +11 -11
- package/package.json +14 -18
- package/lib/types/IncrementalChecker.d.ts +0 -43
- package/lib/types/index.d.ts +0 -101
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import * as webpack from 'webpack';
|
|
2
|
+
import { NormalizedMessage } from './NormalizedMessage';
|
|
3
|
+
type Formatter = (message: NormalizedMessage, useColors: boolean) => string;
|
|
4
|
+
interface Logger {
|
|
5
|
+
error(message?: any): void;
|
|
6
|
+
warn(message?: any): void;
|
|
7
|
+
info(message?: any): void;
|
|
8
|
+
}
|
|
9
|
+
interface Options {
|
|
10
|
+
tsconfig: string;
|
|
11
|
+
compilerOptions: object;
|
|
12
|
+
tslint: string | true;
|
|
13
|
+
tslintAutoFix: boolean;
|
|
14
|
+
watch: string | string[];
|
|
15
|
+
async: boolean;
|
|
16
|
+
ignoreDiagnostics: number[];
|
|
17
|
+
ignoreLints: string[];
|
|
18
|
+
reportFiles: string[];
|
|
19
|
+
colors: boolean;
|
|
20
|
+
logger: Logger;
|
|
21
|
+
formatter: 'default' | 'codeframe' | Formatter;
|
|
22
|
+
formatterOptions: any;
|
|
23
|
+
silent: boolean;
|
|
24
|
+
checkSyntacticErrors: boolean;
|
|
25
|
+
memoryLimit: number;
|
|
26
|
+
workers: number;
|
|
27
|
+
vue: boolean;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* ForkTsCheckerWebpackPlugin
|
|
31
|
+
* Runs typescript type checker and linter (tslint) on separate process.
|
|
32
|
+
* This speed-ups build a lot.
|
|
33
|
+
*
|
|
34
|
+
* Options description in README.md
|
|
35
|
+
*/
|
|
36
|
+
declare class ForkTsCheckerWebpackPlugin {
|
|
37
|
+
static readonly DEFAULT_MEMORY_LIMIT = 2048;
|
|
38
|
+
static readonly ONE_CPU = 1;
|
|
39
|
+
static readonly ALL_CPUS: number;
|
|
40
|
+
static readonly ONE_CPU_FREE: number;
|
|
41
|
+
static readonly TWO_CPUS_FREE: number;
|
|
42
|
+
readonly options: Partial<Options>;
|
|
43
|
+
private tsconfig;
|
|
44
|
+
private compilerOptions;
|
|
45
|
+
private tslint?;
|
|
46
|
+
private tslintAutoFix;
|
|
47
|
+
private watch;
|
|
48
|
+
private ignoreDiagnostics;
|
|
49
|
+
private ignoreLints;
|
|
50
|
+
private reportFiles;
|
|
51
|
+
private logger;
|
|
52
|
+
private silent;
|
|
53
|
+
private async;
|
|
54
|
+
private checkSyntacticErrors;
|
|
55
|
+
private workersNumber;
|
|
56
|
+
private memoryLimit;
|
|
57
|
+
private useColors;
|
|
58
|
+
private colors;
|
|
59
|
+
private formatter;
|
|
60
|
+
private tsconfigPath?;
|
|
61
|
+
private tslintPath?;
|
|
62
|
+
private watchPaths;
|
|
63
|
+
private compiler;
|
|
64
|
+
private started?;
|
|
65
|
+
private elapsed?;
|
|
66
|
+
private cancellationToken?;
|
|
67
|
+
private isWatching;
|
|
68
|
+
private checkDone;
|
|
69
|
+
private compilationDone;
|
|
70
|
+
private diagnostics;
|
|
71
|
+
private lints;
|
|
72
|
+
private emitCallback;
|
|
73
|
+
private doneCallback;
|
|
74
|
+
private typescriptVersion;
|
|
75
|
+
private tslintVersion;
|
|
76
|
+
private service?;
|
|
77
|
+
private vue;
|
|
78
|
+
constructor(options?: Partial<Options>);
|
|
79
|
+
private static createFormatter;
|
|
80
|
+
apply(compiler: webpack.Compiler): void;
|
|
81
|
+
private computeContextPath;
|
|
82
|
+
private pluginStart;
|
|
83
|
+
private pluginStop;
|
|
84
|
+
private registerCustomHooks;
|
|
85
|
+
private pluginCompile;
|
|
86
|
+
private pluginEmit;
|
|
87
|
+
private pluginDone;
|
|
88
|
+
private spawnService;
|
|
89
|
+
private killService;
|
|
90
|
+
private handleServiceMessage;
|
|
91
|
+
private handleServiceExit;
|
|
92
|
+
private createEmitCallback;
|
|
93
|
+
private createNoopEmitCallback;
|
|
94
|
+
private createDoneCallback;
|
|
95
|
+
}
|
|
96
|
+
export = ForkTsCheckerWebpackPlugin;
|
|
97
|
+
declare namespace ForkTsCheckerWebpackPlugin {
|
|
98
|
+
}
|