wesleytodd / YeoPress

A Yeoman generator for WordPress
Other
1.08k stars 161 forks source link

Plugin subgenerator installs target in child folder #169

Open tyler-morrison opened 9 years ago

tyler-morrison commented 9 years ago

Whenever you run the WordPress plugin subgenerator, it installs the plugin within a subfolder that cannot be automatically recognized by the WP install.

If you run the following process...

cd ~/my-wordpress-project-folder
yo wordpress:plugin

? Plugins to install (ex. wordpress-importer, wp-custom-admin-bar) akismet
     info ... Fetching http://downloads.wordpress.org/plugin/akismet.zip ...
     info This might take a few moments
.✔ Done in content/plugins/akismet
✔ Plugins installed.

...it installs the plugin within "content/plugins/akistmet/akistmet"

This could be a result of using a custom dir.

wesleytodd commented 9 years ago

A PR to fix this would be gladly accepted if anyone is interested :)

nocean commented 8 years ago

Tried lweigand's fix, works perfectly.

ghost commented 8 years ago

Plugin issue ( issue #175 and #169 )has been resolved. It is working fine. Tested and Verfied

erwstout commented 7 years ago

Just pinging this issue again, installing plugins still place them in /plugins/{plugin-name}/{plugin-name}

I could possibly take a look to do a PR but not sure if its in my wheelhouse. Any other thoughts or work arounds?

EDIT: Just saw this PR https://github.com/wesleytodd/YeoPress/pull/184 is it ever going to get merged?