我的鲍尔包sass-smacss: https://github.com/leongaban/sass-smacss
我的bower.json文件:
{
"name": "sass-smacss",
"version": "1.0.0",
"description": "SMACSS based SASS modules for organized style writing",
"homepage": "https://github.com/leongaban/sass-smacss",
"main": "sass/main_web.scss",
"authors": [
{
"name": "Leon Gaban",
"email": "leongaban@gmail.com",
"homepage": "http://leongaban.com",
"twitter": "@leongaban"
}
],
"repository": {
"type": "git",
"url": "https://github.com/leongaban/sass-smacss.git"
},
"keywords": [
"sass",
"css",
"smacss",
"stylesheets"
],
"license": "MIT",
"ignore": [
"**/.*",
"bower.json",
"bower_components"
]
}看起来我能够注册它,但是当我运行bower info sass-smacss时,我得到了No版本可用的,并且它没有在鲍尔的包裹搜索上找到。



以下指示来自:http://bower.io/docs/creating-packages/ http://bob.yexley.net/creating-and-maintaining-your-own-bower-package/
更新感谢@drorb i 添加了一个git标记。但是,在再次注册它之后,仍然会收到No版本可用的消息:(
我做了git tag -a v1.0.0 -m 'First version'

发布于 2015-03-08 12:48:31
Bower包版本基于Git标签。在您的示例中,sass-smacss Git存储库不包含任何标记(只包含主分支)。
还请注意,标记名称(实际上是版本名称)必须遵循符号学语义。
https://stackoverflow.com/questions/28924260
复制相似问题