Wrapper for the Broccoli Builder class.

Method Summary

Private Methods
private
private

Determine whether the output path is safe to delete. If the outputPath appears anywhere in the parents of the project root, the build would delete the project directory. In this case return false, otherwise return true.

private

Checks for issues in the environment that can't easily be detected until after a build and issues any necessary deprecation warnings.

private

Delegates to the cleanup method of the wrapped Broccoli builder.

private
copyToOutputPath(inputPath)
private

Handles the message event on the process.

private

Handles the SIGINT signal.

private

Handles the SIGTERM signal.

private
processAddonBuildSteps(buildStep, results): Promise
private
private
private
private

Private Methods

Return:

lib/models/builder.js:214

private canDeleteOutputPath(outputPath): Boolean

Determine whether the output path is safe to delete. If the outputPath appears anywhere in the parents of the project root, the build would delete the project directory. In this case return false, otherwise return true.

Parameters:

Name Type Attribute Description
outputPath String

Return:

lib/models/builder.js:385

private checkForPostBuildEnvironmentIssues( )

Checks for issues in the environment that can't easily be detected until after a build and issues any necessary deprecation warnings.

  • check for old (pre 0.1.4) versions of heimdalljs
lib/models/builder.js:360

private cleanup( ): Promise

Delegates to the cleanup method of the wrapped Broccoli builder.

Return:

lib/models/builder.js:236

private copyToOutputPath(inputPath)

Parameters:

Name Type Attribute Description
inputPath String
lib/models/builder.js:426

private onMessage( )

Handles the message event on the process.

Calls process.exit if the kill property on the message is set.

lib/models/builder.js:402

private onSIGINT( )

Handles the SIGINT signal.

Calls Builder/cleanupAndExit:method by default.

lib/models/builder.js:414

private onSIGTERM( )

Handles the SIGTERM signal.

Calls Builder/cleanupAndExit:method by default.

lib/models/builder.js:281

private processAddonBuildSteps(buildStep, results): Promise

Parameters:

Name Type Attribute Description
buildStep Object
results Object

Return:

lib/models/builder.js:262

private processBuildResult(results): Promise

Parameters:

Name Type Attribute Description
results Object

Return:

lib/models/builder.js:136

private setupBroccoliBuilder( )

lib/models/builder.js:160

private trapSignals( )

lib/models/builder.js:191

private trapWindowsSignals( )