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

Migrate build tooling to PNPM and NX #255

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

abhiram6121
Copy link

@abhiram6121 abhiram6121 commented Oct 18, 2024

Migrate build tooling to PNPM and NX

Purpose

The current monorepo build tooling relies on Yarn, which, while effective, does not offer the same performance optimizations, workspace management, and task orchestration provided by newer tools like PNPM and NX. Additionally, the current release process lacks automation for managing versioning and changelogs, which can be improved with Changesets. As the project scales, upgrading the tooling will enhance the development workflow and ensure smoother releases.

Goals

  • Replacing Yarn with PNPM to leverage faster installs and workspace management.
  • Integrating NX for improved build processes and incremental builds across the monorepo.
  • Incorporating Changesets to automate version control and changelog updates.
  • Updating scripts and CI configurations to support the new tooling.
  • Verifying compatibility and functionality across all packages.

@abhiram6121
Copy link
Author

CC: @pavinduLakshan

The migration to PNPM is complete. Could you please review it?

@@ -0,0 +1 @@
shamefully-hoist=true
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you explain the purpose of this?

Copy link
Author

Choose a reason for hiding this comment

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

Comment on lines +8 to +9
"start": "pnpm run server:local",
"prestart": "pnpm run build",
Copy link
Contributor

Choose a reason for hiding this comment

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

we may not need run. Please check

Suggested change
"start": "pnpm run server:local",
"prestart": "pnpm run build",
"start": "pnpm server:local",
"prestart": "pnpm build",

Copy link
Author

Choose a reason for hiding this comment

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

It works, But is it recommended?

"install:server": "cd apps/server && yarn install",
"build:client": "cd apps/client && yarn run build",
"build:server": "cd apps/server && yarn run build"
"prebuild": "curr_dir=$(pwd) && pnpm run install:client && cd $curr_dir && pnpm run install:server",
Copy link
Contributor

Choose a reason for hiding this comment

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

We may not need run part. Please validate.

Copy link
Author

Choose a reason for hiding this comment

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

It works, But is it recommended?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants