当前位置:网站首页>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
边栏推荐
- 榜样专访 | 孙光浩:高校俱乐部伴我成长并创业
- Ai21 labs | standing on the shoulders of giant frozen language models
- [point cloud series] unsupervised multi task feature learning on point clouds
- MySQL5.5安装教程
- 十万大学生都已成为猿粉,你还在等什么?
- Imx6ull QEMU bare metal tutorial 2: usdhc SD card
- 缘结西安 | CSDN与西安思源学院签约,全面开启IT人才培养新篇章
- Analysis of the latest Android high frequency interview questions in 2020 (BAT TMD JD Xiaomi)
- You and the 42W bonus pool are one short of the "Changsha bank Cup" Tencent yunqi innovation competition!
- [point cloud series] learning representations and generative models for 3D point clouds
猜你喜欢
MySQL 8.0.11下载、安装和使用可视化工具连接教程
LeetCode_DFS_中等_695.岛屿的最大面积
[indicators] precision, recall
“湘见”技术沙龙 | 程序员&CSDN的进阶之路
【官宣】长沙软件人才实训基地成立!
MySQL5. 5 installation tutorial
Common types and basic usage of input plug-in of logstash data processing service
web三大组件之Servlet
Esp32 vhci architecture sets scan mode for traditional Bluetooth, so that the device can be searched
Campus takeout system - "nongzhibang" wechat native cloud development applet
随机推荐
[point cloud series] pointfilter: point cloud filtering via encoder decoder modeling
XML
超40W奖金池等你来战!第二届“长沙银行杯”腾讯云启创新大赛火热来袭!
Explanation of input components in Chapter 16
[barycentric coordinate interpolation, perspective correction interpolation] principle and usage opinions
[dynamic programming] 221 Largest Square
榜样专访 | 孙光浩:高校俱乐部伴我成长并创业
Stack protector under armcc / GCC
Ding ~ your scholarship has arrived! C certified enterprise scholarship list released
Comparison and summary of applicable scenarios of Clickhouse and MySQL database
NPM err code 500 solution
RTOS mainstream assessment
GDB的使用
鸿蒙系统是抄袭?还是未来?3分钟听完就懂的专业讲解
Exemple de méthode de réalisation de l'action d'usinage à point fixe basée sur l'interruption de déclenchement du compteur à grande vitesse ob40 pendant le voyage de tia Expo
Feature Engineering of interview summary
Summary of request and response and their ServletContext
Ai21 labs | standing on the shoulders of giant frozen language models
【快排】215. 数组中的第K个最大元素
[multi screen interaction] realize dual multi screen display II: startactivity mode