Skip to content
This repository was archived by the owner on Oct 27, 2026. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
17 changes: 8 additions & 9 deletions .github/workflows/tasks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,22 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [ '8.1', '8.2', '8.3' ]
typo3: [ '11', '12', '13' ]
exclude:
- php: '8.1'
typo3: '13'
php: ['8.2', '8.3', '8.5']
typo3: ['13']
steps:
- name: Setup PHP with PECL extension
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
- uses: actions/checkout@v2
- uses: actions/cache@v2
- uses: actions/checkout@v6
- uses: actions/cache@v4
with:
path: ~/.composer/cache/files
key: ${{ runner.os }}-${{ matrix.php }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-${{ matrix.php }}-composer-
- run: composer require typo3/minimal="^${{ matrix.typo3 }}" -W --dev
- run: composer require "enshrined/svg-sanitize:~1.0.0" --dev --no-update --sort-packages --no-interaction
- run: composer require typo3/minimal="^${{ matrix.typo3 }}" --sort-packages --no-scripts -W --dev
- run: composer install --no-interaction --no-progress
- run: ./vendor/bin/grumphp run --ansi
- name: Run all static checks
run: ./vendor/bin/grumphp run --no-ansi
6 changes: 3 additions & 3 deletions Classes/ViteUtility.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ private function productionVite(array $conf): array
$path = Environment::getPublicPath() . '/assets/manifest.json';
$content = file_get_contents($path);
if (!$content) {
throw new Exception(sprintf('vite manifest is necessary, tried to find it here: %s', $path));
throw new Exception(sprintf('vite manifest is necessary, tried to find it here: %s', $path), 1791540001);
}

$data = json_decode(json: $content, associative: true, flags: JSON_THROW_ON_ERROR);
Expand All @@ -42,15 +42,15 @@ private function productionVite(array $conf): array
foreach ($files as $fileName) {
$fileName = ltrim($fileName, '/');
if (!isset($data[$fileName])) {
throw new Exception(sprintf('configured %s %s not found in manifest.json', $type, $fileName));
throw new Exception(sprintf('configured %s %s not found in manifest.json', $type, $fileName), 1791540002);
}

$fileName = '/' . $data[$fileName]['file'];
$lines[] = match ($type) {
'js.' => sprintf('<script defer type="module" src="%s"></script>', $fileName),
'css.' => sprintf('<link rel="stylesheet" href="%s" media="all">', $fileName),
'fontPreLoad.' => sprintf('<link rel="preload" href="%s" as="font" crossorigin />', $fileName),
default => throw new Exception(sprintf('type not defined %s', $type))
default => throw new Exception(sprintf('type not defined %s', $type), 1791540003)
};
}
}
Expand Down
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
],
"type": "typo3-cms-extension",
"require": {
"php": "~8.1.0 || ~8.2.0 || ~8.3.0",
"php": "~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.5.0",
"helhum/dotenv-connector": "^3.1",
"typo3/cms-core": "^11.5 || ^12.0 || ^13.0"
"typo3/cms-core": "^13.0"
},
"require-dev": {
"infection/infection": "^0.27.11",
"pluswerk/grumphp-config": "^6 || ^7.0.3",
"saschaegerer/phpstan-typo3": "^1.10.1",
"ssch/typo3-rector": "^2.5.1",
"infection/infection": "^0.27.11 || ^0.29.14",
"pluswerk/grumphp-config": "^6 || ^7.0.3 || ^10.2",
"saschaegerer/phpstan-typo3": "^1.10.1 || ^2.1.1",
"ssch/typo3-rector": "^2.5.1 || ^3.1",
"typo3/testing-framework": "^7 || ^8.0.9"
},
"autoload": {
Expand Down
Loading