Skip to content

Bedrock: Create project with --prefer-source --remove-vcs#587

Open
tangrufus wants to merge 1 commit intoroots:docsfrom
tangrufus:patch-1
Open

Bedrock: Create project with --prefer-source --remove-vcs#587
tangrufus wants to merge 1 commit intoroots:docsfrom
tangrufus:patch-1

Conversation

@tangrufus
Copy link
Copy Markdown
Member

@tangrufus tangrufus commented May 9, 2026

Add --prefer-source --remove-vcs flags so that users will get git export-ignore files.

$ composer create-project --no-install --prefer-source --remove-vcs roots/bedrock with-prefer-source

$ composer create-project --no-install roots/bedrock without-prefer-source

$ diff -qr with-prefer-source without-prefer-source
Only in with-prefer-source: .devcontainer
Only in with-prefer-source: .editorconfig
Only in with-prefer-source: .gitattributes
Only in with-prefer-source: .github

The --prefer-source flag significantly slows down the create-project command because it installs dependencies from source as well. Alternatively, we could:

composer create-project --no-install --prefer-source --remove-vcs roots/bedrock
cd bedrock
composer install

@tangrufus
Copy link
Copy Markdown
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant