Javascript - Bouwer (Package manager)

> (World Wide) Web - (W3|WWW) > Javascript (Js|ECMAScript) > Shipping/Building Pipeline

1 - About

Bouwer is a package manager.

Advertising

3 - Installation on Windows

  • install bower
npm install -g bower
C:\Users\NicolasGERARD\AppData\Roaming\npm\bower -> C:\Users\NicolasGERARD\AppData\Roaming\npm\node_modules\bower\bin\bower
[email protected] C:\Users\NicolasGERARD\AppData\Roaming\npm\node_modules\bower

4 - Package

bower search <query>

4.2 - Install

Syntax:

bower install <package>#<version>

Installed packages will be stored in the bower_components directory which is:

Example with Jquery:

bower install jquery
? May bower anonymously report usage statistics to improve the tool over time? Y (Y/n)
? May bower anonymously report usage statistics to improve the tool over time? Yes
bower not-cached    git://github.com/jquery/jquery.git#*
bower resolve       git://github.com/jquery/jquery.git#*
bower download      https://github.com/jquery/jquery/archive/2.1.4.tar.gz
bower extract       jquery#* archive.tar.gz
bower resolved      git://github.com/jquery/jquery.git#2.1.4
bower install       jquery#2.1.4

jquery#2.1.4 bower_components\jquery
Advertising

4.3 - Use

With the script element

<script src="bower_components/jquery/dist/jquery.min.js"></script>

4.4 - Update

bower update # update all packages
bower update <package> # update one packages

4.5 - Save

Packages are defined by a manifest file bower.json.

bower init will create it interactively.

bower init

5 - Command

5.1 - Cache

bower cache list
d3=git://github.com/mbostock/d3.git#3.5.6
jquery=git://github.com/jquery/jquery.git#2.1.4
Advertising
web/javascript/shipping/bouwer.txt · Last modified: 2019/05/25 15:26 by gerardnico