Skip to content

Commit b2d7091

Browse files
committed
add default cleanup_exclude_files to internal config
1 parent df78d7b commit b2d7091

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

config/nativephp-internal.php

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,37 @@
2929
* The URL to the NativePHP API.
3030
*/
3131
'api_url' => env('NATIVEPHP_API_URL', 'http://localhost:4000/api/'),
32+
33+
/**
34+
* The default list of files to exclude from the build
35+
*/
36+
'cleanup_exclude_files' => [
37+
// .git and dev directories
38+
'.git',
39+
'dist',
40+
'docker',
41+
'packages',
42+
'**/.github',
43+
44+
// Potentially containing sensitive info
45+
'database/*.sqlite',
46+
'database/*.sqlite-shm',
47+
'database/*.sqlite-wal',
48+
49+
'storage/framework/sessions/*',
50+
'storage/framework/testing/*',
51+
'storage/framework/cache/*',
52+
'storage/framework/views/*',
53+
'storage/logs/*',
54+
55+
// Only needed for local testing
56+
'vendor/nativephp/electron/resources',
57+
'vendor/nativephp/electron/vendor',
58+
'vendor/nativephp/electron/bin',
59+
'vendor/nativephp/laravel/vendor',
60+
'vendor/nativephp/php-bin',
61+
62+
// Also deleted in PrunesVendorDirectory after fresh composer install
63+
'vendor/bin'
64+
]
3265
];

0 commit comments

Comments
 (0)