我最近在visualsearch项目中添加了以下bower文件:
{
"name": "visualsearch",
"version": "0.4.0",
"homepage": "http://documentcloud.github.io/visualsearch/",
"authors": [
"Samuel Clay"
"@samuelclay"
],
"description": "A Rich Search Box for Real Data",
"main": ["build-min/visualsearch-datauri.css", "build-min/visualsearch.css", "build-min/visualsearch.js"],
"license": "MIT",
"dependencies": {
"jQuery": ">=1.4",
"jquery-ui": ">=1.8",
"backbone": "0.9.10",
"underscore":"1.4.3"
},
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests",
"Rakefile",
"vendor",
"*.html",
"build",
"docs",
"*.yml"
]
}
Visualsearch已添加到bower注册表中:
bower注册visualsearch https://github.com/documentcloud/visualsearch.git
但是当我跑步时:
bower安装visualsearch --save
可视化搜索被下载到我的“bower_components”目录中,但是主干和下划线不会作为依赖项添加到我的项目bower文件中。
答案 0 :(得分:1)
您需要在数组元素之间添加逗号:
"authors": [
"Samuel Clay",
"@samuelclay"
]
您可以在此网站轻松查看任何json:http://www.jsoneditoronline.org/