当前位置:网站首页>Publish custom plug-ins to local server
Publish custom plug-ins to local server
2022-04-23 13:39:00 【Nianya】
One 、 start-up nexus
Enter the location of the unzipped package nexus-3.29.1-01, Next bin Catalog , open cmd window , Input
.nexus/start
Two 、 First build, Release it again
In the project npm i ( Note the mirror address npm perhaps taobao )
Get the image address
npm config get registry
Set the mirror address
npm config set registry https://registry.npm.taobao.org
In the project
npm build
Enter the generated plug-in Directory The name is in package.json It's configured inside smallbutton
cd smallbutton
npm publish
Be careful : No sign in , First Toggle mirror , Re release
npm config set registry=http:// Server address :8081/repository/npm-internal/
npm login -registry=http:// Server address :8081/repository/npm-internal/
enter one user name 、 password 、 mailbox
Successful release !
Enter the project that needs plug-ins ,package.json Join in
"smalllbutton":'^1.0.1'
npm i smallbutton
Note that the plug-in file name cannot be capitalized , Plug in name must be lowercase ,function The function name of the component can be capitalized
import {SmallButton} from 'smallbutton'
<SmallButton/>
版权声明
本文为[Nianya]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230605115533.html
边栏推荐
- 集简云 x 飞书深诺,助力企业运营部实现自动化办公
- SSM整合之pom.xml
- 你和42W奖金池,就差一次“长沙银行杯”腾讯云启创新大赛!
- Cross carbon market and Web3 to achieve renewable transformation
- [point cloud series] foldingnet: point cloud auto encoder via deep grid deformation
- Bottomsheetdialogfragment + viewpager + fragment + recyclerview sliding problem
- Aicoco AI frontier promotion (4.23)
- 切线空间(tangent space)
- QT calling external program
- Common interview questions and detailed analysis of the latest Android developers in 2020
猜你喜欢
X509 parsing
为什么从事云原生开发需要学习容器技术
MySQL5.5安装教程
普通大学生如何拿到大厂offer?敖丙教你一招致胜!
Lenovo Savior y9000x 2020
Vscode tips
在 pytorch 中加载和使用图像分类数据集 Fashion-MNIST
SAP ui5 application development tutorial 72 - trial version of animation effect setting of SAP ui5 page routing
交叉碳市场和 Web3 以实现再生变革
[quick platoon] 215 The kth largest element in the array
随机推荐
Ding ~ your scholarship has arrived! C certified enterprise scholarship list released
Use of GDB
CSDN College Club "famous teacher college trip" -- Hunan Normal University Station
TIA博途中基於高速計數器觸發中斷OB40實現定點加工動作的具體方法示例
EMMC / SD learning notes
Logstash数据处理服务的输入插件Input常见类型以及基本使用
NPM err code 500 solution
[point cloud series] deepmapping: unsupervised map estimation from multiple point clouds
鸿蒙系统是抄袭?还是未来?3分钟听完就懂的专业讲解
[point cloud series] learning representations and generative models for 3D point clouds
[barycentric coordinate interpolation, perspective correction interpolation] principle and usage opinions
How to build a line of code with M4 qprotex
Remove the status bar
Zero copy technology
"Xiangjian" Technology Salon | programmer & CSDN's advanced road
Filter and listener of three web components
The difference between string and character array in C language
顶级元宇宙游戏Plato Farm,近期动作不断利好频频
TIA博途中基于高速计数器触发中断OB40实现定点加工动作的具体方法示例
在 pytorch 中加载和使用图像分类数据集 Fashion-MNIST