当前位置:网站首页>手把手教你依赖管理
手把手教你依赖管理
2022-07-26 02:55:00 【壹小俊】
你知道什么是依赖吗?
软件工程是多人合作的结果,我们在开发软件的时候经常会使用一些别人编写好的,比较成熟的库。
比如,早期的前端开发用到了iQuery库,那么通常的做法是去官网下载一个最新版本的jQuery,然后放在自己本地的项目中。对于简单的前端项目来说,这样可以简单粗暴地达到目的。
但当项目越来越庞大,除了jQuery之外,你还会依赖一些其他的第三方库。比如Bootstrap与Chosen,这两个流行的前端库也都依赖jQuery,如果这些第三方库依赖的jQuery版本一致还好,但大多数情况并没有这么乐观:
你的项目依赖的jQuery版本是1.0.0,Bootstrap依赖的版本是1.1.0,而Chosen依赖的版本是120,看上去都是小版本不一致,一开始并没有发现任何问题,但是如果到后期发现不兼容,可能就为时已晚了。
所以,你需要在确定依赖之前,就把整个系统的依赖全部梳理一遍,保证每个依赖都不会有冲突问题。
你可能会质疑,这个前端工程师一定是初级的,事先都不会确认Bootstrap和Chosen依赖的版本吗,直接选择依赖iQuery100版本的不就行了?
这么说有一定道理,但是手工维护这些依赖是相当麻烦且容易出错的。随便找一个比较流行的开源软件,你都会发现它依赖了大量的第三方库,而这些第三方库又依赖着其他的第三方库,形成了一条十分复杂的依赖链。靠人工去解决这个依赖链一定会让你怀疑人生,因此你需要一些工具去管理项目的依赖。
你见过几种依赖管理工具?
其实,各大平台早已有一套自己的手段来解决上述的问题,仔细看
边栏推荐
- Manifold learning
- scipy.sparse.csr_ matrix
- scipy.sparse.vstack
- Exclusive interview with ringcentral he Bicang: empowering future mixed office with innovative MVP
- Zhimeng prompts you how to solve the problem of setting the field as linkage type
- Recorded target detection NMS (non maximum suppression)
- How to design automated test cases?
- HLS实验一--乘法器
- 图像识别(六)| 激活函数
- 当点击Play以后,EditorWindow中的变量会被莫名其妙销毁.
猜你喜欢

Information System Project Manager - Chapter 10 communication management and stakeholder management examination questions over the years

第3章业务功能开发(删除线索)

信息系统项目管理师必背核心考点(五十)合同内容约定不明确规定

MySQL build websites data table

案例:使用keepalived+Haproxy搭建Web群集

Nahamcon CTF 2022 babyrev reverse analysis

Self-supervised learning method to solve the inverse problem of Fokker-Planck Equation

ES6高级-利用原型对象继承方法

移位距离和假设的应用

AMD64(x86_64)架构abi文档:中
随机推荐
Programming example of STM32 state machine -- fully automatic washing machine (Part 1)
scipy.sparse.csr_ matrix
Information System Project Manager - Chapter 10 communication management and stakeholder management examination questions over the years
assert _ Aligns
Cycle and branch (I)
当点击Play以后,EditorWindow中的变量会被莫名其妙销毁.
Detailed explanation of extended physics informedneural networks paper
[steering wheel] how to transfer the start command and idea: VM parameters, command line parameters, system parameters, environment variable parameters, main method parameters
Nahamcon CTF 2022 babyrev reverse analysis
assert _Aligns
MySQL build websites data table
What can EAM system help enterprises do?
Is it safe to open galaxy securities account by mobile phone?
Image recognition (VI) | activation function
Extended Physics-InformedNeural Networks论文详解
如何根据登录测试的需求设计测试用例?
Parallelloopbody in opencv
Information system project managers must recite the core examination site (50). The contract content is not clearly stipulated
图像识别(六)| 激活函数
Convert rich text to normal text