generated from spatie/package-skeleton-laravel
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathtypescriptable.php
114 lines (111 loc) · 2.79 KB
/
typescriptable.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<?php
return [
/**
* Engine used for parsing.
*/
'engine' => [
/**
* `artisan` will use the `php artisan model:show` command to parse the models.
* `parser` will use internal engine to parse the models.
*/
'eloquent' => 'artisan', // artisan / parser
],
/**
* The path to the output directory for all the types.
*/
'output_path' => resource_path('js'),
/**
* Options for the Eloquent models.
*/
'eloquent' => [
'filename' => 'types-eloquent.d.ts',
/**
* The path to the models directory.
*/
'directory' => app_path('Models'),
/**
* The path to print PHP classes if you want to convert Models to simple classes.
* If null will not print PHP classes.
*
* @example `app_path('Raw')`
*/
'php_path' => null,
/**
* Models to skip.
*/
'skip' => [
// 'App\\Models\\User',
],
/**
* Whether to add the LaravelPaginate type (with API type and view type).
*/
'paginate' => true,
],
/**
* Options for the Spatie settings.
*/
'settings' => [
'filename' => 'types-settings.d.ts',
/**
* The path to the settings directory.
*/
'directory' => app_path('Settings'),
/**
* Extended class for the settings.
*/
'extends' => 'Spatie\LaravelSettings\Settings',
/**
* Settings to skip.
*/
'skip' => [
// 'App\\Settings\\Home',
],
],
/**
* Options for the routes.
*/
'routes' => [
/**
* The path to the routes types.
*/
'types' => 'types-routes.d.ts',
/**
* The path to the routes list.
*/
'list' => 'routes.ts',
/**
* Whether to print the list of routes.
*/
'print_list' => true,
/**
* Add routes to `window` from list, can be find with `window.Routes`.
*/
'add_to_window' => true,
/**
* Use routes `path` instead of `name` for the type name.
*/
'use_path' => false,
/**
* Routes to skip.
*/
'skip' => [
'name' => [
'debugbar.*',
'horizon.*',
'telescope.*',
'nova.*',
'lighthouse.*',
'filament.*',
'log-viewer.*',
'two-factor.*',
],
'path' => [
'_ignition/*',
'__clockwork/*',
'clockwork/*',
'two-factor-challenge',
'livewire',
],
],
],
];