Back Home

Bower

Bower is a handy javascript dependency resolution tool based on a json config file

{
  "name": "activmq dashboard",
  "directory" : "src/main/resources/webapps/ROOT/js",
  "main": "./dist/angular-ui-dashboard.js",
  "version": "0.0.2",
  "license": "MIT",
  "dependencies": {
    "angular": "~1.2.6",
    "underscore": "~1.5.2",
    "angular-bootstrap": "0.9.0",
    "angular-ui-sortable": "~0.10.0",
    "jquery-ui": "~1.10.3"
  },
  "devDependencies": {
    "angular-mocks": "~1.2.1",
    "jquery": "~2.0.3"
  },
  "resolutions": {
    "angular": "~1.2.6"
  }
}

To define where the dependencies are copied to create and configure a .bowerrc

Note: do not create the file with eclipse and it will not create the file correctly

.bowerrc

{
  "directory": "src/main/resources/webapps/ROOT/js",
  "componentsDirectory": "src/main/resources/webapps/ROOT/js"
}
 
javascript_build_tools.txt · Last modified: 2014/04/14 07:25 by root
 
RSS - 200 © CrosswireDigitialMedia Ltd