Skip to content

Commit

Permalink
fix: Exposing codebuild project in BuildSpecPipeline for flexibility
Browse files Browse the repository at this point in the history
  • Loading branch information
OrdonioSa committed Jun 1, 2021
1 parent b759d6f commit d84d98f
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .projen/deps.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
},
{
"name": "projen",
"version": "^0.18.13",
"version": "^0.18.9",
"type": "build"
},
{
Expand Down
1 change: 1 addition & 0 deletions API.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ new BuildSpecPipeline(scope: Construct, name: string, props?: BuildSpecPipelineP

Name | Type | Description
-----|------|-------------
**codebuildProject** | <code>[PipelineProject](#aws-cdk-aws-codebuild-pipelineproject)</code> | <span></span>
**pipeline** | <code>[Pipeline](#aws-cdk-aws-codepipeline-pipeline)</code> | <span></span>
**repository** | <code>[Repository](#aws-cdk-aws-codecommit-repository)</code> | <span></span>

Expand Down
2 changes: 1 addition & 1 deletion package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions src/BuildSpecPipeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ export class BuildSpecPipeline extends Construct {
this.pipeline = this.createPipeline(p);
}

// @ts-ignore
protected extendBuildSpec(buildSpec: any) {
// INTENTIONALLY EMPTY
}

private createOrUseRepository(props: BuildSpecPipelineProps): Repository {

Expand Down Expand Up @@ -171,11 +175,6 @@ export class BuildSpecPipeline extends Construct {
return props.projectName ?? path.basename(process.cwd());
}

// @ts-ignore
protected extendBuildSpec(buildSpec: any) {
// INTENTIONALLY EMPTY
}

private createCodebuildProject(p: BuildSpecPipelineProps) {
return new PipelineProject(this, 'PipelineProject', {
projectName: `${this.getProjectName(p)}-Build`,
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d84d98f

Please sign in to comment.