Skip to content
Draft
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
59 changes: 30 additions & 29 deletions .github/workflows/analyse.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,38 @@
name: analyse

on: ['push', 'pull_request']
on: ["push", "pull_request"]

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest]
php: [8.3]
laravel: [11.*]
stability: [prefer-stable]
include:
- laravel: 11.*
testbench: 9.*
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest]
php: [8.4]
laravel: [12.*]
stability: [prefer-stable]
include:
- laravel: 12.*
testbench: 10.*

name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}

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

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
coverage: none
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
coverage: none

- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
- name: Analyse
run: composer analyse
- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --${{ matrix.stability }} --prefer-dist --no-interaction

- name: Execute phpstan
run: composer analyse
55 changes: 30 additions & 25 deletions .github/workflows/style.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,37 @@
name: style

on:
push:
branches:
- master
jobs:
style:
name: Style
runs-on: ubuntu-latest
on: ["push", "pull_request"]

steps:
- name: Checkout code
uses: actions/checkout@v4
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest]
php: [8.4]
laravel: [12.*]
stability: [prefer-stable]
include:
- laravel: 12.*
testbench: 10.*

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
extensions: dom, curl, libxml, mbstring, zip, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
coverage: none
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}

- name: Install dependencies
run: composer install
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Style
run: composer fix-style
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
coverage: none

- name: Commit Changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Fix styling changes
- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
- name: Execute tests
run: composer style
2 changes: 1 addition & 1 deletion .github/workflows/translations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
php-version: '8.4'
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
coverage: none
- name: Install dependencies
Expand Down
17 changes: 14 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
"name": "Kevin Meijer",
"email": "kevin@justbetter.nl",
"role": "Developer"
},
{
"name": "Bob Wezelman",
"email": "bob@justbetter.nl",
"role": "Developer"
}
],
"autoload": {
Expand All @@ -28,17 +33,23 @@
"elasticsearch/elasticsearch": "^8.19",
"rapidez/core": "^4.0",
"rapidez/laravel-scout-elasticsearch": "^1.0",
"rapidez/statamic": "^5.0|^6.0",
"statamic/cms": "^5.0"
"rapidez/statamic": "dev-feature/statamic-6",
"statamic/cms": "^6.0"
},
"require-dev": {
"larastan/larastan": "^3.7",
"laravel/pint": "^1.22",
"orchestra/testbench": "^9.0",
"orchestra/testbench": "^10.0",
"pestphp/pest": "^4.1",
"phpstan/phpstan-mockery": "^2.0",
"phpunit/phpunit": "^12.3"
},
"repositories": [
{
"type": "vcs",
"url": "git@github.com:kevinmeijer97/statamic-builder.git"
}
],
"config": {
"sort-packages": true,
"allow-plugins": {
Expand Down
11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,15 @@
"dev": "vite",
"build": "vite build"
},
"dependencies": {
"@statamic/cms": "file:./vendor/statamic/cms/resources/dist-package",
"axios": "^1.13.3"
},
"devDependencies": {
"@vitejs/plugin-vue2": "^2.2.0",
"laravel-vite-plugin": "^0.7.2",
"laravel-vite-plugin": "^1.2.0",
"postcss": "^8.4.41",
"tailwindcss": "^3.4.10",
"vite": "^4.0.0",
"vue": "^2.6.11"
"vite": "^6.3.4",
"vue": "^3.4.27"
}
}

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

15 changes: 6 additions & 9 deletions resources/dist/build/manifest.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
{
"resources/js/statamic-query-builder.css": {
"file": "assets/statamic-query-builder-d534377b.css",
"src": "resources/js/statamic-query-builder.css"
},
"resources/js/statamic-query-builder.js": {
"css": [
"assets/statamic-query-builder-d534377b.css"
],
"file": "assets/statamic-query-builder-be794af5.js",
"file": "assets/statamic-query-builder-BD4UnHGk.js",
"name": "statamic-query-builder",
"src": "resources/js/statamic-query-builder.js",
"isEntry": true,
"src": "resources/js/statamic-query-builder.js"
"css": [
"assets/statamic-query-builder-CVyH-oa3.css"
]
}
}
Loading