joomla/jissues — pull request #170 by elkuku (2013-11-06 21:56:52+00:00)
Title: Bower

Nothing is entirely bad... not even Twitter.... while I really hate to tweet, or read other peoples tweetings, the Twitter family produced some really decent stuff along the way.
You know [Bootstrap](http://getbootstrap.com/) ? well... here is

![bower](https://f.cloud.github.com/assets/33978/1487034/aacedf52-472d-11e3-84e4-958d79c54adf.png)

From their [web site](http://bower.io/):
> Bower is a package manager for the web. It offers a generic, unopinionated solution to the problem of front-end package management

Turns out that all our external dependencies are installable using this bower thingy, so - why not ?

It can also output a nice dependency tree, check for new versions, etc.:

```
$ bower list
bower check-new Checking for new versions of the project dependencies..
jissues#1.0 /home/elkuku/repos/jissues
├── blueimp-tmpl#2.4.0
├─┬ bootstrap#2.3.2 (latest is 3.0.1)
│ └── jquery#1.9.1 (2.0.3 available)
├─┬ bootstrap-switch#v1.8 incompatible with v1.8
│ └── jquery#1.9.1 (latest is 2.0.3)
├── jquery#1.9.1 (latest is 2.0.3)
├── jquery-validation#1.11.2
└── markitup#1.1.14
```

Not sure what this `incompatible` message means - so far it seems to work..

```
$ bower list --paths
{
"blueimp-tmpl": "vendor/blueimp-tmpl/js/tmpl.js",
"bootstrap-switch": "vendor/bootstrap-switch/static/js/bootstrap-switch.js",
"bootstrap": [
"vendor/bootstrap/docs/assets/js/bootstrap.js",
"vendor/bootstrap/docs/assets/css/bootstrap.css"
],
"jquery-validation": "vendor/jquery-validation/jquery.validate.js",
"jquery": "vendor/jquery",
"markitup": [
"vendor/markitup/markitup/jquery.markitup.js",
"vendor/markitup/markitup/sets/default/set.js",
"vendor/markitup/markitup/sets/default/style.css",
"vendor/markitup/markitup/skins/simple/style.css"
]
}
```

I also think we should organize our customizations into a common folder.

Maybe

```
www
├─┬ jtracker
│ └── XYZ-script - The JTracker customization
├─┬ vendor
│ └── XYZ-script - The external script
```

How does that sound ?

Since this PR removes all the external scripts from our code base, developers would have to install bower, or install the external scripts manually.

Do windows users maybe have concerns here ?