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

Pnpm #1079

Closed
wants to merge 3 commits into from
Closed

Pnpm #1079

wants to merge 3 commits into from

Conversation

roschaefer
Copy link
Contributor

Motivation

pnpm itself has a number of advantages, two are very relevant for our repository:

  • De-duplication of node modules
  • Run commands across packages

This will also setup dotenvx to read .env files (for unique port numbers).

It will also make local development with docker compose obsolete for our nodejs projects.

How to test

  1. pnpm install
  2. pnpm run -r dev

commits:

  • fix unique ports and environments
  • fix: extraneous import
  • remove obsolete package-lock.json
  • run pnpm install
  • run corepack use pnpm@latest

@Mogge
Copy link
Contributor

Mogge commented Jun 12, 2024

Please consider that we use the boiler-plates (e.g. https://github.com/IT4Change/boilerplate-frontend) and do the package updates via these boiler-plates. May be we run in problems when switching to pnpm or we have to do it in the boiler-plates as well

@mahula
Copy link
Contributor

mahula commented Jun 25, 2024

Let us discuss switching to Pnpm or Yarn Berry and relations to the boilerplates in one of the next team meetings.

@roschaefer roschaefer force-pushed the pnpm branch 2 times, most recently from d212b55 to ea9d565 Compare July 2, 2024 00:34
Motivation
----------
We have completely different `node --version`s on local development,
build server (even in different jobs) and production.

My suggestion is that we configure the node version in a central file in
the root folder and reference it from everywhere.

For me, any version manager is fine. If I have the choice, I suggest
[asdf-vm]](https://github.com/asdf-vm/asdf).

How to test
-----------
1. Check status checks
Motivation
----------
This PR solves two problems:
1. A custom vagrant box is built for better reproducibility (no more changes
   during runtime)
1. The code in the vagrant box needs the *local code* so we can actually test
   out local changes, not the ones pushed to Github.

How to test
-----------
1. Follow infrastructure/README.md
Motivation
----------
`pnpm` itself has a number of advantages, two are very relevant for our repository:
* De-duplication of node modules
* Run commands across packages

This will also setup `dotenvx` to read .env files (for unique port numbers).

It will also make local development with `docker compose` obsolete for our nodejs projects.

How to test
-----------
1. `pnpm install`
2. `pnpm run -r dev`

commits:
  * fix unique ports and environments
  * fix: extraneous import
  * remove obsolete `package-lock.json`
  * run `pnpm install`
  * run `corepack use pnpm@latest`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file devops refactor
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

3 participants