kupriyanenko / jbone

JavaScript Library for Events and DOM manipulation. Replaces jQuery for Backbone (2.5kb gzipped)
http://jbone.js.org
MIT License
279 stars 35 forks source link

Publish module on npm #24

Closed dazld closed 10 years ago

dazld commented 10 years ago

Would be great to use this via npm for browserified projects. Thanks!

kupriyanenko commented 10 years ago

Soon will be done (in next release).

@dazld can you please explain use cases with jbone in node environment? This is unit/behavior testing or other cases? Why not use jquery?

dazld commented 10 years ago

That's great news.

Use case is as a drop in for $ when using backbone, as you mention on project description. Full fat jquery leaves me feeling bad in the stomach, and sometimes going on a diet is good for general health :)

It doesn't run in node on server, but is packaged into the bundle for clientside with the rest of the commonJS code. If you haven't tried browserify, would really recommend trying it - very smooth workflow, and having most of the node API available in browser is extremely cool (streams, events, etc). Seems like much less hassle than requireJS, and many, many awesome packages available on npm for frontend. Different philosophy, but really gets the job done. Let me know if you'd like an example!

http://browserify.org/

kupriyanenko commented 10 years ago

solved in commit e2a330b1f798582f0fb6bfc819f819a1021fe847