Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,18 @@ docker compose --profile=dev up

The app should be available at [http://localhost:4200](http://localhost:4200)

> **Nx state in Docker:** the containers keep their Nx cache and project
> graph in a dedicated `dev-nx` Docker volume, isolated from the host's
> `.nx/` directory. This prevents the Linux/Alpine containers and your
> host (e.g. macOS) from sharing — and corrupting — the same Nx store. To
> reset only the containers' Nx state, run:
>
> ```shell
> docker volume ls -q --filter name='dev-nx$' | xargs docker volume rm -f
> ```
>
> For a full reset (including the database), use `docker compose down -v`.

## Migrating an existing checkout from npm to pnpm

If you previously worked with npm, run the one-shot migration script from the
Expand Down
7 changes: 7 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ services:
volumes:
- .:/packmind
- dev-node_modules:/packmind/node_modules
- dev-nx:/packmind/.nx
- dev-nx-sock:/nx-sock
environment:
<<: *nx-env
Expand Down Expand Up @@ -114,6 +115,7 @@ services:
volumes:
- .:/packmind
- dev-node_modules:/packmind/node_modules
- dev-nx:/packmind/.nx
- dev-corepack-cache:/root/.cache/node/corepack
- dev-pnpm-store:/root/.local/share/pnpm

Expand All @@ -137,6 +139,7 @@ services:
volumes:
- .:/packmind
- dev-node_modules:/packmind/node_modules
- dev-nx:/packmind/.nx
- dev-corepack-cache:/root/.cache/node/corepack
- dev-pnpm-store:/root/.local/share/pnpm
depends_on:
Expand Down Expand Up @@ -177,6 +180,7 @@ services:
volumes:
- .:/packmind
- dev-node_modules:/packmind/node_modules
- dev-nx:/packmind/.nx
- dev-dist:/packmind/dist
- dev-tmp:/packmind/tmp
- dev-nx-sock:/nx-sock
Expand Down Expand Up @@ -231,6 +235,7 @@ services:
volumes:
- .:/packmind
- dev-node_modules:/packmind/node_modules
- dev-nx:/packmind/.nx
- dev-dist:/packmind/dist
- dev-tmp:/packmind/tmp
- dev-nx-sock:/nx-sock
Expand Down Expand Up @@ -276,6 +281,7 @@ services:
volumes:
- .:/packmind
- dev-node_modules:/packmind/node_modules
- dev-nx:/packmind/.nx
- dev-dist:/packmind/dist
- dev-tmp:/packmind/tmp
- dev-nx-sock:/nx-sock
Expand All @@ -297,6 +303,7 @@ services:

volumes:
dev-nx-sock:
dev-nx:
dev-postgres-data:
dev-redis-data:
dev-pgadmin:
Expand Down
3 changes: 3 additions & 0 deletions downgrade_node22.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
docker compose down
echo "🗑️ Suppression des volumes Docker dev-nx-sock et dev-node_modules..."
docker volume rm dev-nx-sock dev-node_modules 2>/dev/null || true
echo "🗑️ Suppression du volume Nx des containers (dev-nx)..."
nx_volumes="$(docker volume ls -q --filter name='dev-nx$')"
[ -n "$nx_volumes" ] && docker volume rm -f $nx_volumes 2>/dev/null || true

Check failure on line 15 in downgrade_node22.sh

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Use '[[' instead of '[' for conditional tests. The '[[' construct is safer and more feature-rich.

See more on https://sonarcloud.io/project/issues?id=PackmindHub_packmind&issues=AZ9MhdsEXf-QLPKaZzLy&open=AZ9MhdsEXf-QLPKaZzLy&pullRequest=382

# 2. Reset Nx (tant que node_modules et .nx existent encore)
echo ""
Expand Down
3 changes: 3 additions & 0 deletions migrate_node24.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
docker compose down
echo "🗑️ Suppression des volumes Docker dev-nx-sock et dev-node_modules..."
docker volume rm dev-nx-sock dev-node_modules 2>/dev/null || true
echo "🗑️ Suppression du volume Nx des containers (dev-nx)..."
nx_volumes="$(docker volume ls -q --filter name='dev-nx$')"
[ -n "$nx_volumes" ] && docker volume rm -f $nx_volumes 2>/dev/null || true

Check failure on line 15 in migrate_node24.sh

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Use '[[' instead of '[' for conditional tests. The '[[' construct is safer and more feature-rich.

See more on https://sonarcloud.io/project/issues?id=PackmindHub_packmind&issues=AZ9MhdxTXf-QLPKaZzLz&open=AZ9MhdxTXf-QLPKaZzLz&pullRequest=382

# 2. Reset Nx (tant que node_modules et .nx existent encore)
echo ""
Expand Down
Loading