Skip to content
This repository has been archived by the owner on Nov 16, 2024. It is now read-only.

Create custom Composer installer for local development #30

Open
jmichaelward opened this issue Mar 30, 2020 · 0 comments
Open

Create custom Composer installer for local development #30

jmichaelward opened this issue Mar 30, 2020 · 0 comments

Comments

@jmichaelward
Copy link
Owner

In the milestone/0.2.0, I've temporarily added a post-install-cmd to set configuration on the development instance of PHPCS so my IDE can locate my style rules for the plugin. This functionality is not needed when not doing development and, in fact, Composer will display an error when composer install --no-dev is run, which will be required to properly build a production release of this plugin.

Instead, we'll need to create a custom installer that checks whether the --dev flag was run before setting the installed paths for the local PHPCS. See: https://getcomposer.org/doc/articles/scripts.md, specifically the section that talks about creating the installer in PHP, and the COMPOSER_DEV_MODE value.

This is not a priority for the initial milestone release, but it's something that should be addressed in the future so others and I can continue to develop this plugin following project-specific coding standards instead of global ones.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant