build: initialize RetroHub with Laravel, Inertia, Vue, and Horizon
This commit is contained in:
@@ -0,0 +1,70 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Collection;
|
||||
use Spatie\LaravelData\Data;
|
||||
use Spatie\TypeScriptTransformer\Transformers\SpatieDataTransformer;
|
||||
|
||||
return [
|
||||
/*
|
||||
* The package will scan this directories looking for PHP classes that should
|
||||
* be transformed to TypeScript.
|
||||
*/
|
||||
'auto_import_directories' => [
|
||||
app_path('Features'),
|
||||
],
|
||||
|
||||
/*
|
||||
* A Laravel collections of class names that should not be transformed.
|
||||
*/
|
||||
'do_not_import' => [],
|
||||
|
||||
/*
|
||||
* The package will generate TypeScript types for these Laravel collections.
|
||||
*/
|
||||
'collections' => [
|
||||
Collection::class,
|
||||
Illuminate\Database\Eloquent\Collection::class,
|
||||
],
|
||||
|
||||
/*
|
||||
* The package will transform these PHP types to TypeScript.
|
||||
*/
|
||||
'transformers' => [
|
||||
Data::class => SpatieDataTransformer::class,
|
||||
],
|
||||
|
||||
/*
|
||||
* The output path for the generated TypeScript file.
|
||||
*/
|
||||
'output_file' => resource_path('js/generated/types.ts'),
|
||||
|
||||
/*
|
||||
* The output directory for generated files.
|
||||
*/
|
||||
'output_directory' => resource_path('js/generated'),
|
||||
|
||||
/*
|
||||
* The auto import path prefix for TypeScript files.
|
||||
*/
|
||||
'auto_import_prefix' => '@',
|
||||
|
||||
/*
|
||||
* Should the package generate TypeScript declaration files?
|
||||
*/
|
||||
'generate_declaration_file' => true,
|
||||
|
||||
/*
|
||||
* Should the package generate a types file?
|
||||
*/
|
||||
'generate_file' => true,
|
||||
|
||||
/*
|
||||
* The default export style for TypeScript types.
|
||||
*/
|
||||
'default_export' => 'type',
|
||||
|
||||
/*
|
||||
* Should the package generate types for all nested Data classes?
|
||||
*/
|
||||
'transform_to_type_script_recursively' => true,
|
||||
];
|
||||
Reference in New Issue
Block a user