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

Speed up compiling internal packages for faster branch switching #1151

Open
nounder opened this issue Jun 13, 2024 · 2 comments
Open

Speed up compiling internal packages for faster branch switching #1151

nounder opened this issue Jun 13, 2024 · 2 comments

Comments

@nounder
Copy link
Contributor

nounder commented Jun 13, 2024

Jumping across branches with difference dependencies and internal package is currently very inconvenient.

On branch change I need to npm install (which on a 2nd run is fast thanks to npm cache) and then npm build which runs build on all apps and packages. This process is really slow because of daimo-web which builds whole Next.js app. On my Air M1 it takes more than 20s.


Decouple daimo-web build process from compilation process from package. We can compile packages automatically on npm install by adding postinstall script. This way, after changing a branch, it will be enough to run npm install to update external deps and internal packages.

@nounder nounder changed the title Speed up compiling internal packages Speed up compiling internal packages for faster branch switching Jun 13, 2024
@dcposch
Copy link
Member

dcposch commented Jun 13, 2024

To compile without web:

npm run build:api

@dcposch
Copy link
Member

dcposch commented Jun 13, 2024

Good issue for updating the README though

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

No branches or pull requests

2 participants