# vuecom-demo

> 测试组件

Latest version **0.2.7** (published 2023-03-30) · ISC license · 0 weekly downloads

## Install

```sh
npm install vuecom-demo
pnpm add vuecom-demo
yarn add vuecom-demo
bun add vuecom-demo
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; large bundle; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.7 |
| Published | 2023-03-30 |
| First published | 2023-03-28 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 28.8 MB |
| Known vulnerabilities | 0 (+2 in 2 direct dependencies) |
| Install scripts | no |
| Author | liqifan |
| Maintainers | liqifan |
| Keywords | vuecom-demo |

## Links

- npm: https://www.npmjs.com/package/vuecom-demo
- npm.io page: https://npm.io/package/vuecom-demo

## Dependencies (5)

- [vue](https://npm.io/package/vue.md) ^2.6.14
- [axios](https://npm.io/package/axios.md) ^1.3.4
- [eslint](https://npm.io/package/eslint.md) ^8.36.0
- [core-js](https://npm.io/package/core-js.md) ^3.8.3
- [echarts](https://npm.io/package/echarts.md) ^5.4.2

## Recent versions

- 0.2.7 (latest) — 2023-03-30
- 0.2.6 — 2023-03-29
- 0.2.5 — 2023-03-29
- 0.2.4 — 2023-03-29
- 0.2.3 — 2023-03-29
- 0.2.2 — 2023-03-29
- 0.2.1 — 2023-03-29
- 0.2.0 — 2023-03-29
- 0.1.5 — 2023-03-28
- 0.1.4 — 2023-03-28
- 0.1.3 — 2023-03-28
- 0.1.2 — 2023-03-28
- 0.1.1 — 2023-03-28
- 0.1.0 — 2023-03-28

## README

# vuecom-demo

## 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://cli.vuejs.org/config/).



## 创建自定义npm包步骤
```
1.切换npm源

#查看当前源地址
npm config get registry
#切换源地址命令如下
npm config set registry=http://10.18.88.108:4873/

2.添加用户

#添加用户
npm adduser 
#登录
npm login
#查看当前登录用户
npm whoami

3.修改package.json
```
``` javascript
	"name": "test-comp",
	"version": "0.1.1",
	"private": false,
	"description": "测试组件",
	"main": "lib/test-comp.umd.min.js",
	"keywords": ["test-comp"],
	"author": { "name": "hahha" },
	"scripts": {
		"serve": "vue-cli-service serve",
		"build": "vue-cli-service build",
		"lib": "vue-cli-service build --dest lib packages/index.js"
	 }

```
```
4.添加packages文件夹
```
```javascript
	//添加index.js
	
	// 其中引用组件
	import list from '../src/components/list.vue'
	
	const components = [
	    list
	]
	// 定义 install 方法，接收 Vue 作为参数。如果使用 use 注册插件，则所有的组件都将被注册
	const install = Vue => {
	    // 判断是否可以安装
	    if (install.installed) return
	        // 遍历注册全局组件
	    components.map(component => Vue.component(component.name, component))
	}
	// 判断是否是直接引入文件
	if (typeof window !== 'undefined' && window.Vue) {
	    install(window.Vue)
	}
	export default {
	    // 导出的对象必须具有 install，才能被 Vue.use() 方法安装
	    install,
	    // 以下是具体的组件列表
	    list
	}
```
```
4.打包发布
npm run lib
npm publish
```

---
_Source: https://npm.io/package/vuecom-demo · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
