Skip to content
Merged
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
24 changes: 19 additions & 5 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,33 @@ jobs:
with:
php-version: '8.4'

- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: '1.1.30'

- name: Cache Bun Dependencies
uses: actions/cache@v4
with:
path: ~/.cache/bun
key: bun-cache-${{ hashFiles('bun.lock') }}
restore-keys: |
bun-cache-

- name: Install Dependencies
run: |
composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
npm install
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist

- name: Install Frontend Dependencies
run: bun install --frozen-lockfile

- name: Run Pint
run: vendor/bin/pint

- name: Format Frontend
run: npm run format
run: bun run format

- name: Lint Frontend
run: npm run lint
run: bun run lint

# - name: Commit Changes
# uses: stefanzweifel/git-auto-commit-action@v5
Expand Down
21 changes: 14 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,21 @@ jobs:
tools: composer:v2
coverage: xdebug

- name: Setup Node
uses: actions/setup-node@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
node-version: '22'
cache: 'npm'
bun-version: '1.1.30'

- name: Install Node Dependencies
run: npm ci
- name: Cache Bun Dependencies
uses: actions/cache@v4
with:
path: ~/.cache/bun
key: bun-cache-${{ hashFiles('bun.lock') }}
restore-keys: |
bun-cache-

- name: Install Frontend Dependencies
run: bun install --frozen-lockfile

- name: Install Dependencies
run: composer install --no-interaction --prefer-dist --optimize-autoloader
Expand All @@ -43,7 +50,7 @@ jobs:
run: php artisan ziggy:generate

- name: Build Assets
run: npm run build
run: bun run build

- name: Copy Environment File
run: cp .env.example .env
Expand Down
10 changes: 5 additions & 5 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ This application is a Laravel application and its main Laravel ecosystems packag
- Do not change the application's dependencies without approval.

## Frontend Bundling
- If the user doesn't see a frontend change reflected in the UI, it could mean they need to run `npm run build`, `npm run dev`, or `composer run dev`. Ask them.
- If the user doesn't see a frontend change reflected in the UI, it could mean they need to run `bun run build`, `bun run dev`, or `composer run dev`. Ask them.

## Replies
- Be concise in your explanations - focus on what's important rather than explaining obvious details.
Expand Down Expand Up @@ -135,13 +135,13 @@ protected function isAccessible(User $user, ?string $path = null): bool
## Inertia Core

- Inertia.js components should be placed in the `resources/js/Pages` directory unless specified differently in the JS bundler (vite.config.js).
- Use `inertia()` for server-side routing instead of traditional Blade views.
- Use `Inertia::render()` for server-side routing instead of traditional Blade views.
- Use `search-docs` for accurate guidance on all things Inertia.

<code-snippet lang="php" name="inertia Example">
<code-snippet lang="php" name="Inertia::render Example">
// routes/web.php example
Route::get('/users', function () {
return inertia('users/index', [
return Inertia::render('Users/Index', [
'users' => User::all()
]);
});
Expand Down Expand Up @@ -213,7 +213,7 @@ Route::get('/users', function () {
- When creating tests, make use of `php artisan make:test [options] {name}` to create a feature test, and pass `--unit` to create a unit test. Most tests should be feature tests.

### Vite Error
- If you receive an "Illuminate\Foundation\ViteException: Unable to locate file in Vite manifest" error, you can run `npm run build` or ask the user to run `npm run dev` or `composer run dev`.
- If you receive an "Illuminate\Foundation\ViteException: Unable to locate file in Vite manifest" error, you can run `bun run build` or ask the user to run `bun run dev` or `composer run dev`.


=== laravel/v12 rules ===
Expand Down
Loading
Loading