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

feat(remodel): adds remodel package for repo restructure #24550

Closed
wants to merge 146 commits into from

Conversation

MrArnoldPalmer
Copy link
Contributor

@MrArnoldPalmer MrArnoldPalmer commented Mar 9, 2023

Adds a package, @aws-cdk/remodel, that is a CLI tool that will restructure the packages within the repo to remove the v1 modules, and collapse them all into aws-cdk-lib. The aim of this is to make working on, building, testing, etc of the aws-cdk easier and faster.

The remodel tool does the following:

  1. Copies the current aws-cdk contents into a new directory that it will work within
  2. Runs ubergen to bundle all of the @aws-cdk/* service packages into aws-cdk-lib and rewrite their imports to be relative where necessary.
  3. Copies all integration tests and snapshots into a new @aws-cdk-testing/framework-testing package
  4. Runs ./transform.sh to generate the alpha packages within packages/individual-packages then moves them back into the @aws-cdk/* folder
  5. Does general cleanup of leftover packages and reformat test files, build tooling, etc to support building the repository in its new structure.

MrArnoldPalmer and others added 30 commits January 10, 2023 13:30
Adds a `gen.ts` file in `scripts` for aws-cdk-lib which is meant to run
as the first step during build in order to generate L1 construct source
files. Added support for `*` as a scope in `cfn2ts` in order to enable
generating all desired L1s without declaring scopes in package.json.
Move the useful stuff in ubergen into lib/index.ts and add `main` field
to package json so packages within the repository can depend on it's
functionality. Specifically useful for repo restructure work.
feat(remodel): generate index.ts and .jsiirc.json files
@MrArnoldPalmer MrArnoldPalmer force-pushed the feat/repo-restructure branch 2 times, most recently from df720c6 to 1072f82 Compare March 28, 2023 21:06
@MrArnoldPalmer MrArnoldPalmer force-pushed the feat/repo-restructure branch from 1072f82 to 00aa956 Compare March 28, 2023 21:13
@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildv2Project1C6BFA3F-wQm2hXv2jqQv
  • Commit ID: 6ddc684
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

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

@MrArnoldPalmer
Copy link
Contributor Author

Closing this as not needed as the actual remodel PR was merged #24376

@RomainMuller RomainMuller deleted the feat/repo-restructure branch July 4, 2023 08:46
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. p2 pr-linter/exempt-integ-test The PR linter will not require integ test changes pr-linter/exempt-readme The PR linter will not require README changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants