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
compatNode(node)

broccoli-builder reformats the response into {directory, graph}, this method is a backwards compatible shim for broccoli 1.x

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

Private Methods

Return:

lib/models/builder.js:113

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:270

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:236

private cleanup( ): Promise

Delegates to the cleanup method of the wrapped Broccoli builder.

Return:

lib/models/builder.js:295

private compatNode(node)

broccoli-builder reformats the response into {directory, graph}, this method is a backwards compatible shim for broccoli 1.x

Parameters:

Name Type Attribute Description
node Object

The node returned from Broccoli builder

lib/models/builder.js:135

private copyToOutputPath(inputPath)

Parameters:

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

private finalizeBuild( )

lib/models/builder.js:174

private processAddonBuildSteps(buildStep, results): Promise

Parameters:

Name Type Attribute Description
buildStep Object
results Object

Return:

lib/models/builder.js:159

private processBuildResult(results): Promise

Parameters:

Name Type Attribute Description
results Object

Return:

lib/models/builder.js:43

private readBuildFile(path)

Parameters:

Name Type Attribute Description
path Object

The file path to read the build file from

lib/models/builder.js:58

private setupBroccoliBuilder( )