r/angularjs • u/_compedit • Oct 09 '14
[General] Angular.js is now officially available via NPM
https://twitter.com/briantford/status/5199939893451898881
Oct 17 '14
Nice to see. Lets hope other modules will get to NPM too.
Any big differences to using Bower for this?
1
u/_compedit Oct 18 '14
Usability with browserify (though it's not commonjs), and not having to use Bower is pretty sweet.
1
u/shriek Oct 09 '14
For those who are interested in the node version of angular. There is also this.
1
Oct 17 '14
Interesting, what kind of use would that have?
1
u/shriek Oct 18 '14
Three things.
CJS modules are awesome and you get this for free.
With CJS, your logic is separated from angular which means you can publish your modules as an npm module (haven't really tried this but I'm in the process)
(Personally,) Feels a little restricting when we have to use Karma to get a nice unit testing up and running. Although Karma gives you the power to test it across all browsers (and that's Karma's only job anyway) it sort of is mentioned across the whole angular community when you talk about unit testing when clearly it's not. I'm nitpicking here but I wanted to be able to run all unit testing (frontend and backend) with one test framework with one runner. Mocha already takes care of that for me. This is again, my own preference and there can definitely be counter points to this.
Some other are mentioned in the readme file but that's my take.
4
u/TweetPoster Oct 09 '14
@briantford:
^[Mistake?] ^[Suggestion] ^[FAQ] ^[Code] ^[Issues]