문제

I'm using node.js and backbone for a web app. Backbone is part of my package requirments. I've used Rails and Backbone before, and the helper gems are nice for piecing together all the assets (js files) that need to get to the client.

With that said, I had to manually download backbone.js and manually add it and all the other supported js libraries in the header of my app's layout file.

Should installing the backbone module get me away from that manual effort to create the required source for my client app? Is there some kind of jammit/asset pipeline?

도움이 되었습니까?

해결책

you should simply npm install backbone in your main directory, this way all the submodules you use will find this exact backbone, and will use it

moreover, this way you can easily extend backbone with additional submodules

다른 팁

I use the stitch package to serve my scripts in node apps. With that, it's as simple as listing backbone.js as a dependency, and I install it with npm. That's convenient.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top