-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f875545
commit 83a5e9b
Showing
116 changed files
with
5,675 additions
and
5,343 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: PHP Quality and Style | ||
|
||
on: | ||
push: | ||
paths: | ||
- ".github/workflows/phpstan.yml" | ||
- "**.php" | ||
- "phpstan.neon.dist" | ||
- "rector.php" | ||
|
||
jobs: | ||
php-quality-style: | ||
name: PHP Quality and Style | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 5 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: "8.2" | ||
extensions: json, dom, curl, libxml, mbstring, zip | ||
tools: composer:v2 | ||
coverage: none | ||
|
||
- name: Install dependencies | ||
run: composer install --no-progress --prefer-dist --optimize-autoloader | ||
|
||
- name: Run Rector | ||
run: composer refactor | ||
|
||
- name: Commit changes | ||
uses: stefanzweifel/git-auto-commit-action@v5 | ||
with: | ||
commit_message: Refactor code with Rector | ||
|
||
- name: Run Pint | ||
run: composer format | ||
|
||
- name: Commit changes | ||
uses: stefanzweifel/git-auto-commit-action@v5 | ||
with: | ||
commit_message: Format code with Pint | ||
|
||
- name: Run PHPStan | ||
run: composer analyse |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
{ | ||
"name": "inertiaui/modal", | ||
"description": "Inertia Modal", | ||
"homepage": "https://github.com/inertiaui/modal", | ||
"license": "MIT", | ||
"require": { | ||
"php": "^8.2", | ||
"illuminate/contracts": "^10.48||^11.11", | ||
"inertiajs/inertia-laravel": "^1.3|^2.0" | ||
}, | ||
"require-dev": { | ||
"larastan/larastan": "^2.9", | ||
"laravel/pint": "^1.14", | ||
"orchestra/testbench": "^8.23||^9.1", | ||
"rector/rector": "^1.0.3" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"InertiaUI\\Modal\\": "src/" | ||
}, | ||
"files": [ | ||
"src/helpers.php" | ||
] | ||
}, | ||
"scripts": { | ||
"analyse": "vendor/bin/phpstan analyse --memory-limit=512M", | ||
"format": "vendor/bin/pint", | ||
"refactor": "vendor/bin/rector", | ||
"eslint-react": "cd react && npm run eslint", | ||
"eslint-vue": "cd vue && npm run eslint", | ||
"build-react": "cd react && npm run build", | ||
"build-vue": "cd vue && npm run build", | ||
"all": [ | ||
"@analyse", | ||
"@refactor", | ||
"@format", | ||
"@eslint-react", | ||
"@eslint-vue" | ||
], | ||
"build": [ | ||
"@all", | ||
"@build-react", | ||
"@build-vue" | ||
], | ||
"update-react": "cd react && npm upgrade", | ||
"update-vue": "cd vue && npm upgrade", | ||
"update-demo-app": "cd demo-app && composer update && npm upgrade", | ||
"update-all": [ | ||
"composer update", | ||
"@update-react", | ||
"@update-vue", | ||
"@update-demo-app" | ||
] | ||
}, | ||
"config": { | ||
"sort-packages": true, | ||
"allow-plugins": { | ||
"phpstan/extension-installer": true, | ||
"pestphp/pest-plugin": false | ||
} | ||
}, | ||
"extra": { | ||
"laravel": { | ||
"providers": [ | ||
"InertiaUI\\Modal\\ModalServiceProvider" | ||
] | ||
} | ||
}, | ||
"minimum-stability": "dev", | ||
"prefer-stable": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?php | ||
|
||
return [ | ||
/** | ||
* Bind the \InertiaUI\Modal\Redirector class to the 'redirect' singleton. | ||
*/ | ||
'bind_extended_redirector' => true, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
install-links=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.