Carbon-fields: Best way to use CF 2.0 as a plugin?

Created on 6 Jul 2017  路  5Comments  路  Source: htmlburger/carbon-fields

First off, big props to you guys for 2.0 release. Looks like there's a lot of cool stuff there. Carbon Fields is one of the most underrated frameworks for WordPress as far as I'm concerned. Thanks for the hard work.

Obviously since this release has breaking changes, it's not on .org yet. I downloaded the zip of the repo and used that to upgrade the plugin on a local dev environment. Immediately failed due to the missing autoloader files, so I ran composer install and that got me going... but also added 2k vendor files to my repo. Will all of these be included in the dist version of this plugin, or is there some kind of toned-down build that will be coming?

Thanks,
鈥斅燝alen

[type] question

Most helpful comment

@atanas-angelov-dev - Perfect. Thank you!

I'm curious about how this will be distributed too. Seems like the best way would be a second plugin on the repo since it has so many breaking changes. What's the plan?

All 5 comments

Hi @galengidman ,

First of all thank you for the kind words - we're really excited about 2.0 as well!

As for the 2k vendor files - you are seeing the development dependencies which are not required for production use (e.g. phpunit, mockery etc.). To skip them use this:
composer install --no-dev

This should create a vendor directory with only composer's autoloading and the small composer installer libraries.

I'm having similar issues as well. When the dist version well be updated in the WordPress plugins repo?
Thanks

@atanas-angelov-dev - Perfect. Thank you!

I'm curious about how this will be distributed too. Seems like the best way would be a second plugin on the repo since it has so many breaking changes. What's the plan?

@galengidman totally agreed! I'm maintaining 10+ WP websites and all of them rely on CF. more precisely - an old version of CF.

For the time being we will not be publishing 2.0 in the WordPress plugin repository. 1.x will remain as a maintenance release there while 2.0 will be installable through composer.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Roman52 picture Roman52  路  3Comments

AlexBa picture AlexBa  路  3Comments

bjoernhasse picture bjoernhasse  路  3Comments

halvardos picture halvardos  路  3Comments

ArekZw picture ArekZw  路  4Comments