Skip to content

Commit

Permalink
feat: upgrade TypeScript to 5.0 (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
7nohe authored Mar 21, 2023
1 parent e4c27ba commit 2dc4b2f
Show file tree
Hide file tree
Showing 166 changed files with 921 additions and 1,029 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
- Generate route.d.ts file for ziggy
- Provide useful types for Laravel (e.g. pagination, etc.)

## Supported Versions
This library supports the following versions:

- Laravel 9.x and 10.x
- TypeScript 5.0 and above

## Installation

```bash
Expand Down Expand Up @@ -216,7 +222,7 @@ Options:
### Setup example project

```bash
$ cd examples/laravel9-app
$ cd examples/laravel10-app
$ cp .env.example .env
$ docker run --rm \
-u "$(id -u):$(id -g)" \
Expand Down
2 changes: 1 addition & 1 deletion debug.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env sh

pnpm run build
cd ./examples/laravel9-app
cd ./examples/laravel10-app
./vendor/bin/sail restart laravel.test
./vendor/bin/sail bash -c "rm -rf /var/www/html/node_modules/@7nohe/laravel-typegen"
./vendor/bin/sail bash -c "cp -R /laravel-typegen/dist /var/www/html/node_modules/@7nohe/laravel-typegen"
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ APP_NAME=Laravel
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_URL=http://localhost
APP_URL=http://localhost:8080
APP_PORT=8080

LOG_CHANNEL=stack
LOG_DEPRECATIONS_CHANNEL=null
Expand All @@ -11,7 +12,7 @@ LOG_LEVEL=debug
DB_CONNECTION=mysql
DB_HOST=mysql
DB_PORT=3306
DB_DATABASE=laravel9_app
DB_DATABASE=laravel_app
DB_USERNAME=root
DB_PASSWORD=

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ class AuthServiceProvider extends ServiceProvider
*/
public function boot()
{
$this->registerPolicies();

//
}
}
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"doctrine/dbal": "^3.5",
"guzzlehttp/guzzle": "^7.2",
"inertiajs/inertia-laravel": "^0.6.3",
"laravel/framework": "^9.19",
"laravel/sanctum": "^2.8",
"laravel/framework": "^10.0",
"laravel/sanctum": "^3.2",
"laravel/tinker": "^2.7",
"tightenco/ziggy": "^1.0"
},
Expand All @@ -21,9 +21,9 @@
"laravel/pint": "^1.0",
"laravel/sail": "^1.0.1",
"mockery/mockery": "^1.4.4",
"nunomaduro/collision": "^6.1",
"phpunit/phpunit": "^9.5.10",
"spatie/laravel-ignition": "^1.0"
"nunomaduro/collision": "^7.0",
"phpunit/phpunit": "^10.0",
"spatie/laravel-ignition": "^2.0"
},
"autoload": {
"psr-4": {
Expand Down Expand Up @@ -65,6 +65,6 @@
"pestphp/pest-plugin": true
}
},
"minimum-stability": "dev",
"minimum-stability": "stable",
"prefer-stable": true
}
Loading

0 comments on commit 2dc4b2f

Please sign in to comment.