当前位置:网站首页>qiao-lerna:lerna辅助工具
qiao-lerna:lerna辅助工具
2022-06-11 08:17:00 【uikoo9】
【前言】
npm包monorepo管理工具lerna,可以说十分好用,详见:
一文学会用Lerna管理多个npm包_uikoo9的博客-CSDN博客_npm 多包管理
但是使用过程中会遇到一些定制的需求,例如
1.统计每个npm包的下载量
2.检查每个npm包的依赖包是否有更新
3.列出每个npm包的依赖包或开发依赖包
【qiao-lerna】
写了一个小工具实现了上述需求,详见:
【安装】
1.可以全局安装,然后通过qlerna命令使用
npm i -g qiao-lerna2.可以安装到开发依赖,然后通过npm scripts使用
npm i -D qiao-lerna【qlerna】
以下以全局安装为例介绍,直接输入qlerna会提示有哪些命令

-v,获取版本号

-h,获取帮助信息

【dc】
downloadCounts的缩写,获取文件夹下所有npm包的上月下载量
qlerna dc ./packages会统计packages文件夹下所有npm包的上月下载量

【ncu】
使用ncu这个工具,统计文件夹下所有npm包的依赖是否有更新,
qlerna ncu ./packages
红框内代表,qiao-webpack这个npm包的依赖有更新了,
【pkg】
lerna已经有ls命令了,但是没办法列出devDependencies相关包,详见:
一文学会用Lerna管理多个npm包_uikoo9的博客-CSDN博客_npm 多包管理
# 列出文件夹下所有npm包的dependencies
qlerna pkg ./packages会列出文件夹下所有npm包的依赖包

# 列出文件夹下所有npm包的devDependencies
qlerna pkg ./packages dev会列出文件夹下所有npm包的开发依赖包

【总结】
1.qiao-lerna简介
2.qiao-lerna,dc命令统计文件夹下npm包上月下载量
3.qiao-lerna,ncu命令统计文件夹下npm包依赖包是否有更新
4.qiao-lerna,pkg命令列出文件夹下npm包依赖包或开发依赖包
边栏推荐
- Js学习基础document.write在页面中写一行文字
- 用 Keras/TensorFlow 2.9 创建深度学习模型的方法总结
- YUV数据的裁剪与重叠
- (taking pytorch as an example) a simple understanding of the regularization method of path (depth) -drop path
- Typescript type protection
- Niuke JS wrong question knowledge point record
- TypeScript-分布式条件类型
- Understanding of Poisson distribution and Poisson process and Erlang distribution and their relations (important theories in queuing theory and operational research)
- Development of sylixos SD device driver
- In an activity, view postdelay will cause memory leakage, but will not affect the life cycle execution of the activity.
猜你喜欢

(resolved) the tqdm progress bar in the Jupiter notebook does not update and display in one line, but scrolls down to output

What does it mean to buy a single-mode, dual-mode and Rechargeable Wireless Mouse

(taking pytorch as an example) a simple understanding of the regularization method of path (depth) -drop path

这几个小工具也太好用了

空间几何

Deep understanding of add in argparse module_ Argument parameters (such as action)

TypeScript-头文件使用细节

学习《缠解论语》

Bubble sorting with C language

Using Tkinter to realize guessing numbers game
随机推荐
Magnifying mirror rendering
Shell编程笔记
Image processing operation record
关于网络知识的50个问答题,你能答对几个?
Collation of open source modulation identification data set
【1】 Integrated learning: quickly understand Integrated Learning
TypeScript-unknown类型
(resolved) pychart debug error -unicode decodeerror: 'UTF-8' codec can't decode byte 0xe8 in position 1023
Use special characters to splice strings "+“
Bubble sorting with C language
Logical implication of functional dependence
Typescript unknown type
TypeScript-在koa中配置TS和使用koa-router
TypeScript-枚举
TypeScript-null和undefined
Figure seamless database integration tushare interface
Return in foreach and break in for
TypeScript-键盘映射
How to make hyperlinks in RichTextBox- How can I make a hyperlink work in a RichTextBox?
Mongodb--- automatically delete expired data using TTL index