Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(monocdk): re-do build logic #8234

Merged
merged 4 commits into from
May 27, 2020
Merged

chore(monocdk): re-do build logic #8234

merged 4 commits into from
May 27, 2020

Conversation

RomainMuller
Copy link
Contributor

Make the monocdk-experiment package adhere to the general flow of having
a build phase followed by a package phase, instead of doing both at
the same time.

Additionally, using a TypeScript transform to re-write imports instead
of doing search and replace. The new implementation still looks only at
the ES6-style imports, but could be extended to go re-write other
kinds of imports if the need arises.

This also pre-generates submodule-local configurations for naming, which
are not used right now but will become used in a future version of
jsii. Right now this file is just metadata.

Finally, this models the dependencies in the local package, instead of
creating a shadow package for publishing. The yarn gen script will
make sure bundledDependencies, dependencies and devDependencies
are properly configured, as well as ensure the correct nohoist entries
are in the workspace root's package.json (so the bundled dependencies
are where npm pack needs to have them).


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@RomainMuller RomainMuller requested a review from a team May 27, 2020 15:07
@RomainMuller RomainMuller self-assigned this May 27, 2020
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label May 27, 2020
Make the monocdk-experiment package adhere to the general flow of having
a `build` phase followed by a `package` phase, instead of doing both at
the same time.

Additionally, using a TypeScript transform to re-write imports instead
of doing search and replace. The new implementation still looks only at
the ES6-style `import`s, but could be extended to go re-write other
kinds of imports if the need arises.

This also pre-generates submodule-local configurations for naming, which
are not used right now but will become used in a future version of
`jsii`. Right now this file is just metadata.

Finally, this models the dependencies in the local package, instead of
creating a shadow package for publishing. The `yarn gen` script will
make sure `bundledDependencies`, `dependencies` and `devDependencies`
are properly configured, as well as ensure the correct `nohoist` entries
are in the workspace root's `package.json` (so the bundled dependencies
are where `npm pack` needs to have them).
@RomainMuller RomainMuller added the effort/small Small work item – less than a day of effort label May 27, 2020
@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-qxepHUsryhcu
  • Commit ID: f6118c6
  • Result: FAILED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-qxepHUsryhcu
  • Commit ID: 3c23d6d
  • Result: FAILED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-qxepHUsryhcu
  • Commit ID: 2140e8d
  • Result: FAILED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-qxepHUsryhcu
  • Commit ID: 6203a59
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-qxepHUsryhcu
  • Commit ID: 433cd22
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify
Copy link
Contributor

mergify bot commented May 27, 2020

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify mergify bot merged commit c2b9e75 into master May 27, 2020
@mergify mergify bot deleted the rmuller/monocdk branch May 27, 2020 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution/core This is a PR that came from AWS. effort/small Small work item – less than a day of effort
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants