我的任务是在可能的情况下拆除凉亭,而是使用NPM来安装模块。 我已经完成了对代码库的搜索,并且唯一的bower.json文件位于NPM节点模块中。 我认为NPM是凉亭的替代品,这是不正确的?
我期待在项目根目录中找到bower.json文件。 我没有,它应该像NPM一样被使用吗?
I've been tasked with removing bower where possible and instead using NPM to install modules. I've done a search of the codebase and the only bower.json files are within NPM node modules. I thought that NPM was an alternative to bower, is this incorrect?
I was expecting to find a bower.json file in the project root. As I haven't does it should like NPM is already being used instead?
最满意答案
您可以使用NPM作为凉亭的替代品,是的。
每个模块都有一个bower.json,因为该模块也想支持bower和npm。 模块管理员可以编写版本号等内容,忽略某些文件下载等。您无需担心这些文件。
你的包裹没有bower.json - 完美。 你不支持凉亭。
You can use NPM as an alternative to bower, yes.
Every module has a bower.json because the module wants to support bower and npm as well. Module managers can write stuff like version number, ignore certain files to download, etc. You don't need to worry about these files.
Your package doesn't have a bower.json - perfect. You don't support bower.
更多推荐
发布评论