简体   繁体   中英

Bower is only downloading bower.json but no real dependancy files

My bower.json:

{
    "name": "best-project-ever",
    "version": "0.0.0",
    "dependencies": {
        ...
        "xdomain": "0.6.11"
    },
    "devDependencies": {}
}

Running bower install, or bower install xdomain creates:

app/
    bower_components/
        xdomain/
            bower.json

But nothing else! The bower.json file for xdomain clearly specifies including xdomain.js and xdomain.min.js (ignoring everything BUT those files), but neither file is downloaded by bower. Any ideas? =)

{
  "name": "jpillora/xdomain",
  "version": "0.6.10",
  "main": "dist/0.6/xdomain.js",
  "license": "MIT",
  "ignore": [
    "*",
    "!bower.json",
    "!dist/0.6/xdomain.js",
    "!dist/0.6/xdomain.min.js"
  ],
  "dependencies": {},
  "devDependencies": {}
}

bower.json spec says, that they are using the exact same syntax as .gitignore -files.

.gitignore does specify the "!" as follows:

An optional prefix "!" which negates the pattern; any matching file excluded by a previous pattern will become included again. It is not possible to re-include a file if a parent directory of that file is excluded .

Note the bold sentence, which is exactly the problem.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM