Add melon to bower
I think it would be nice if you register melon to http://bower.io/
seems that someone already registered it on bower, so i'm closing this one ;)
Only that it doesn't contain any build source. It's main property references "melonJS-0.9.8-min.js" but there is no such file.
I made a pull request: https://github.com/melonjs/melonJS/pull/314. This fixes the path, but one still needs to run grunt in the project directory to get the ready-to-use file.
Reopened this one, because it's apparently not ready-made for bower. I also want to get the version number dynamically loaded from package.json, so that version increments only need to happen in one file.
And ... moving this ticket to milestone 1.0.0, because I have no idea when these concerns can be addressed.
Running npm install on 1.0.0-dev branch logs this to the console:
> [email protected] install /Users/parasyte/projects/melonJS
> bower install;grunt
sh: bower: command not found
You need bower installed:
[sudo] npm install -g bower
My point is that npm install should install bower before it attempts to run it.
On Nov 30, 2013, at 8:03 AM, Danny Arnold [email protected] wrote:
You need bower installed:
[sudo] npm install -g bower
Reply to this email directly or view it on GitHub.
Maybe I'm wrong here, but npm install won't install dependencies globally and bower needs to be installed globally or at least the executable must be somewhere in PATH. So why should npm install install bower? It doesn't install grunt-cli either.
Correct me if I'm wrong here.
Ah, point taken and well-received! This is a simple fix, then. We'll just update README.md to add bower to the install instructions.
to be honest I'm not super familiar with bower neither (i actually never used it), but about this plugin :
https://npmjs.org/package/grunt-bower-install
@obiot: this plugin only adds <script> tags to your HTML.
Bower is a package manager for the web. You type bower install melonJS in some other project and get MelonJS installed. And right now it downloads the source from github and places it in bower_components directory. The problem is that it doesn't build the final JS file (so you have to manually run grunt in the melonJS project) and the path was wrong (I corrected the path in my pr).
So basically you don't need bower as a dependence in your project if you don't use it; and bower.json is a file that tells bower how to install this package in some other environment.
i'm confused about what is the conclusion for this one, do we then just need to add the following line to the install/build instructions :
npm install -g bower
I don't think you need it, unless you install some melonJS dependencies using bower.
bower.json, however, is another thing: it is there to allow melonJS being installed in some other web app.
All right, thank you for the feedback and I'm therefore closing this one.