凉亭安装回购,而不是主要的特定文件 [英] bower install take repo, not specific files in main
问题描述
我正在尝试通过Bower安装一些js文件。我的仓库有一个具有主要属性的bower.json,但是整个仓库都已安装到components /上,而不仅仅是dist / custom / dir中的文件。
I am trying to install some js files via bower. My repo has a bower.json with a main property, however the whole repo gets installed to components/, not just the files in the dist/custom/ dir.
这里是我的bower.rc的样子。
Here is what my bower.rc looks like
{
"name": "jquery-m",
"version": "2.0.2mup",
"description": "Meetup custom build of jQuery 2.0, used on mobile",
"main": [ "./dist/custom/" ],
"license": "MIT"
}
就是这样凉亭应该工作吗?我以为可以使用您的main属性指定某些文件。
Is this the way bower is supposed to work? I thought it was possible just to specify certain files with your main property.
推荐答案
是的,这就是Bower的工作方式。 Bower安装程序看起来比Grunt轻巧,可以解决您的确切要求描述并获取需要部署到生产环境的文件。
Yes, this is how Bower is meant to work. Bower-installer looks like a more lightweight solution than Grunt to solve the exact requirement you're describing and get just the files you need to be deployed to production.
这篇关于凉亭安装回购,而不是主要的特定文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!