cozy / create-cozy-app

A CLI to bootstrap a "zero-configuration" application for the Cozy V3 platform
https://docs.cozy.io/en/tutorials/app/
MIT License
16 stars 15 forks source link

fix: Remove cozy-client-js copy into public path #1492

Closed cballevre closed 1 year ago

cballevre commented 1 year ago

We copy cozy-client-js to the public folder but not all projects have this dependency anymore. I decided to strip this part of the config because it was blocking the building of cozy-notes public assets. I tried on cozy-drive with watch and build, it seems to have no impact. But if necessary, I propose to bring this specific config back to cozy-drive.

Crash-- commented 1 year ago

We had an issue on that: https://github.com/cozy/create-cozy-app/issues/1369 but I don't know why this issue is closed.

Crash-- commented 1 year ago

I just read the code, it'll not work. We need to still copy cozy-client-js. I imagine you have tested on watch but not without being unloged on the cozy?

We should add a new flag... again... to still support this cozy-client-js. I think we can do a breaking change: By default we do not do anything with cozy-client-js, but if the app says "I want cozy-client-js", then we handle it. OK?

cballevre commented 1 year ago

For sure, I will add a new option on cozy-script --cozyClientJs which will import cozy-client-js in public assets add also in development mode.

cballevre commented 1 year ago

All tests are good with this morning changes 😄 @Crash-- can I have a review ? thanks in advance