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

[BREAKING] Change Monorepo tool to Turborepo #470

Merged
merged 22 commits into from
Feb 2, 2023

Conversation

saenyakorn
Copy link
Member

@saenyakorn saenyakorn commented Jan 27, 2023

Why did you create this PR

What I'm planning to do

  1. Remove all project.json and nx.json
  2. Remove pnpm-lock.yaml
  3. Add package.json for each app and package with name, version, and general script like dev, build, lint
  4. Investigate the old pnpm-lock.yaml, and install external package with specific version for each app and packages.
  5. Fix Typescript problem for each app. No logic changes.
  6. Rewrite GitHub Action for releasing app.
  7. Fix CI workflow a bit
  8. Run prettier

Done

  • Web
  • API
  • Reg Scraper
  • Course Utils
  • Codegen
  • GitHub Action

Demo

No demo yet

Checklist

  • Deploy a demo
  • Check browsers compatibility
  • Wrote coverage tests

Related links

Resource https://github.com/saenyakorn/turborepo-versioning-demo/

Notes

I'll continuously update the progress. And I'll ready for review when I'm fully sure that our apps can be built and run properly.

@saenyakorn saenyakorn added the enhancement Improve existing features label Jan 27, 2023
@saenyakorn saenyakorn self-assigned this Jan 27, 2023
test release workflow

test release workflow

test release workflow

test release workflow

test release workflow

test release workflow

test release workflow

test release workflow

test release workflow

test release workflow

test release workflow

test release workflow

test release workflow

test release workflow
@saenyakorn saenyakorn force-pushed the yu/breaking/change-monorepo-tools branch from 4a7ef4f to eca528e Compare January 29, 2023 16:30
@saenyakorn
Copy link
Member Author

ดูจาก repo GitOps แล้วคิดว่าน่าจะต้องแก้วิธีใส่ version ใหม่ เดี๋ยว merge อันนี้ไปก่อน แล้วเดี๋ยว เปิด PR ไปยัง repo GitOps ตอน deploy เดี๋ยวมาอีกที

@saenyakorn saenyakorn marked this pull request as ready for review February 2, 2023 02:43
@@ -23,7 +23,7 @@ FROM pnpm AS installer
WORKDIR /app

COPY --from=builder /app/out/json/ .
COPY --from=builder /app/out/pnpm-lock.yaml ./pnpm-lock.yaml
COPY pnpm-lock.yaml ./pnpm-lock.yaml
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we no longer using pruned lock file?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because sometimes turbo incorrectly prunes the file and remove some files we need (e.g. mongoose and shit) vercel/turborepo#2791

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i figure it's fine if we use the full lockfile, since we pruned the package json anyways?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Huh, it looks fine over here. No missing modules.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you try using pruned pnpm-lock and build reg-scraper image?

.github/workflows/deploy-docker.yaml Show resolved Hide resolved
.github/workflows/release-dev.yaml Show resolved Hide resolved
.github/workflows/release-dev.yaml Outdated Show resolved Hide resolved
.github/workflows/release-dev.yaml Show resolved Hide resolved
@saenyakorn saenyakorn merged commit 7a1aa4e into beta Feb 2, 2023
@saenyakorn saenyakorn deleted the yu/breaking/change-monorepo-tools branch February 2, 2023 15:13
@bombnp bombnp mentioned this pull request Feb 4, 2023
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improve existing features
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants