当前位置:网站首页>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
边栏推荐
- 100000 college students have become ape powder. What are you waiting for?
- 解决tp6下载报错Could not find package topthink/think with stability stable.
- [point cloud series] neural opportunity point cloud (NOPC)
- SPI NAND flash summary
- QT调用外部程序
- Imx6ull QEMU bare metal tutorial 1: GPIO, iomux, I2C
- Machine learning -- PCA and LDA
- SHA512 / 384 principle and C language implementation (with source code)
- vscode小技巧
- 浅谈js正则之test方法bug篇
猜你喜欢
Plato farm, a top-level metauniverse game, has made frequent positive moves recently
[point cloud series] full revolutionary geometric features
零拷贝技术
SAP ui5 application development tutorial 72 - trial version of animation effect setting of SAP ui5 page routing
vscode小技巧
Riscv MMU overview
TERSUS笔记员工信息516-Mysql查询(2个字段的时间段唯一性判断)
kettle庖丁解牛第16篇之输入组件周边讲解
You and the 42W bonus pool are one short of the "Changsha bank Cup" Tencent yunqi innovation competition!
[point cloud series] pointfilter: point cloud filtering via encoder decoder modeling
随机推荐
顶级元宇宙游戏Plato Farm,近期动作不断利好频频
What do the raddr and rport in webrtc ice candidate mean?
切线空间(tangent space)
[point cloud series] relationship based point cloud completion
Esp32 vhci architecture sets scan mode for traditional Bluetooth, so that the device can be searched
【行走的笔记】
9419 page analysis of the latest first-line Internet Android interview questions
FatFs FAT32 learning notes
[official announcement] Changsha software talent training base was established!
Bottomsheetdialogfragment + viewpager + fragment + recyclerview sliding problem
集简云 x 飞书深诺,助力企业运营部实现自动化办公
NPM err code 500 solution
Imx6ull QEMU bare metal tutorial 2: usdhc SD card
Data warehouse - what is OLAP
The interviewer dug a hole for me: what's the use of "/ /" in URI?
Summary of request and response and their ServletContext
LeetCode_ DFS_ Medium_ 695. Maximum area of the island
[tensorflow] sharing mechanism
Armv8m (cortex M33) MPU actual combat
Plato farm, a top-level metauniverse game, has made frequent positive moves recently