There is a simple PHP independent library for displaying statistics. It has a frontend that builds diagrams on JS + CSS, which also requires Chart.js in dependencies. How to distribute this bundle entirely? Immediately I say that the backend without the frontend, though it will work, but it is hardly useful to someone. All tsimes precisely in the bundle.
So far only such options came to mind.
- All together - PHP + JS + СSS through Сomposer and some asset-manager.
- Split into two repositories and distribute the backend through Composer, and the frontend through NPM / Bower.
- Use one repository, but put the frontend through NPM / Bower, and the backend via Сomposer.
Maybe there are more ways? How do such projects usually spread?