How it feels to learn JavaScript
  • How it feels to learn JS
  • Table of Contents
  • Introduction
    • Is EcmaScript is JavaScript? TC39
  • JS Basics
    • Basic Concepts
    • Objects
    • Function vs Method
      • Anonymous Function
    • Scopes and keyword "this"
    • Prototypical
  • Dependencies / Packages Management
    • Chapter: Dependencies / Package Management
    • NPM
    • Bower
  • JS-Engines
    • Browser vs Node.js
  • Super / Sub - Lang
    • Chapter: Super / Sub Languages
    • TypeScript
      • Architectural Overview
  • Framework / Library
    • Angular
      • Bootstrapping
      • Change Detection
      • Singleton Services
    • React
  • Paradigms
    • Reactive
      • Rx.js
  • Web API's
    • Web Sockets
    • Web Worker
    • Service Worker
  • Testing
    • Testing Essentials
  • Patterns
    • IIFE (Immediately Invoked Function Expression)
Powered by GitBook
On this page
  1. Dependencies / Packages Management

Bower

PreviousNPMNextBrowser vs Node.js

Last updated 6 years ago

It is a cli tool based on npm for managing component like HTML, JS, CSS and fonts. It gives you flexibility to manage your dependencies without diving into node modules complexities keep an abstraction over it.

Installation is easy:

npm install -g bower

It requires: node, npm and git.

For other languages/environments:

it has similar way to manage componets like npm does using package.json file, it uses file called bower.json.

Adding library

bower install library

And you can direclty refer like

<script src="bower_components/lib_folder/lib.js"></script>

For any kind of minification or ugilify it. you need to use it with build tools like

gulp, grunt and webpack.

We will look about them in Build-Tools section.

Ruby on Rails
Java
Django