当前位置:网站首页>Debug through yalc before releasing NPM package
Debug through yalc before releasing NPM package
2022-06-25 07:13:00 【Python's path to becoming a God】
yalc effect
simulation npm install Install your own npm package , Install to local project , To test
Be careful : This method is only suitable for ordinary npm package , For that global package ( Such as :cli Tools ) Not suitable for
Common operations
- Check all commands
yalc help - see yalc Where the warehouse is located :
yalc dirThe output is similar to :C:\Users\sd401\AppData\Local\Yalc - Publish local modules to yalc Warehouse :
Execute in the root directory of the project where the local module is located : yalc publish - In other projects
introduce yalc Existing in the warehouse npm package:yalc add xxx, xxx Represents the package name - take yalc The latest version of the specified package in the warehouse is updated to the current project
yalc update my-package - All used in the current project yalc Update the package in the warehouse to the latest version
yalc update - Delete the specified... In the current project yalc Bags in the warehouse
yalc remove my-package - Delete all... In the current project
yalcBags in the warehouseyalc remove --all - Unpublish
yalc installations clean my-package
If you try to install or remove yalc Packages that do not exist in the warehouse will be similar to the following results

How to modify global packages ( similar cli Tools ) Perform local installation and testing
install
Execute in the project root directory of the global package npm install -g, The execution will be completed in node Global module directory The corresponding global package appears ( In the form of soft connection )
Delete
npm uninstall -g my-package
Reference article
yalc: Probably the best front end link Commissioning plan
How to test gracefully locally npm package
yalc: Develop front-end plug-ins & Component ratio npm link Better to use
Local debugging npm Private packages use yalc + nodemon
边栏推荐
- Blue Bridge Cup SCM module code (timer) (code + comments)
- Blue Bridge Cup SCM module code (LED) (code + comments)
- lotus windowPoSt 手动触发时空证明计算
- Expression of fatherly love
- [ros2] Why use ros2? Introduction to ros2 system characteristics
- 哇哦,好丰富呀。
- Are you still doing the dishes yourself? Teach you how to make dishwasher controller with single chip microcomputer
- 使用OpenGL绘制shp文件
- The Rust Programming Language
- Fastadmin cascade clear data
猜你喜欢

Event registration | Apache pulsar x kubesphere online meetup is coming

Capable people never complain about the environment!
![[learn shell programming easily]-5. Plan tasks](/img/6f/8067d4201f0c2e7a692d89885e3ad9.png)
[learn shell programming easily]-5. Plan tasks

How to find happiness in programming and get lasting motivation?

Kubernetes 集群中流量暴露的几种方案
![Analysis on the trend of the number of national cinemas, film viewers and average ticket prices in 2021 [figure]](/img/01/594990789cbc1817dbbf61b7dd0c4c.jpg)
Analysis on the trend of the number of national cinemas, film viewers and average ticket prices in 2021 [figure]

【工具分享】一款颜值与技能并重的软件
![[Shangshui Shuo series] day 5](/img/83/28834addd8198d4bcdc718eccf5754.png)
[Shangshui Shuo series] day 5

赚够钱回老家吗

Event registration Apache pulsar x kubesphere online meetup hot registration
随机推荐
Leetcode 2163. Minimum difference of sum after element deletion
Want to self-study SCM, do you have any books and boards worth recommending?
基于 KubeSphere 的分级管理实践
Kubernetes core components etcd details
[learn shell programming easily]-5. Plan tasks
Simple and complete steps of vivado project
Message queue table structure for storing message data
Efficient exploration | an application practice of ES geographical location query
Why did Yanjing Beer come here?
I have used it for six years!
joda. Time get date summary
Analysis on the trend of the number of national cinemas, film viewers and average ticket prices in 2021 [figure]
Can we use function pointers in go- Can we have function pointers in Go?
【xxl-job】池塘水绿风微暖,记得玉真初见面
Lotus v1.16.0-rc2 Calibration net
[Shangshui Shuo series] day 4
直接选择排序和快速排序
Coffee script unmatched outent error
Learn the first routine of FPGA
Escape analysis of 982 golang