当前位置:网站首页>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
边栏推荐
- 基於 KubeSphere 的分級管理實踐
- 【他字字不提爱,却句句都是爱】
- Following the last minor upgrade of nodemcu (esp8266)
- Capable people never complain about the environment!
- 太美的承诺因为太年轻
- Controlling volume mixer
- MySQL(十二)——更改表的备注
- Analysis on the scale of China's smart airport industry in 2020: there is still a large space for competition in the market [figure]
- Navicat prevent new query from being deleted by mistake
- Learn the first routine of FPGA
猜你喜欢

【他字字不提爱,却句句都是爱】

Pratique de gestion hiérarchique basée sur kubesphere

Hongmeng learning notes: creating layouts using XML

Power representation in go language

R & D thinking 07 - embedded intelligent product safety certification required

Why use NoSQL with MySQL?
![[Shangshui Shuo series] day 4](/img/9f/fb4e2be392756cc7aa8de2e9c5aec7.png)
[Shangshui Shuo series] day 4

弱大数定理的意义与证明

Modify the default log level
![Analysis of China's food cold chain logistics, output of quick-frozen noodles and rice products and operation of major enterprises in 2021 [figure]](/img/66/f723dc48a1009a503f521c4d81c306.jpg)
Analysis of China's food cold chain logistics, output of quick-frozen noodles and rice products and operation of major enterprises in 2021 [figure]
随机推荐
单片机IO详解(上拉 下拉 准双向 输入 输出 推挽 开漏)
Blue Bridge Cup SCM module code (LED) (code + comments)
了解zbrush雕刻软件,以及游戏建模的分析
Message queue table structure for storing message data
Your local changes to the following files would be overwritten by merge: . vs/slnx. sqlite
Blue Bridge Cup SCM module code (external interrupt) (code + comment)
想买股票去哪个证券公司开户更快更安全
Design of PWM breathing lamp based on FPGA
Atomic alpha development board -- SD card and EMMC burning tool
基于 KubeSphere 的分级管理实践
Lotus windowsost manually triggers space-time proof calculation
太美的承诺因为太年轻
MySQL(十二)——更改表的备注
Event registration Apache pulsar x kubesphere online meetup hot registration
[2022 dark horse programmer] SQL optimization
48 pictures | teach you the performance monitoring, pressure testing and tuning of microservices by hand
Ctfhub web information disclosure directory traversal
Streaming a large file using PHP
【一起上水硕系列】Day 5
Esp8266 & sg90 steering gear & Lighting Technology & Arduino