addyosmani/todomvc — pull request #523 by stephenplusplus (2013-04-06 02:39:57+00:00)
Title: socketstream updated to use bower.

#475 let's see what you think about this one!

My experience with SocketStream is only from tonight, but it seems pretty locked down to how it serves up your JS and CSS files.

JS must be stored in `/client/code/libs/` to avoid being wrapped up as a CommonJS module.

CSS must be stored in `/client/css/` to be served to the browser correctly.

I tried to think of the best way to handle all of these requirements, and here's what I came up with. I created a `.bowerrc` to store dependencies in `/client/code/libs/`. For the CSS, I couldn't find a way to access the `/client/code/libs/todomvc-common/base.css`. I was forced to copy the contents, and keep it as it was, in `/client/css/base.css`. Same for the static `bg.png` image as well.

Let me know what you think, and if I should change anything.

I also went through and spaced out the code and some small formatting things :)