michaelbourne / gravity-forms-zoom-webinar-registration

Register attendees in your Zoom Webinar through a Gravity Form
GNU General Public License v3.0
25 stars 12 forks source link

Set type in Composer configuration to install in proper location #11

Open claytoncollie opened 2 weeks ago

claytoncollie commented 2 weeks ago

The compose config could use a "type": "wordpress-plugin" so that when version controlling the wp-content directory and using composer to control the plugin version, this package gets installed in the wp-content/plugins directory or wherever it is told to.

https://easyengine.io/tutorials/composer-wordpress/add-composer-to-own-themes-plugins/

This is what I have in my composer.json to tell each package where to go.

"extra": {
    "installer-paths": {
      "mu-plugins/{$name}": [
        "type:wordpress-muplugin"
      ],
      "plugins/{$name}": [
        "type:wordpress-plugin"
      ]
    }
  },
claytoncollie commented 2 weeks ago

If anybody comes across this, I was able to solve it by updating the repositories array to include this information.

{
      "type": "package",
      "package": {
        "name": "michaelbourne/gravity-forms-zoom-webinar-registration",
        "version": "1.2.0",
        "type": "wordpress-plugin",
        "source": {
          "url": "https://github.com/michaelbourne/gravity-forms-zoom-webinar-registration.git",
          "type": "git",
          "reference": "master"
        }
      }
    }