feat(create-frontend): add basercms5 project type#894
Open
yusasa16 wants to merge 4 commits into
Open
Conversation
Place scaffold files under htdocs/webroot/, update kamado output to htdocs/webroot, and generate empty .htaccess files at htdocs/ and htdocs/webroot/ for CakePHP 5 setup.
Store static files unique to each project type under __type/<type>/. Scaffolded files that need no transformation are placed here instead of being generated inline in create-frontend plopfile logic.
…ype directory Pre-load files under __type/<type>/ at setup time and copy them to the destination as static add actions, removing inline file generation from plopfile logic.
htdocs/.htaccess redirects all requests to webroot/ for CakePHP 5. htdocs/webroot/.htaccess routes non-existent paths to index.php as front controller.
YusukeHirao
approved these changes
May 11, 2026
dz-furukawa
approved these changes
May 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
関連イシュー
closes #802
概要
@d-zero/create-frontendの--typeオプションにbasercms5を追加basercms5選択時、ファイルをhtdocs/webroot/以下に配置(CakePHP 5 の webroot 構造に対応)kamado.config.tsのoutputをhtdocs/webrootに変更htdocs/.htaccess・htdocs/webroot/.htaccessを生成(CakePHP のリクエスト転送・フロントコントローラー用)設計
型別の静的ファイルを
@d-zero/scaffoldの__type/<type>/ディレクトリで管理する仕組みを新設。__type/<type>/plopfile.js今後タイプ固有のファイルを追加する際は
scaffold/__type/<type>/にファイルを置くだけで対応可能。変更ファイル
packages/@d-zero/scaffold/__type/basercms5/htdocs/.htaccess— 新規packages/@d-zero/scaffold/__type/basercms5/htdocs/webroot/.htaccess— 新規packages/@d-zero/create-frontend/plopfile.js— basercms5 対応・__type/読み込み処理追加packages/@d-zero/create-frontend/libraries.js— basercms5 用ライブラリパス追加packages/@d-zero/create-frontend/index.spec.js— basercms5 テスト追加packages/@d-zero/create-frontend/__snapshots__/index.spec.js.snap— スナップショット更新