Home Reference Source Test Repository

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

Creates a compiler host from a .babelrc file.

public

createCompilerHostFromBabelRcSync(file: *, rootCacheDir: *): *

public

Creates a compiler host from a .compilerc file.

public

createCompilerHostFromConfigFileSync(file: *, rootCacheDir: *): *

public

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

init(appRoot: string, mainModule: string, productionMode: bool)

Initialize electron-compile and set it up, either for development or production use.

public

Initialize the global hooks (protocol hook for file:, node.js hook) independent of initializing the compiler.

public

Initializes the protocol hook on file: that allows us to intercept files loaded by Chromium and rewrite them.

public

Initializes the node.js hook that allows us to intercept files loaded by node.js and rewrite them.