Jump to content

How to create a Phaser project with bower ?


shohan4556
 Share

Recommended Posts

From my understanding Bower is used to quickly get dependencies setup for your project. If you're working with a group of people you can all be in sync with the project dependencies by using bower. Bower also offers the ability to update your dependencies to a newer version or making sure a specific version of a dependency is being used for your project. 

 

For example:

 

You can download and update your phaser build with bower:

 

http://bower.io/search/?q=phaser

Link to comment
Share on other sites

Bower is a package manager. You use it to find and download different packages(APIs - like Phaser). Once downloaded, the package goes in a folder bower_components/<the api>. Besides that, Bower creates a JSON file with dependencies. That's just a list of all the packages you've downloaded.

The biggest(and only) advantage I can think of is that you can send your project with just the dependencies JSON file to someone. And if he has Bower installed, he can easily fetch the APIs needed for the project. No need for you to send them, or for him to find them himself.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...