Skip to content

Commit be1c99f

Browse files
authored
[Chore] - Migrate from yarn/npm to pnpm (#185)
* chore: migrate from yarn to pnpm - Replace yarn with pnpm as the package manager - Update devcontainer configuration to use pnpm - Update GitHub Actions workflow to use pnpm - Update development Procfile and setup scripts - Remove yarn-specific files (.yarnrc, yarn.lock) - Add pnpm-lock.yaml - Update package.json dependencies * remove --lockfile * fix dockerfile * adding cache to pnpm * remove pnpm version
1 parent fab959f commit be1c99f

File tree

15 files changed

+734
-150575
lines changed

15 files changed

+734
-150575
lines changed

.devcontainer/devcontainer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"features": {
1111
"ghcr.io/devcontainers/features/github-cli:1": {},
1212
"ghcr.io/rails/devcontainer/features/activestorage": {},
13-
"ghcr.io/devcontainers/features/node:1": { "version": 20 },
13+
"ghcr.io/devcontainers/features/node:1": { "version": 20, "pnpmVersion": "10.8.0" },
1414
"ghcr.io/rails/devcontainer/features/sqlite3": {}
1515
},
1616

@@ -43,5 +43,5 @@
4343

4444

4545
// Use 'postCreateCommand' to run commands after the container is created.
46-
"onCreateCommand": "bin/setup"
46+
"onCreateCommand": "bin/setup --skip-server"
4747
}

.dockerignore

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
# Ignore git directory.
44
/.git/
5+
/.gitignore
56

67
# Ignore bundler config.
78
/.bundle
89

9-
# Ignore all environment files (except templates).
10+
# Ignore all environment files.
1011
/.env*
11-
!/.env*.erb
1212

1313
# Ignore all default key files.
1414
/config/master.key
@@ -35,3 +35,17 @@
3535
/app/assets/builds/*
3636
!/app/assets/builds/.keep
3737
/public/assets
38+
39+
# Ignore CI service files.
40+
/.github
41+
42+
# Ignore Kamal files.
43+
/config/deploy*.yml
44+
/.kamal
45+
46+
# Ignore development files
47+
/.devcontainer
48+
49+
# Ignore Docker-related files
50+
/.dockerignore
51+
/Dockerfile*

.github/workflows/main.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,22 @@ jobs:
4949
with:
5050
bundler-cache: true
5151

52+
- name: Install pnpm
53+
uses: pnpm/action-setup@v4
54+
with:
55+
run_install: false
56+
5257
- name: Setup Node
5358
uses: actions/setup-node@v4
5459
with:
5560
node-version-file: ".node-version"
56-
cache: yarn
61+
cache: 'pnpm'
5762

5863
- name: Install dependencies
5964
run: |
6065
sudo apt-get update
6166
sudo apt-get install -y -qq libvips
62-
yarn install --frozen-lockfile
67+
pnpm install
6368
6469
- name: Run tests
6570
env:

0 commit comments

Comments
 (0)