statamic / cms

The core Laravel CMS Composer package
https://statamic.com
Other
4.12k stars 540 forks source link

[5.x] Add `--clear` option for `starter-kit:export` #11079

Closed jesseleite closed 3 weeks ago

jesseleite commented 3 weeks ago

This PR adds --clear option for starter-kit:export command.

We talked about whether or not to make this the default behaviour, but it gets complicated for various reasons...

We could find ways to make this behaviour more magical, but we opted to go with a simple opt-in --clear option.

When explicitly exporting with this option, the starter kit dev knows that it's going to clear everything out first, and then they can discard whatever overzealously cleared git changes they don't want before commiting 👍

It's more --clear this way 😎