Bower:使用Bower安装旧版引导程序(2.3.2) [英] Bower: Installing legacy bootstrap (2.3.2) with bower

查看:77
本文介绍了Bower:使用Bower安装旧版引导程序(2.3.2)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用Bootstrap 2.3.2的开源Webapp,目前无法将其移至Bootstrap 3(完全不同的网格系统)-我正在尝试将Webapp移至使用Bower处理依赖项,但 bower install bootstrap#2.3.2 会获取未构建原始代码存储库的内容,例如,没有css文件夹,只是单独的 less 文件,没有人压缩过 bootstrap.min.js ,而是多个不同的插件(未串联)等。

I have an open source webapp using bootstrap 2.3.2 and which Currently I can't move to bootstrap 3 (completely different grid system) - I'm trying to move the webapp to use bower to handle dependencies but bower install bootstrap#2.3.2 fetches something that looks as the raw code repo not built, for example no css folder, just the seperate less files, no one minified bootstrap.min.js but multiple different plugins (not concatenated) etc..

这个可以解决吗?我应该以其他方式安装吗?

Is this fixable? should I install differently?

推荐答案

我最终得到的解决方案是:分叉的引导存储,清理(其他分支等)。 git reset --hard 到v2.3.2标签-将其检入另一个分支并将其推入github。更多清理(删除旧的master分支,更高的标签)。运行构建过程并为v2.3.2标签设置一个更新的 dist文件夹。更改了bower软件包,并将其发布为bootstrap2.3.2软件包。

The solution I ended up with: forked bootstrap repo, cleaned up(other branches etc..) git reset --hard to the v2.3.2 tag - checked it into another branch and pushe it to github. more cleanup (removing the old master branch, higher tags). run the build processes and setup an "updated" dist folder for the v2.3.2 tag. changed the bower package and published it as bootstrap2.3.2 package.

现在,我(和其他所有人)都可以从此仓库通过bower install进行安装。如果有人要使用该结果,请在此处

Now I (and everyone else) can install with bower install from this repo. The results are here if someone want to use it.

这篇关于Bower:使用Bower安装旧版引导程序(2.3.2)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆