Skip to content
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

Generate typescript types #154

Draft
wants to merge 50 commits into
base: 0.8
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
5ad0bee
remove phpstorm.meta.php
theimerj May 15, 2024
2851c21
move service providers registration to testbench.yaml
theimerj May 15, 2024
10f1b28
add .phpstorm.meta.php to gitignore
theimerj May 15, 2024
1607384
add test enum
theimerj May 16, 2024
36e4687
add test typescript transformer config
theimerj May 16, 2024
fac9725
add generate typescript types test
theimerj May 16, 2024
d303f36
add TypeScript php attributes
theimerj May 16, 2024
cae02af
document facade
theimerj May 16, 2024
51e0409
style fix
theimerj May 16, 2024
f68fa6e
add generate typescript types command
theimerj May 16, 2024
c3fab55
add getPackageRoot method
theimerj May 16, 2024
ab64f10
move hashids logic to its sp
theimerj May 16, 2024
275f6f3
bind LunarApi class with package root
theimerj May 16, 2024
50a7b49
add lunar api typescript transformer SP
theimerj May 16, 2024
b97f93f
update namespace
theimerj May 16, 2024
ab3e9e2
add laravel-typescript-transformer package, update composer scripts
theimerj May 16, 2024
7849f43
update packages
theimerj May 16, 2024
a57d923
register ide-helper only for local env
theimerj May 16, 2024
c69c349
update gitignore
theimerj May 16, 2024
2281c80
do not discover laravel-ide-helper
theimerj May 16, 2024
c3cd83d
add return type
theimerj May 16, 2024
c2537a1
add custom json api eloquent fields
theimerj May 16, 2024
40d859e
add custom json api relations
theimerj May 16, 2024
6575cdc
use custom id field
theimerj May 16, 2024
875670a
use custom fields
theimerj May 16, 2024
204bb8d
add record typescript type
theimerj May 16, 2024
dd962a5
add relation type
theimerj May 16, 2024
5e7c0dd
add schema collector
theimerj May 16, 2024
0352456
add schema transformer
theimerj May 16, 2024
f759faf
add collector and transformer to config
theimerj May 16, 2024
c889f6e
add private property and method
theimerj May 16, 2024
ffedb14
use own schema contract
theimerj May 16, 2024
277a618
update packages
theimerj May 16, 2024
430c7e7
remove ide-helper
theimerj Jun 24, 2024
2ff8426
Merge branch '0.8' into feature/generate-typescript-types
theimerj Jun 24, 2024
3798b16
Fix styling
theimerj Jun 24, 2024
6363d20
remove ide-helper
theimerj Jun 24, 2024
3864dbe
Merge branch 'feature/generate-typescript-types' of github.com:dystcz…
theimerj Jun 24, 2024
9d393c7
remove hashids logic
theimerj Jun 24, 2024
852e340
move relations to fields
theimerj Jun 28, 2024
9d56d0d
update namespace
theimerj Jun 28, 2024
d827383
update namespaces
theimerj Jun 28, 2024
9e07944
add schema field collector
theimerj Jun 28, 2024
b15c686
add schema field transformer
theimerj Jun 28, 2024
96a03e6
add schema transformer
theimerj Jun 28, 2024
a3806b1
add schema field type processor
theimerj Jun 28, 2024
4b88ab2
update sp
theimerj Jun 28, 2024
8129249
wip
theimerj Jun 28, 2024
dff3cc6
add typescript attribute
theimerj Jul 2, 2024
11f8fc4
wip
theimerj Jul 2, 2024
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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ Session.vim
phpstan.neon
ray.php
_ide_helper.php
_ide_helper_models.php
.phpstorm.meta.php
.phpactor.json
.env
.env.testing
.lando.yml
/.vscode/launch.json
2,909 changes: 0 additions & 2,909 deletions .phpstorm.meta.php

This file was deleted.

7 changes: 4 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@
"laravel-json-api/hashids": "^2.0",
"laravel-json-api/laravel": "^3.4",
"laravel-json-api/non-eloquent": "^3.0",
"spatie/laravel-typescript-transformer": "^2.4",
"lunarphp/lunar": "^0.8"
},
"require-dev": {
"barryvdh/laravel-ide-helper": "^3.0",
"driftingly/rector-laravel": "^0.17.0",
"laravel-json-api/testing": "^2.1",
"laravel/pint": "^1.7",
Expand All @@ -54,7 +54,7 @@
},
"scripts": {
"post-update-cmd": [
"vendor/bin/testbench ide-helper:generate"
"vendor/bin/testbench clear-compiled"
],
"post-autoload-dump": "@composer run prepare",
"artisan": "vendor/bin/testbench",
Expand All @@ -78,7 +78,8 @@
"providers": [
"Dystcz\\LunarApi\\LunarApiServiceProvider",
"Dystcz\\LunarApi\\JsonApiServiceProvider",
"Dystcz\\LunarApi\\LunarApiHashidsServiceProvider"
"Dystcz\\LunarApi\\LunarApiHashidsServiceProvider",
"Dystcz\\LunarApi\\LunarApiTypeScriptTransformerServiceProvider"
],
"aliases": {
"LunarApi": "Dystcz\\LunarApi\\Facade\\LunarApi"
Expand Down
Loading
Loading