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

Add composer file #664

Closed
wants to merge 1 commit into from
Closed

Conversation

strarsis
Copy link

@strarsis strarsis commented Jan 24, 2018

@johngodley: This PR adds a composer.json file and adjust gitignore (vendor/).

Before merging, please verify and/or adjust the author email address
(wasn't able to find one) and whether license is GPL3-only or GPL-3.0+.

Closes #623.

This also allows to install beta versions of redirection plugin from GitHub using composer.

Adjust gitignore (vendor/).
This was referenced Jan 24, 2018
@strarsis
Copy link
Author

strarsis commented Jan 24, 2018

Notice: Currently I am using this addition to composer.json for
installing without composer.json in plugin repository:

  "repositories": [
    {
      "type": "package",
      "package": {
        "name": "johngodley/redirection",
        "type": "wordpress-plugin",
        "version": "3.1",
        "source": {
          "url": "https://github.com/johngodley/redirection",
          "type": "git",
          "reference": "master"
        }
      }
    }
  ],
  "require": {
    "johngodley/redirection": "*"
  }

@johngodley
Copy link
Owner

Thanks!

I'm not that familiar with composer. Does this live in the zipped plugin on wordpress.org, or just here on github? If it's just here on Github it probably means it will pull down a lot of the build files that don't need to be on a live site - is there a way to ignore those?

@strarsis
Copy link
Author

@johngodley: Currently it seems that all files are pulled by composer.
Similar/related composer issue: composer/composer#1750

@vinkla
Copy link

vinkla commented Nov 27, 2019

If it's just here on Github it probably means it will pull down a lot of the build files that don't need to be on a live site - is there a way to ignore those?

This is possible with the .gitattributes file. Basically a list of files to ignore.


Side note; since this plugin is published to wordpress.org users of Composer can install it with WPackagist.

@strarsis
Copy link
Author

strarsis commented Nov 27, 2019

@vinkla: Right, but in this particular case I wanted to install it directly from GitHub master because of a fix I wanted to apply without waiting for the next release to the WordPress plugin directory.

@johngodley johngodley closed this Jan 13, 2024
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

Successfully merging this pull request may close these issues.

Add composer.json
3 participants