O'Reilly logo

Multiplayer Game Development with HTML5 by Rodrigo Silveira

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Managing frontend packages with Bower

If you're not impressed enough with npm as a backend JavaScript package manager, perhaps Bower will take you to the next level of joy. (Refer to http://bower.io/.) Bower works very similarly to npm. In fact, most commands and conventions that we've just discussed for npm work verbatim in Bower.

In fact, Bower itself is a Node.js module that is installed through npm:

npm install bower -g

We can interact with Bower the same way we've interacted with npm so far.

bower init // … using all proposed defaults // - - - - - - - // bower.json { name: 'npm', version: '0.0.0', homepage: 'https://github.com/formigone', authors: [ 'Rodrigo Silveira <webmaster@rodrigo-silveira.com>' ], license: 'MIT', ignore: [ '**/.*', 'node_modules', ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required