0.1.18 • Published 3 years ago

@yichenlei/vue-component v0.1.18

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

vue-component

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Lints and fixes files

npm run lint

Customize configuration

See Configuration Reference.

发布参考

https://www.cnblogs.com/coolestcode/p/13470299.html

发布命令

// 登录,按照提示输入 yichenlei/yichen_520/155172334@qq.com
npm login
// 检查是否登录成功
npm whoami

// 设置npm镜像
npm config set registry https://registry.npmjs.org
// 打包编译
npm run build-bundle
// 发布到npm
npm publish --access public
// 改回淘宝镜像
npm config set registry https://registry.npm.taobao.org

安装引用

安装

# 初次安装

npm uninstall @yichenlei/vue-component
npm install @yichenlei/vue-component  --save --registry=https://registry.npm.taobao.org

 --save --registry=https://registry.npm.taobao.org

# 升级安装(先修改package.json中的版本号)
npm install

引用,在src/main.js中引用

import VueComponent from "@yichenlei/vue-component"
Vue.use(VueComponent)

使用

# 在vue文件中直接使用组件,无需再次引入
<life-cycle-components></life-cycle-components>
0.1.18

3 years ago

0.1.10

3 years ago

0.1.11

3 years ago

0.1.12

3 years ago

0.1.13

3 years ago

0.1.14

3 years ago

0.1.15

3 years ago

0.1.16

3 years ago

0.1.8

3 years ago

0.1.17

3 years ago

0.1.9

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago