WebDevStudios / CPT_Core

This is a helper class for creating custom post types.. I'm sure it doesn't cover everything. PRs welcome.
78 stars 13 forks source link

Add support for custom installation path via Composer #9

Closed grantpalin closed 9 years ago

grantpalin commented 9 years ago

While this code can be installed via the Composer as source, the current composer.json doesn't allow for custom installation paths. I've been able to make this happen with CMB2 which does have the appropriate composer.json configuration.

Since I'd like to use this source as part of a plugin, it would be convenient t be able to consume it through Composer.

CamdenSegal commented 9 years ago

I've updated the composer.json file to support installing CPT_Core as a WordPress plugin 9c08de22a4c06b29dbb719707913f28d8a3b1710.

In addition as a package consumer you are able to manually specify where each package is installed using composer/installers installer-paths https://getcomposer.org/doc/faqs/how-do-i-install-a-package-to-a-custom-path-for-my-framework.md

grantpalin commented 9 years ago

Thanks for the change. That is much what I was thinking of, to be able to manage dependencies as part of a plugin. Given the change, I've been able to direct Composer to put the helper library in a includes folder.