cozy / cozy-proxy

This repository was part of CozyV2 which has been deprecated - Cozy authentication and routing layer
https://blog.cozycloud.cc/post/2016/11/21/On-the-road-to-Cozy-version-3
GNU Affero General Public License v3.0
26 stars 31 forks source link

Continue #246 #250

Closed m4dz closed 8 years ago

m4dz commented 8 years ago

This PR continue #246 by:

frankrousseau commented 8 years ago

@aenario I let you review and merge it. Sorry for the previous merge.

frankrousseau commented 8 years ago

README is still not updated. I still can't build my client because I don't know how to do it.

frankrousseau commented 8 years ago

I mean that README : https://github.com/cozy/cozy-proxy/blob/master/client/README.md

m4dz commented 8 years ago

Damned! I forgot the client README :disappointed:, sorry…

m4dz commented 8 years ago

@frankrousseau is it better?

aenario commented 8 years ago

What's your logic for separation between vendor/assets and app/assets ? We might as well drop the vendor folder entirely.

frankrousseau commented 8 years ago

@m4dz That's much better. Could you make the file < 80 chars wide? At first it looks complicated but with JS, you can add carriage returns easily I think.

m4dz commented 8 years ago

What's your logic for separation between vendor/assets and app/assets?

To be copied by Webpack, assets must be referenced by modules that use them. If you require / point to ressource in your module, webpack will fid it locally and pipe it to the output dir.

Some of our assets aren't referenced (favicons, mostly). But we need to copy them too. So we use 2 assets folders: one in app, for assets referenced by modules ; and one in vendor which is just copied to the output dir (using the CopyPlugin). We can't mix the two folder or it'll be a mess for us and Webpack to know which assets are alreday referenced to not be copied a second time.

I first suggest to have a public folder at root level, but it brings front-end related assets outside of the client directory.

m4dz commented 8 years ago

Could you make the file < 80 chars wide?

Done :smiley:

frankrousseau commented 8 years ago

Thank you @m4dz. The Cozy Proxy client folder looks a lot cleaner now.