wecodemore / wpstarter

Easily bootstrap whole site Composer packages for WordPress.
https://wecodemore.github.io/wpstarter/
MIT License
244 stars 34 forks source link

.gitignore possible to place it in another path, via extra settings? #66

Closed elvismdev closed 5 years ago

elvismdev commented 7 years ago

Wonder if this is possible somehow at this moment? We'd like to place the .gitignore created by WP Starter, in another subfolder instead of the root level from where composer is run, e.g. inside <root>/public/

Is this something currently achievable trough extra settings in the composer.json file?

In case is not, could be implemented for a future WP Starter release? Thinking about:

{
    "extra" : {
        "wpstarter" : {
            "gitignore-path" : "./public",
            "prevent-overwrite" : [
                ".gitignore"
            ],
        }
    }
} 
gmazzap commented 7 years ago

Hi @elvismdev and thanks for your interest.

At the moment that's not possible. But more flexibility on file creation is already planned in version 3 which is in the works, but no ETA.

lkraav commented 5 years ago

Wonder if this is possible somehow at this moment? We'd like to place the .gitignore created by WP Starter, in another subfolder instead of the root level from where composer is run, e.g. inside /public/

@elvismdev what's the use case for this?

gmazzap commented 5 years ago

For v2 this is not gonna change.

For v3 I've reconsidered the creation of a gitignore step at all, my experience in 3 years usage of WP Starter has been that manually created .gitignore has worked best.

With custom steps in v3 people can create one if they want. So this issue make no much sense to be opened.

Thanks anyone involved.