mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-04 21:14:02 +00:00
Re-add file creation logic
This commit is contained in:
parent
316a3b45fe
commit
70f939715f
1 changed files with 9 additions and 0 deletions
|
|
@ -3,6 +3,7 @@
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
use Illuminate\Foundation\Vite;
|
use Illuminate\Foundation\Vite;
|
||||||
|
use Illuminate\Support\Facades\File;
|
||||||
use Stancl\Tenancy\Bootstrappers\FilesystemTenancyBootstrapper;
|
use Stancl\Tenancy\Bootstrappers\FilesystemTenancyBootstrapper;
|
||||||
use Stancl\Tenancy\Features\ViteBundler;
|
use Stancl\Tenancy\Features\ViteBundler;
|
||||||
use Stancl\Tenancy\Tests\Etc\Tenant;
|
use Stancl\Tenancy\Tests\Etc\Tenant;
|
||||||
|
|
@ -14,6 +15,14 @@ beforeEach(function () {
|
||||||
'tenancy.filesystem.asset_helper_override' => true,
|
'tenancy.filesystem.asset_helper_override' => true,
|
||||||
'tenancy.bootstrappers' => [FilesystemTenancyBootstrapper::class],
|
'tenancy.bootstrappers' => [FilesystemTenancyBootstrapper::class],
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
File::ensureDirectoryExists(dirname($manifestPath = public_path('build/manifest.json')));
|
||||||
|
File::put($manifestPath, json_encode([
|
||||||
|
'foo' => [
|
||||||
|
'file' => 'assets/foo-AbC123.js',
|
||||||
|
'src' => 'js/foo.js',
|
||||||
|
],
|
||||||
|
]));
|
||||||
});
|
});
|
||||||
|
|
||||||
test('vite bundler ensures vite assets use global_asset when asset_helper_override is enabled', function () {
|
test('vite bundler ensures vite assets use global_asset when asset_helper_override is enabled', function () {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue