HNHacker News
TopNewBestAskShowJobs

cdouce

9 karma · joined August 23, 2012

[ my public key: https://keybase.io/cristiandouce; my proof: https://keybase.io/cristiandouce/sigs/IMSaUbphsNXP0KGGtOt0lYxd7QqGjsla3Gv-Ym4GsZA ]
submissionscomments
cdouce··on NodeJS Starter – Simple project setup using best practices and modules
Take a look at the branches it has. Also look at component.io website code. ;)
cdouce··on NodeJS Starter – Simple project setup using best practices and modules
`./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.
cdouce··on NodeJS Starter – Simple project setup using best practices and modules
No need of Grunt at all. There is no need of npm scripts either, besides maybe for testing.

Tests and explanation comming soon. I appreciate your feedback!

cdouce··on Wordpress on Heroku
great post!
cdouce··on Balloons.IO now supports Facebook login
;)