References
Class Summary
Static Public Class Summary | ||
public |
CompileCache manages getting and setting entries for a single compiler; each in-use compiler will have an instance of this class, usually created via createFromCompiler. |
|
public |
This class is the top-level class that encapsulates all of the logic of compiling and caching application code. |
|
public |
This class caches information about files and determines whether they have changed contents or not. |
|
public |
ReadOnlyCompiler is a compiler which allows the host to inject all of the compiler metadata information so that CompileCache et al are able to recreate the hash without having two separate code paths. |
Function Summary
Static Public Function Summary | ||
public |
Returns what electron-compile would use as a default rootCacheDir. |
|
public |
createCompilerHostFromBabelRc(file: string, rootCacheDir: string): Promise<CompilerHost> Creates a compiler host from a .babelrc file. |
|
public |
createCompilerHostFromBabelRcSync(file: *, rootCacheDir: *): * |
|
public |
createCompilerHostFromConfigFile(file: string, rootCacheDir: string): Promise<CompilerHost> Creates a compiler host from a .compilerc file. |
|
public |
createCompilerHostFromConfigFileSync(file: *, rootCacheDir: *): * |
|
public |
createCompilerHostFromProjectRoot(rootDir: string, rootCacheDir: string): Promise<CompilerHost> Creates a configured CompilerHost instance from the project root directory. |
|
public |
createCompilerHostFromProjectRootSync(rootDir: *, rootCacheDir: *): * |
|
public |
Allows you to create new instances of all compilers that are supported by electron-compile and use them directly. |
|
public |
forAllFilesSync(rootDirectory: *, func: *, args: ...*) |
|
public |
Returns the default .configrc if no configuration information can be found. |
|
public |
Initialize electron-compile and set it up, either for development or production use. |
|
public |
initializeGlobalHooks(compilerHost: CompilerHost) Initialize the global hooks (protocol hook for file:, node.js hook) independent of initializing the compiler. |
|
public |
initializeProtocolHook(compilerHost: CompilerHost) Initializes the protocol hook on file: that allows us to intercept files loaded by Chromium and rewrite them. |
|
public |
registerRequireExtension(compilerHost: CompilerHost) Initializes the node.js hook that allows us to intercept files loaded by node.js and rewrite them. |