News for hackers. Stuff that matters.
Re:NodeJS Starter – Simple project setup using best practice... by cdouce on Tuesday August 20, 2013 @11:47AM (#6244425)
`./lib` is for modules and components. There is no difference for us. You can share to client simple modules by adding a component.json file to that directory. And vice-versa by just exposing an index.js file. You can require('regexps') for example, from both server and client and work with same definitions without repeating code. So, `./lib` turns into a nice and sharable space. This is a construction from practices we've found on the way... component.io website is one of them.

There are no comments on this comment yet.