Top Banner
What Resources Do I Need? Don't Worry with Bower Frank van der Linden
20
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Don't worry with bower

What Resources Do I Need?

Don't Worry with BowerFrank van der Linden

Page 2: Don't worry with bower

About me• Freelance Java and web developer, with XPages

experience

• Owner of Elstar IT

• Frequent (trail)runner

Page 3: Don't worry with bower

Roadmap• What is Bower

• Requirements

• Install Bower

• Configure Bower

• Run Bower

• Bower and XPages

Page 4: Don't worry with bower

What is Bower• Is a package manager for the web

• It takes care of the specified packages

• ….and keep track on dependencies

• created at Twitter

• make own packages available, when it is public on

GIT

Page 5: Don't worry with bower

Don’t be afraid of the command line

Page 6: Don't worry with bower

Requirements• Install NodeJS, pick your flavour

• Install NPM

• On disk Project

$ npm install nvm

Page 7: Don't worry with bower

Install Bower

$ npm install -g bower

Page 8: Don't worry with bower

Configure Bower

bower.json

{

"name": "bower4xpages",

"version": "0.0.1",

"dependencies": {

"bootstrap": "latest",

"moment": "latest",

"angular": "latest",

"bootstrap-datepicker": "latest",

"fontawesome": "latest"

},

"private": true

}

Page 9: Don't worry with bower

Configure Bower

Page 10: Don't worry with bower

Configure Bowerdefault directory = bower_components

.bowerrc, to specify another directory

{

"directory":"nsf/WebContent/libs"

}

Page 11: Don't worry with bower

Run Bowergo to the directory where you want to run Bower

and run Bower

$ bower install

$ cd /Users/frankvanderlinden/Development/GIT/bower4xpages

Page 12: Don't worry with bower

Run Bower..and the final result

Page 13: Don't worry with bower

Bower and XPagesOn disk project in Domino

Designer

Refresh on disk project

Page 14: Don't worry with bower

Bower and XPagesDatabase in Domino

Designer

Sync On disk Project

with database

Page 15: Don't worry with bower

Bower and XPages

Page 16: Don't worry with bower

Bower and XPages

Page 17: Don't worry with bower

Bower and XPages• Major caveat, version number in package

Page 18: Don't worry with bower

Bower and XPages• Another caveat, AMD loading conflict

Page 19: Don't worry with bower
Page 20: Don't worry with bower

Thank you