# kongmq-demo

> > [手把手教你搭建一个基于 react+TS+antd 的组件库（1）](https://github.com/kongmengqian/blog/blob/master/articles/%E6%8A%80%E6%9C%AF%E7%B1%BB/npm/%E6%89%8B%E6%8A%8A%E6%89%8B%E6%95%99%E4%BD%A0%E6%90%AD%E5%BB%BA%E4%B8%80%E4%B8%AA%E5%9F%BA%E4%BA%8Ereact+TS+antd%E7%9A%84%E7%BB

Latest version **0.0.6** (published 2020-07-20) · ISC license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.6 |
| Published | 2020-07-20 |
| First published | 2020-07-20 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 8 |
| Unpacked size | 263.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | kong0615 |

## Links

- npm: https://www.npmjs.com/package/kongmq-demo
- Repository: https://github.com/kongmengqian/npm-my-libs
- Homepage: https://github.com/kongmengqian/npm-my-libs#readme
- Issues: https://github.com/kongmengqian/npm-my-libs/issues
- npm.io page: https://npm.io/package/kongmq-demo

## Dependencies (8)

- [antd](https://npm.io/package/antd.md) ^4.4.2
- [react](https://npm.io/package/react.md) ^16.13.1
- [react-dom](https://npm.io/package/react-dom.md) ^16.13.1
- [typescript](https://npm.io/package/typescript.md) ^3.9.7
- [@types/react](https://npm.io/package/@types/react.md) ^16.9.43
- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.10.5
- [@babel/polyfill](https://npm.io/package/@babel/polyfill.md) ^7.10.4
- [@types/react-dom](https://npm.io/package/@types/react-dom.md) ^16.9.8

## Recent versions

- 0.0.6 (latest) — 2020-07-20
- 0.0.5 — 2020-07-20
- 0.0.4 — 2020-07-20
- 0.0.3 — 2020-07-20
- 0.0.1 — 2020-07-20

## README

# package 示例

> [手把手教你搭建一个基于 react+TS+antd 的组件库（1）](https://github.com/kongmengqian/blog/blob/master/articles/%E6%8A%80%E6%9C%AF%E7%B1%BB/npm/%E6%89%8B%E6%8A%8A%E6%89%8B%E6%95%99%E4%BD%A0%E6%90%AD%E5%BB%BA%E4%B8%80%E4%B8%AA%E5%9F%BA%E4%BA%8Ereact+TS+antd%E7%9A%84%E7%BB%84%E4%BB%B6%E5%BA%93%EF%BC%881%EF%BC%89.md)

> [手把手教你搭建一个基于 react+TS+antd 的组件库（2）](<https://github.com/kongmengqian/blog/blob/master/articles/%E6%8A%80%E6%9C%AF%E7%B1%BB/npm/%E6%89%8B%E6%8A%8A%E6%89%8B%E6%95%99%E4%BD%A0%E6%90%AD%E5%BB%BA%E4%B8%80%E4%B8%AA%E5%9F%BA%E4%BA%8Ereact%2BTS%2Bantd%E7%9A%84%E7%BB%84%E4%BB%B6%E5%BA%93(2).md>)

## 概述

1. package 模板
2. 技术栈：react+TS+antd
3. 打包编译工具：webpack
4. 主要用于 npm 包搭建、发布测试和学习，没有实用价值

## 使用

`npm i kongmq-demo`

```js
import App from "kongmq-demo";

const Page = () => {
  return <App />;
};

ReactDOM.render(<Page />, document.getElementById("root"));
```

## 开发

初始化

`npm install`

启动项目

`npm run start`

编译项目

`npm run dev`

`npm run build`

## 发布项目

1. 更新 package.json 中的版本号
2. git 代码提交（add -> commit -> push）
3. 查看 npm 源，是官方源，则跳过第三步

`npm config get registry`

3. 切换到 npm 官方源

`npm config set registry=http://registry.npmjs.org`

4. 发布

`npm publish`

> 1. 如果没有登录的话，要 `npm login`登录一下。
> 2. 发布前要 `npm run build`打包编译一下，该项目在 package.json 添加了 `"prepublish": "yarn run build"`，执行`npm publish`的时候会去执行编译命令，所以不需要手动去`build`。

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