Skip to content

Commit

Permalink
feat: 重置版本号
Browse files Browse the repository at this point in the history
  • Loading branch information
liu committed May 25, 2023
1 parent 5ec0f43 commit 55def4a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 199 deletions.
190 changes: 0 additions & 190 deletions CHANGELOG.md

This file was deleted.

16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @cennavi-fe/common-util
# @ni-web-infra/common-util
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2FNI-Web-Infra-Team%2Fcommon-util.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2FNI-Web-Infra-Team%2Fcommon-util?ref=badge_shield)


Expand All @@ -7,25 +7,25 @@
## 如何使用

```shell
$ npm install -S @cennavi-fe/common-util
$ npm install -S @ni-web-infra/common-util
```

```js
// 全量引入
import cnUtils from "@cennavi-fe/common-util";
import cnUtils from "@ni-web-infra/common-util";
cnUtils.getBrowserInfo();

// 按需引入
import { getBrowserInfo } from "@cennavi-fe/common-util";
import { getBrowserInfo } from "@ni-web-infra/common-util";
getBrowserInfo();

import getBrowserInfo from "@cennavi-fe/common-util/dist/browser";
import getBrowserInfo from "@ni-web-infra/common-util/dist/browser";
getBrowserInfo();
```

```html
<script>
src="https://unpkg.com/@cennavi-fe/common-util/dist/index.js">
src="https://unpkg.com/@ni-web-infra/common-util/dist/index.js">
</script>

<script>
Expand All @@ -35,7 +35,7 @@ getBrowserInfo();

## API

[API 文档](https://unpkg.com/@cennavi-fe/common-util/dist/docs/index.html)
[API 文档](https://unpkg.com/@ni-web-infra/common-util/dist/docs/index.html)

## 如何开发

Expand Down Expand Up @@ -70,7 +70,7 @@ $ npm publish
// 在vue.config.js文件中 transpileDependencies 参数增加需要显示转换的模块名称

// Babel 显式转译列表
transpileDependencies: ['/@cennavi-fe/common-util/'],
transpileDependencies: ['/@ni-web-infra/common-util/'],
```

## License
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ni-web-infra/common-util",
"version": "1.2.0",
"version": "0.0.0",
"description": "NI util function library",
"packageManager": "yarn@1.22.19",
"main": "dist/index.js",
Expand Down

0 comments on commit 55def4a

Please sign in to comment.