Actions
Task #101783
closedCheck for stray build sources in CI
Status:
Closed
Priority:
Should have
Assignee:
Category:
Backend JavaScript
Target version:
Start date:
2023-08-29
Due date:
% Done:
100%
Estimated time:
(Total: 0.00 h)
TYPO3 Version:
12
PHP Version:
Tags:
Complexity:
Sprint Focus:
Description
We currently have a mixture of some .js files still authored without TypeScript and some .js files being stray build outputs, where no usage or source file is present.
Ideally we'd check via CI whether all .js files in our tree are "valid", that means can be recreated as is.
Command used to find cases:
find typo3 -name '*.js' -exec rm '{}' + && (cd Build && npm run build)&>/dev/null && LC_ALL=C git status | grep deleted | grep -v /Fixtures/
Output:
deleted: typo3/sysext/backend/Resources/Public/Html/Close.js deleted: typo3/sysext/backend/Resources/Public/JavaScript/Helper.js deleted: typo3/sysext/core/Resources/Public/JavaScript/Contrib/sortablejs.js deleted: typo3/sysext/core/Resources/Public/JavaScript/ReferrerRefresh.js deleted: typo3/sysext/dashboard/Resources/Public/JavaScript/Contrib/muuri.js deleted: typo3/sysext/form/Resources/Public/JavaScript/Frontend/DatePicker.js deleted: typo3/sysext/frontend/Resources/Public/JavaScript/default_frontend.js deleted: typo3/sysext/install/Resources/Public/JavaScript/module/upgrade/typo3conf-migrations-check.js deleted: typo3/sysext/reactions/Resources/Public/JavaScript/management-overview.js deleted: typo3/sysext/scheduler/Resources/Public/JavaScript/editable-group-title.js deleted: typo3/sysext/t3editor/Resources/Public/JavaScript/Contrib/@lezer/common.js deleted: typo3/sysext/t3editor/Resources/Public/JavaScript/autocomplete/completion-result.js deleted: typo3/sysext/t3editor/Resources/Public/JavaScript/autocomplete/ts-code-completion.js deleted: typo3/sysext/t3editor/Resources/Public/JavaScript/autocomplete/ts-parser.js deleted: typo3/sysext/t3editor/Resources/Public/JavaScript/autocomplete/ts-ref.js deleted: typo3/sysext/t3editor/Resources/Public/JavaScript/stream-parser/typoscript.js
Actions