Skip to content

Migrate to pnpm #2276

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

Merged
merged 34 commits into from
Jul 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
ac2403e
migrate to pnpm
jrmajor Mar 16, 2025
59948cf
Merge branch 'master' into pr/2276
pascalbaljet Jun 6, 2025
0161ed0
Update pnpm-lock.yaml
pascalbaljet Jun 6, 2025
5794a72
Added scripts to run the test server and playground servers
pascalbaljet Jun 6, 2025
fad8a31
formatting
jrmajor Jun 6, 2025
52da35f
simplify
jrmajor Jun 6, 2025
7f42780
approve esbuild postinstall
jrmajor Jun 6, 2025
e5c2e4a
formatting
jrmajor Jun 6, 2025
f2c8d73
remove useless script
jrmajor Jun 6, 2025
3b571d9
Add test server log message
pascalbaljet Jun 6, 2025
f45012c
Renamed `server:run` to `build` for consistency
pascalbaljet Jun 6, 2025
83727cc
Remove Pail from composer dev script and use pnpx
pascalbaljet Jun 6, 2025
e8c6073
Merge branch 'master' into pr/2276
pascalbaljet Jun 17, 2025
90d4a56
Renamed `watch` commands to `dev`
pascalbaljet Jun 17, 2025
c132642
Update pnpm-lock.yaml
pascalbaljet Jun 17, 2025
e2165b5
Merge branch 'master' into pr/2276
pascalbaljet Jun 18, 2025
a02a912
Restrict Playwright version (see #2382)
pascalbaljet Jun 18, 2025
45e93fb
Update pnpm-lock.yaml
pascalbaljet Jun 18, 2025
778a361
Merge branch 'master' into pr/2276
pascalbaljet Jul 9, 2025
2b1c421
WIP
pascalbaljet Jul 9, 2025
24f709b
WIP
pascalbaljet Jul 9, 2025
c4c22e1
Update CONTRIBUTING.md
pascalbaljet Jul 9, 2025
8d5c8b3
Update url.test.ts
pascalbaljet Jul 9, 2025
6997cba
Update build.yml
pascalbaljet Jul 9, 2025
1c3179b
Update CONTRIBUTING.md
pascalbaljet Jul 11, 2025
db0723f
Adapter check
pascalbaljet Jul 11, 2025
fa7f71e
WIP
pascalbaljet Jul 11, 2025
c900397
WIP
pascalbaljet Jul 11, 2025
476959c
Update tsconfig.json
pascalbaljet Jul 11, 2025
97706eb
Server status
pascalbaljet Jul 11, 2025
83b8bb3
Update url.test.ts
pascalbaljet Jul 11, 2025
26a3d4f
Merge branch 'master' into pr/2276
pascalbaljet Jul 11, 2025
b1dff24
Merge branch 'master' into pr/2276
pascalbaljet Jul 15, 2025
b1fc5f7
WIP
pascalbaljet Jul 15, 2025
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
78 changes: 0 additions & 78 deletions .github/CONTRIBUTING.md

This file was deleted.

25 changes: 9 additions & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,23 @@ jobs:
timeout-minutes: 15
runs-on: ubuntu-24.04

strategy:
matrix:
adapter: ['react', 'vue3', 'svelte']

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v3
with:
version: 10

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22.14
cache: pnpm

- name: Cache node modules
uses: actions/cache@v4
with:
key: ${{ runner.OS }}-npm-cache-${{ hashFiles('package-lock.json') }}
path: |
~/.cache
node_modules
packages/${{ matrix.adapter }}/tests/node_modules
- name: Install dependencies
run: pnpm install

- name: Build Inertia
run: |
npm install
cd packages/core && npm run build
cd ../${{ matrix.adapter }} && npm run build
run: pnpm build:all
79 changes: 33 additions & 46 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,50 +7,37 @@ jobs:
runs-on: ubuntu-24.04
strategy:
matrix:
adapter: ['vue3', 'react', 'svelte']
env:
PACKAGE: ${{ matrix.adapter }}
adapter: ["vue", "react", "svelte"]
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 22.14

- name: Build Inertia
run: |
npm install
cd packages/core
npm run build

- name: Build Adapter
run: |
cd packages/${{ matrix.adapter }}
npm run build

- name: Install Test Dependencies
run: |
cd packages/${{ matrix.adapter }}/test-app
npm install

- name: Local-link @inertiajs/core
run: cd packages/core && npm link

- name: Local-link @inertiajs/${{ matrix.adapter }}
run: cd packages/${{ matrix.adapter }} && npm link

- name: Install Playwright Browsers
run: cd packages/${{ matrix.adapter }} && npx playwright install --with-deps

- name: Install Playwright Test Dependencies
run: cd tests/app && npm install

- name: Run Playwright Tests
run: cd tests && npx playwright test

- name: Upload failure screenshots
if: failure()
uses: actions/upload-artifact@v4
with:
name: playwright-failure-screenshots-${{ matrix.adapter }}
path: test-results
- name: Checkout
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v3
with:
version: 10

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22.14
cache: pnpm

- name: Install dependencies
run: pnpm install

- name: Build Inertia
run: pnpm -r --filter ./packages/core --filter ./packages/${{ matrix.adapter }}* build

- name: Install Playwright Browsers
run: pnpm playwright install chromium

- name: Run Playwright Tests
run: pnpm test:${{ matrix.adapter }}

- name: Upload failure screenshots
if: failure()
uses: actions/upload-artifact@v4
with:
name: playwright-failure-screenshots-${{ matrix.adapter }}
path: test-results
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.github/
pnpm-lock.yaml
**/.svelte-kit
**/bootstrap/ssr
**/composer.json
Expand Down
Loading