Repository navigation
Requires shipwithian/shipkit-core 3.0.
- Short frontend files: pages stay at or under 200 lines and other frontend files at or under 400, checked by
shipkit-core'sFrontendFileLengthTest, so a page composes partials instead of growing into one large file.
shipwithian/shipkit-core 3.0.0
A major release because a new check can fail a project that passed 2.x. UPGRADE.md has the fix.
- Checks:
FrontendFileLengthTestfails when a page inresources/js/pagesis over 200 lines or any other frontend file is over 400, so pages stay a list of partials instead of growing into thousand-line files. The vendoredcomponents/uiprimitives are exempt, andshipkit.architecture.long_frontend_filesrecords deliberate exceptions with their reasons. - Guidance: the
jsrule says how to split a file before it reaches the limit. - Internals:
ProjectLayout::frontendFiles()lists the project's own TypeScript sources, shared by both frontend checks.
Upgrading
Existing projects update the package with composer require shipwithian/shipkit-core:^3.0 and follow the 3.0 upgrade notes. Template changes are not applied to existing projects: compare the release tags and copy what you want.