1 | // READY
|
2 | //
|
3 | // Emitted when a channel is open and ready to accept further messages.
|
4 | //
|
5 | // shape({});
|
6 |
|
7 | // CONFIGURE
|
8 | //
|
9 | // Emitted by each HappyThread to its channel with the current compiler's
|
10 | // options so that the workers may use those options in their FakeCompiler /
|
11 | // FakeLoaderContext.
|
12 | //
|
13 | // shape({
|
14 | // data: shape({
|
15 | // compilerOptions: string
|
16 | // })
|
17 | // });
|
18 |
|
19 | // CONFIGURE_DONE
|
20 | //
|
21 | // Emitted when a channel has successfully deserialized and configured its
|
22 | // workers with the compiler options.
|
23 | //
|
24 | // shape({});
|
25 |
|
26 | // COMPILE
|
27 | //
|
28 | // shape({
|
29 | // sourcePath: string,
|
30 | // compiledPath: string,
|
31 | // loaderContext: object,
|
32 | // });
|
33 |
|
34 | // COMPILE_DONE
|
35 | //
|
36 | // shape({
|
37 | // sourcePath: string,
|
38 | // compiledPath: string,
|
39 | // success: bool,
|
40 | // });
|
41 |
|
42 | // COMPILER_REQUEST
|
43 | //
|
44 | // shape({
|
45 | // data: shape({
|
46 | // id: string.isRequired,
|
47 | // type: oneOf([ 'resolve' ]).isRequired,
|
48 | //
|
49 | // payload: oneOfType([
|
50 | // // resolve
|
51 | // shape({
|
52 | // context: string,
|
53 | // resource: string,
|
54 | // }),
|
55 | // ]).isRequired,
|
56 | // }),
|
57 | // });
|
58 |
|
59 | // COMPILER_RESPONSE
|
60 | //
|
61 | // shape({
|
62 | // data: shape({
|
63 | // id: string.isRequired,
|
64 | //
|
65 | // payload: shape({
|
66 | // error: string,
|
67 | // result: object,
|
68 | // })
|
69 | // })
|
70 | // });
|