Skip to content

Set up a Composer/Packagist repo for the wxwidgets autocomplete file #131

Description

@halfer

I mentioned in #129 that it would be useful to add a Composer dependency for the wxPHP code completion file. I expect it'd use the dev-only approach, so that it is not added to live envs. It should prove useful for users who are lucky enough to have the extension available in their distro's repository, and so they don't need to clone the wxphp repo or run the generation script.

This feature might have the small additional benefit of getting more users to be aware of wxPHP, since it will be visible on Packagist.

Do you foresee any issues with this? It'd just be a copy of the latest generated file, pegged to the version number of wxPHP (perhaps with an additional version number to allow for improvements in the generated output).

I'd need to learn how to set up the composer.json file suitable for Packagist, but it can't be too hard...

Activity

  1. jgmdev commented on Dec 24, 2015

    @jgmdev
    Member

    Maybe we can add a dedicated repo for that here on github, wxphp/autocomplete or something like that.
    The issue from my limited knowledge is how to create a composer.json file without the autoloading stuff, since the purpose of the file would be to provide code completion only. In any case let me know what you think about the wxphp/autocomplete repo, if you have a better idea for the repo name, in order to create it and give you push access.

    Here is a composer sample of another project https://github.com/peg-org/peg-src/blob/master/composer.json with the corresponding packagist page https://packagist.org/packages/peg-org/peg-src but we don't need the autoloading stuff. Here is a merge pull request that seems to implement some flag to skip autoloading composer/composer#3453 but I'm not sure if it is possible inside the composer.json file.

  2. halfer commented on Jan 3, 2016

    @halfer
    ContributorAuthor

    Thanks for your response. I've been up to my eyeballs on AUI issues, but I hope to come back to this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions