vigetlabs / wordpress-site-starter

2 stars 0 forks source link

[Polish] Un-nest project folder #94

Closed nathan-schmidt-viget closed 3 weeks ago

nathan-schmidt-viget commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

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

bd-viget commented 3 weeks ago

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

nathan-schmidt-viget commented 3 weeks ago

Yep!