I'm creating a wordpress package which uses acf (Advanced Custom Fields) to get and set the data.
Additional data about the usage:
First in your project's config.php file you set the settings for the composer package. Then in wordpress you can call the block "photoplayer". You can give the block some data and the data is accessible in the composer package.
But now comes my problem. The frontend needs to be in vuejs since this is a composer package and vue is a peerdependency
vue isn't accessible because it's in the vendor
folder. A hacky way which you don't want to do ever is to install the npm packages inside the package in the vendor
folder (this will cause more problems because vue uses singleton). So I choose to make a vue package for this with npm.
Now I've just created the frontend inside a npm package, but how will i get the composer packages data to the npm package in the frontend?
I've thought of an API, but I think that that solution is to overcomplex for such a problem.