WebStorm Bower Fundamentals Flashcards
What is Bower
A package installer.
From where does Bower download its packages?
GitHub.com (or another git endpoint)
What is the command for installing bower globally?
npm install bower -g
What technologies do we need installed on our system to install bower?
Node.j’s
MSysGit/Git for Windows
Which files can we add to control configuration of bower in our local project?
bower.json
.bowerrc
What configuration options are available for bower from within the .bowerrc file?
directory - the directory where packages will be added.
What is the command for installing a bower package
bower install [package-name]
How do we install a specific version of a package
bower install [package-name]#[version]
How do we get information about what versions of a package are available
bower info [package-name]
How can we make sure that all packages are up to date
bower update
How do we update just one packages
bower install [package-name]
How can we check which packages are installed?
bower list
How can we check what packages are available
bower search [search-term]
What is the bower homepage?
http://bower.io
What is the bower search page?
http://bower.io/search
What is the purpose of the bower.json file?
- Helps to keep track of the packages that have been installed into your project.
- When you are going to publish your own library that can be installed by others.
Which bower.json property tells us the package name?
“name”
Which bower.json property tells us the package version?
“version”
Which bower.json property tells us the file that is the main entry point for the package
“main”
Which bower.json property tells us about licence information?
“license”
How do we tell bower which files to ignore when the package is installed?
The “ignore” property in the bower.json file (a string array).
Which properties are available to us in the bower.json file?
name (string), version (string), main (string or array of string), license (string), ignore (array of string), devDependencies (object containing properties that have a key of the package name and a value of the version of that package), keywords (array of string), dependencies (as devDependencies), homepage (string), moduleType (string)
What is the command for creating a bower.json file?
bower init
If bower is used, do we need to check in packages?
No!