how to force bower to install a certain version of dependency

I figured out the answer. I’m sharing for others: If I add the dependency with my favorite version to resolutions in bower.json, Bower will automatically install it. Here is my updated bower.json: “dependencies”: { “angular”: “~1.5.x”, “angular-routing”: “*”, “ngDialog”: “*”, “requirejs”: “*” }, “resolutions”: { “angular”: “~1.5.x” } More information here. Update: As Mattliu mentioned … Read more

How do I name the .bowerrc file?

on the command line (make sure to cd into your working directory), issue this command: touch .bowerrc This will also work for other files common to webdev like .htaccess and .gitignore Note: If you haven’t installed git bash for windows, you may not have support for the touch command. In that case (as mentioned in … Read more

How to define a Bower dependency to a Git repository with no releases tagged?

As it is written in the documentation, you can specify the package in form of a remote Git endpoint: “dependencies”: { “some-package”: “git://github.com/someone/some-package.git” } Since GitHub is usually used, there is a shortcut for this (unless specified otherwise): “dependencies”: { “some-package”: “someone/some-package” } This will download the newest version of the package. To make sure … Read more

permanently ignore a dependency with bower

Pull request #1394 added official support for this feature and is present in bower version 1.6.3 and later. Check your version with bower -v, and run npm install -g bower to upgrade. For reference, please see the .bowerrc official specification document. If this doesn’t work for you, please file an issue with bower because it … Read more

How to install latest (untagged) state of a repo using bower?

Specify a git commit SHA instead of a version: bower install ‘<git-url>#<git-commit-sha>’ Example: bower install ‘git://github.com/yeoman/stringify-object.git#d2895fb97d’ You can also specify a branch instead of a SHA, but that’s generally not recommended unless it’s in development and you control all the parts.

Choose bower install directory

Actually the .bowerrc file does work, this was an issue with my IDE not saving the file properly: { “directory” : “public/components” } I’m still wondering why componentsDirectory still doesn’t work in component.json, though.

“ignore” in Bower’s bower.json?

TL;DR: ignore only works within the scope of packages being installed, ignoring matching patterns. Somewhat longer answer: Bower will ignore all files matching the patterns specified in the ignore property of bower.json in installed packages. So, suppose if you ran bower install someBowerPackage which had following structure: someBowerPackage |- css/ |- js/ |- index.html |- … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)