Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Polish] Un-nest project folder #94

Closed
nathan-schmidt-viget opened this issue May 29, 2024 · 4 comments
Closed

[Polish] Un-nest project folder #94

nathan-schmidt-viget opened this issue May 29, 2024 · 4 comments

Comments

@nathan-schmidt-viget
Copy link
Contributor

nathan-schmidt-viget commented May 29, 2024

About

When starting a new project using composer it creates the WP starter folder inside of the current folder.
So current install folders look like test > wordpress-site-starter > [site files].
Ideally, it would not have wordpress-site-starter or if that is not possible it would rename wordpress-site-starter to the project name.

Current

Image

Ideal Structure.

Image

@bd-viget
Copy link
Contributor

This may just require an update to the README, you can install Site Starter into whatever your current directory is (as long as it's empty) using:

$ composer create-project viget/wordpress-site-starter .

(note the . at the end)

Or you can specify the folder to install it using:

$ composer create-project viget/wordpress-site-starter /path/to/my-new-project

I'm not sure if composer will create the directory if it doesn't exist, may need to test that. Otherwise you could do:

$ mkdir path/to/new-project && composer create-project viget/wordpress-site-starter path/to/new-project

@nathan-schmidt-viget
Copy link
Contributor Author

@bd-viget yep we just need to add the . at the end!

@bd-viget
Copy link
Contributor

This is OK to mark as done/close, right @nathan-schmidt-viget ?

@nathan-schmidt-viget
Copy link
Contributor Author

Yep!

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

No branches or pull requests

2 participants