当前位置:网站首页>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 dir
The 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
yalc
Bags 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
边栏推荐
- Want to self-study SCM, do you have any books and boards worth recommending?
- Redirect to previous page after login? PHP - Redirecting to previous page after login? PHP
- 我们不一样
- Make enough money to go back home
- Several schemes of traffic exposure in kubernetes cluster
- Blue Bridge Cup SCM module code (timer) (code + comments)
- Clearing Magento log data - clearing Magento log data
- Capable people never complain about the environment!
- Baidu map - introductory tutorial
- Are you still doing the dishes yourself? Teach you how to make dishwasher controller with single chip microcomputer
猜你喜欢
Kubernetes 集群中流量暴露的几种方案
【2022黑马程序员】SQL优化
[Shangshui Shuo series] day 5
我们不一样
ES can finally find brother Wukong!
MCU IO explanation (pull-up pull-down quasi bidirectional input / output push-pull open drain)
Three laws of go reflection
Make enough money to go back home
48 张图 | 手摸手教你微服务的性能监控、压测和调优
Baidu map - introductory tutorial
随机推荐
Bcrypt password encryption kalrry
有了 MySQL 为什么要用 NoSQL?
从感知机到Transformer,一文概述深度学习简史
SQL query, if value is null then return 1 - SQL query, if value is null then return 1
Finally, when you open source the applet ~
How do I get red green blue (RGB) and alpha back from a UIColor object?
Hongmeng learning notes: creating layouts using XML
使用OpenGL绘制shp文件
In depth analysis of Apache bookkeeper series: Part 3 - reading principle
MCU IO explanation (pull-up pull-down quasi bidirectional input / output push-pull open drain)
Streamnational platform version 1.5 is released, integrating istio and supporting openshift deployment
alphassl通配符证书送一个月
48 pictures | teach you the performance monitoring, pressure testing and tuning of microservices by hand
Who can teach me how to learn SCM, what to learn first and how to get started?
Is it possible to use Jasmine's toHaveBeenCalledWith matcher with a regular expression?
Lotus v1.16.0-rc2 Calibration net
Cloning and importing DOM nodes
[ACNOI2022]王校长的构造
MySQL(十二)——更改表的备注
Americo technology launches professional desktop video editing solution