Skip to content

Commit

Permalink
chore: 升级版本号、去除无用(我们用不到)的子包
Browse files Browse the repository at this point in the history
  • Loading branch information
penjj committed Nov 1, 2024
1 parent 6875843 commit f5f4a2a
Show file tree
Hide file tree
Showing 969 changed files with 1,055 additions and 24,943 deletions.
12 changes: 6 additions & 6 deletions .github/ISSUE_TEMPLATE/bug_report_template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ body:
这个表单仅用于错误报告。对于在使用中遇到的问题,请优先使用以下方式寻找解决方案:
- 查看组件文档 [@nutui/nutui](https://nutui.jd.com/h5/vue/4x/#/zh-CN/guide/intro) [@nutui/nutui-taro](https://nutui.jd.com/taro/vue/4x/#/zh-CN/guide/intro)
- 查看组件文档 [@hg/nutui](https://nutui.jd.com/h5/vue/4x/#/zh-CN/guide/intro) [@hg/nutui-taro](https://nutui.jd.com/taro/vue/4x/#/zh-CN/guide/intro)
- 在 [Issue](https://github.com/jdf2e/nutui/issues) 列表中查找解决方案
- 查看 [常见问题 QA](https://github.com/jdf2e/nutui/issues/2461)
Expand All @@ -21,8 +21,8 @@ body:
multiple: true
description: 选择使用的 NutUI NPM 包名
options:
- '@nutui/nutui'
- '@nutui/nutui-taro'
- '@hg/nutui'
- '@hg/nutui-taro'
validations:
required: true

Expand Down Expand Up @@ -66,7 +66,7 @@ body:
2、你也可以通过 [CodeSandbox](https://codesandbox.io/s/nutui4-vite-demo-2fw7xh?file=/src/App.vue) 创建一个可复现实例,它支持选择特定版本的 NutUI。
3、对于 `@nutui/nutui-taro` 中的问题,建议提供代码仓库。
3、对于 `@hg/nutui-taro` 中的问题,建议提供代码仓库。
请不要乱填一个链接,那只会让你的 issue 被直接关闭。
validations:
Expand Down Expand Up @@ -102,9 +102,9 @@ body:
attributes:
label: 环境信息
description: |
对于 `@nutui/nutui-taro`,你可以在项目根目录执行 `taro info`,并将结果粘贴在这里。
对于 `@hg/nutui-taro`,你可以在项目根目录执行 `taro info`,并将结果粘贴在这里。
对于 `@nutui/nutui`,你可以执行 `npx envinfo --system --npmPackages @nutui/nutui --binaries --browsers`。
对于 `@hg/nutui`,你可以执行 `npx envinfo --system --npmPackages @hg/nutui --binaries --browsers`。
- type: textarea
id: extra
Expand Down
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/feature_request_template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ body:
这个表单仅用于新功能请求。如果你有使用上的问题,或者不确定它是否是一个 bug,请先:
- 查看组件文档 [@nutui/nutui](https://nutui.jd.com/h5/vue/4x/#/zh-CN/guide/intro) [@nutui/nutui-taro](https://nutui.jd.com/taro/vue/4x/#/zh-CN/guide/intro)
- 查看组件文档 [@hg/nutui](https://nutui.jd.com/h5/vue/4x/#/zh-CN/guide/intro) [@hg/nutui-taro](https://nutui.jd.com/taro/vue/4x/#/zh-CN/guide/intro)
- 在 [Issue](https://github.com/jdf2e/nutui/issues) 列表中查找解决方案
- 查看 [常见问题 QA](https://github.com/jdf2e/nutui/issues/2461)
Expand All @@ -21,8 +21,8 @@ body:
multiple: true
description: 选择使用的 NutUI NPM 包名
options:
- '@nutui/nutui'
- '@nutui/nutui-taro'
- '@hg/nutui'
- '@hg/nutui-taro'
validations:
required: true

Expand Down
4 changes: 2 additions & 2 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ https://github.com/jdf2e/nutui/issues/1671

**这个 PR 涉及以下平台:**

- [ ] NutUI H5 @nutui/nutui
- [ ] NutUI Taro @nutui/nutui-taro
- [ ] NutUI H5 @hg/nutui
- [ ] NutUI Taro @hg/nutui-taro

**这个 PR 是否已自测:**

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/issue-reply.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ jobs:
actions: 'create-comment'
issue-number: ${{ github.event.issue.number }}
body: |
你好 @${{ github.event.issue.user.login }}, 我们需要你提供一个最小重现实例以便于我们帮你排查问题。你可以提供一个基于 Taro NutUI4.0 模板项目的 GitHub 仓库链接(`@nutui/nutui-taro`),也可以通过 [CodeSandbox](https://codesandbox.io/s/nutui4-vite-demo-2fw7xh?file=/src/App.vue) 创建一个在线实例(`@nutui/nutui`)。请确保选择准确的版本。
你好 @${{ github.event.issue.user.login }}, 我们需要你提供一个最小重现实例以便于我们帮你排查问题。你可以提供一个基于 Taro NutUI4.0 模板项目的 GitHub 仓库链接(`@hg/nutui-taro`),也可以通过 [CodeSandbox](https://codesandbox.io/s/nutui4-vite-demo-2fw7xh?file=/src/App.vue) 创建一个在线实例(`@hg/nutui`)。请确保选择准确的版本。
4 changes: 2 additions & 2 deletions .github/workflows/sync-pkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ jobs:
- name: Install dependencies
run: pnpm install

- name: Build @nutui/nutui
- name: Build @hg/nutui
run: pnpm build

- name: Build @nutui/nutui-taro
- name: Build @hg/nutui-taro
run: pnpm build:taro

- name: Sync
Expand Down
14 changes: 7 additions & 7 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pnpm i

## 3、项目开发环境

#### A、启动文档与 H5(@nutui/nutui) demo
#### A、启动文档与 H5(@hg/nutui) demo

```bash
pnpm dev
Expand All @@ -31,7 +31,7 @@ pnpm dev
- 英文文档: `doc.en-US.md`
- demo 源码: `demo.vue` 或者 `demo/index.vue`

#### B、运行 Taro(@nutui/nutui-taro) demo
#### B、运行 Taro(@hg/nutui-taro) demo

```bash
# Taro H5
Expand All @@ -55,19 +55,19 @@ pnpm dev:taro tt
## 4、项目构建

```bash
# 构建 @nutui/nutui,目标产物在 `publish/nutui` 目录下
# 构建 @hg/nutui,目标产物在 `publish/nutui` 目录下
pnpm build

# 构建 @nutui/nutui-taro,目标产物在 `publish/nutui-taro` 目录下
# 构建 @hg/nutui-taro,目标产物在 `publish/nutui-taro` 目录下
pnpm build:taro

# 构建 @nutui/nutui 网站文档右侧的 Demo 示例
# 构建 @hg/nutui 网站文档右侧的 Demo 示例
pnpm build:demo

# 构建 @nutui/nutui-taro 网站文档右侧的 Demo 示例
# 构建 @hg/nutui-taro 网站文档右侧的 Demo 示例
pnpm build:h5

# 构建 @nutui/nutui-taro 小程序 Demo 示例
# 构建 @hg/nutui-taro 小程序 Demo 示例
pnpm build:weapp
```

Expand Down
26 changes: 13 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
<img src="https://img.shields.io/codecov/c/github/jdf2e/nutui" alt="coverage"/>
</a>
<a href="https://github.com/jdf2e/nutui/blob/v4/LICENSE">
<img src="https://img.shields.io/npm/l/@nutui/nutui.svg" alt="license"/>
<img src="https://img.shields.io/npm/l/@hg/nutui.svg" alt="license"/>
</a>
<a href="https://www.npmjs.com/package/@nutui/nutui">
<img src="https://img.shields.io/npm/v/@nutui/nutui.svg?style=flat-square">
<a href="https://www.npmjs.com/package/@hg/nutui">
<img src="https://img.shields.io/npm/v/@hg/nutui.svg?style=flat-square">
</a>
<a href="https://www.npmjs.com/package/@nutui/nutui">
<img src="https://img.shields.io/npm/dt/@nutui/nutui.svg?style=flat-square">
<a href="https://www.npmjs.com/package/@hg/nutui">
<img src="https://img.shields.io/npm/dt/@hg/nutui.svg?style=flat-square">
</a>
</p>
<p align="center">
Expand All @@ -38,8 +38,8 @@
<a href="https://github.com/jdf2e/nutui/releases">
<img src="https://img.shields.io/github/release-date/jdf2e/nutui" alt="GitHub Release Date">
</a>
<a href="https://www.jsdelivr.com/package/npm/@nutui/nutui">
<img src="https://data.jsdelivr.com/v1/package/npm/@nutui/nutui/badge" alt="jsdelivr">
<a href="https://www.jsdelivr.com/package/npm/@hg/nutui">
<img src="https://data.jsdelivr.com/v1/package/npm/@hg/nutui/badge" alt="jsdelivr">
</a>
</p>

Expand Down Expand Up @@ -77,9 +77,9 @@

官网:[nutui.jd.com](https://nutui.jd.com)

[@nutui/nutui](https://nutui.jd.com/h5/vue/4x/#/zh-CN/guide/intro):适用于移动端 H5 页面开发
[@hg/nutui](https://nutui.jd.com/h5/vue/4x/#/zh-CN/guide/intro):适用于移动端 H5 页面开发

[@nutui/nutui-taro](https://nutui.jd.com/taro/vue/4x/#/zh-CN/guide/intro):支持开发 Taro 多端小程序(微信、支付宝、京东等小程序)和 Taro-H5 项目
[@hg/nutui-taro](https://nutui.jd.com/taro/vue/4x/#/zh-CN/guide/intro):支持开发 Taro 多端小程序(微信、支付宝、京东等小程序)和 Taro-H5 项目

## 链接

Expand All @@ -89,10 +89,10 @@

| 项目 | 描述 | 版本 |
| --- | --- | --- |
| [@nutui/nutui](https://github.com/jdf2e/nutui) | NutUI 移动端 H5 版本 | ![nutui](https://img.shields.io/npm/v/@nutui/nutui.svg?label=%20) |
| [@nutui/nutui-taro](https://github.com/jdf2e/nutui) | NutUI Taro 多端版本 | ![nutui](https://img.shields.io/npm/v/@nutui/nutui-taro.svg?label=%20) |
| [@nutui/icons-vue](https://github.com/jdf2e/nutui-icons) | `@nutui/nutui` 使用的图标库 | ![nutui](https://img.shields.io/npm/v/@nutui/icons-vue.svg?label=%20) |
| [@nutui/icons-vue-taro](https://github.com/jdf2e/nutui-icons) | `@nutui/nutui-taro` 使用的图标库 | ![nutui](https://img.shields.io/npm/v/@nutui/icons-vue-taro.svg?label=%20) |
| [@hg/nutui](https://github.com/jdf2e/nutui) | NutUI 移动端 H5 版本 | ![nutui](https://img.shields.io/npm/v/@hg/nutui.svg?label=%20) |
| [@hg/nutui-taro](https://github.com/jdf2e/nutui) | NutUI Taro 多端版本 | ![nutui](https://img.shields.io/npm/v/@hg/nutui-taro.svg?label=%20) |
| [@nutui/icons-vue](https://github.com/jdf2e/nutui-icons) | `@hg/nutui` 使用的图标库 | ![nutui](https://img.shields.io/npm/v/@nutui/icons-vue.svg?label=%20) |
| [@nutui/icons-vue-taro](https://github.com/jdf2e/nutui-icons) | `@hg/nutui-taro` 使用的图标库 | ![nutui](https://img.shields.io/npm/v/@nutui/icons-vue-taro.svg?label=%20) |
| [@nutui/touch-emulator](packages/nutui-touch-emulator) | 在桌面端使用 NutUI 的辅助库 | ![nutui](https://img.shields.io/npm/v/@nutui/touch-emulator.svg?label=%20) |
| [@nutui/auto-import-resolver](packages/nutui-auto-import-resolver) | `unplugin-auto-import` 插件的 resolver 配置 | ![nutui](https://img.shields.io/npm/v/@nutui/auto-import-resolver.svg?label=%20) |
| [@nutui/playground](packages/nutui-playground) | NutUI 在线 Playground | - |
Expand Down
26 changes: 13 additions & 13 deletions README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
<img src="https://img.shields.io/codecov/c/github/jdf2e/nutui" alt="coverage"/>
</a>
<a href="https://github.com/jdf2e/nutui/blob/v4/LICENSE">
<img src="https://img.shields.io/npm/l/@nutui/nutui.svg" alt="license"/>
<img src="https://img.shields.io/npm/l/@hg/nutui.svg" alt="license"/>
</a>
<a href="https://www.npmjs.com/package/@nutui/nutui">
<img src="https://img.shields.io/npm/v/@nutui/nutui.svg?style=flat-square">
<a href="https://www.npmjs.com/package/@hg/nutui">
<img src="https://img.shields.io/npm/v/@hg/nutui.svg?style=flat-square">
</a>
<a href="https://www.npmjs.com/package/@nutui/nutui">
<img src="https://img.shields.io/npm/dt/@nutui/nutui.svg?style=flat-square">
<a href="https://www.npmjs.com/package/@hg/nutui">
<img src="https://img.shields.io/npm/dt/@hg/nutui.svg?style=flat-square">
</a>
</p>
<p align="center">
Expand All @@ -38,8 +38,8 @@
<a href="https://github.com/jdf2e/nutui/releases">
<img src="https://img.shields.io/github/release-date/jdf2e/nutui" alt="GitHub Release Date">
</a>
<a href="https://www.jsdelivr.com/package/npm/@nutui/nutui">
<img src="https://data.jsdelivr.com/v1/package/npm/@nutui/nutui/badge" alt="jsdelivr">
<a href="https://www.jsdelivr.com/package/npm/@hg/nutui">
<img src="https://data.jsdelivr.com/v1/package/npm/@hg/nutui/badge" alt="jsdelivr">
</a>
</p>

Expand Down Expand Up @@ -77,20 +77,20 @@

Site: [nutui.jd.com](https://nutui.jd.com)

[@nutui/nutui](https://nutui.jd.com/h5/vue/4x/#/zh-CN/guide/intro): Mobile H5 Components
[@hg/nutui](https://nutui.jd.com/h5/vue/4x/#/zh-CN/guide/intro): Mobile H5 Components

[@nutui/nutui-taro](https://nutui.jd.com/taro/vue/4x/#/zh-CN/guide/intro): Taro Mini Programs(weapp, alipay, jd...) & Taro-H5
[@hg/nutui-taro](https://nutui.jd.com/taro/vue/4x/#/zh-CN/guide/intro): Taro Mini Programs(weapp, alipay, jd...) & Taro-H5

## Links

### Official Ecosystem

| Project | Description | Version |
| --- | --- | --- |
| [@nutui/nutui](https://github.com/jdf2e/nutui) | NutUI H5 | ![nutui](https://img.shields.io/npm/v/@nutui/nutui.svg?label=%20) |
| [@nutui/nutui-taro](https://github.com/jdf2e/nutui) | NutUI Taro | ![nutui](https://img.shields.io/npm/v/@nutui/nutui-taro.svg?label=%20) |
| [@nutui/icons-vue](https://github.com/jdf2e/nutui-icons) | icons of `@nutui/nutui` | ![nutui](https://img.shields.io/npm/v/@nutui/icons-vue.svg?label=%20) |
| [@nutui/icons-vue-taro](https://github.com/jdf2e/nutui-icons) | icons of `@nutui/nutui-taro` | ![nutui](https://img.shields.io/npm/v/@nutui/icons-vue-taro.svg?label=%20) |
| [@hg/nutui](https://github.com/jdf2e/nutui) | NutUI H5 | ![nutui](https://img.shields.io/npm/v/@hg/nutui.svg?label=%20) |
| [@hg/nutui-taro](https://github.com/jdf2e/nutui) | NutUI Taro | ![nutui](https://img.shields.io/npm/v/@hg/nutui-taro.svg?label=%20) |
| [@nutui/icons-vue](https://github.com/jdf2e/nutui-icons) | icons of `@hg/nutui` | ![nutui](https://img.shields.io/npm/v/@nutui/icons-vue.svg?label=%20) |
| [@nutui/icons-vue-taro](https://github.com/jdf2e/nutui-icons) | icons of `@hg/nutui-taro` | ![nutui](https://img.shields.io/npm/v/@nutui/icons-vue-taro.svg?label=%20) |
| [@nutui/touch-emulator](packages/nutui-touch-emulator) | Using NutUI in desktop browsers | ![nutui](https://img.shields.io/npm/v/@nutui/touch-emulator.svg?label=%20) |
| [@nutui/auto-import-resolver](packages/nutui-auto-import-resolver) | resolver of `unplugin-auto-import` | ![nutui](https://img.shields.io/npm/v/@nutui/auto-import-resolver.svg?label=%20) |
| [@nutui/playground](packages/nutui-playground) | NutUI Playground | - |
Expand Down
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nutui/nutui",
"version": "4.3.13",
"name": "@hg/nutui",
"version": "4.3.15",
"description": "京东风格的轻量级移动端 Vue2、Vue3 组件库(支持小程序开发)",
"main": "dist/nutui.umd.js",
"module": "dist/nutui.es.js",
Expand Down Expand Up @@ -83,7 +83,7 @@
"@commitlint/config-conventional": "^19.2.2",
"@eslint/config-inspector": "^0.5.1",
"@eslint/eslintrc": "^3.1.0",
"@nutui/eslint-config": "workspace:*",
"@hg/eslint-config": "workspace:*",
"@nutui/vite-plugins": "workspace:*",
"@tarojs/taro": "3.6.34",
"@types/node": "^20.14.9",
Expand Down Expand Up @@ -130,5 +130,6 @@
},
"resolutions": {
"@typescript-eslint/utils": "^8.0.0-alpha.16"
}
}
},
"packageManager": "[email protected]+sha512.4abf725084d7bcbafbd728bfc7bee61f2f791f977fd87542b3579dcb23504d170d46337945e4c66485cd12d588a0c0e570ed9c477e7ccdd8507cf05f3f92eaca"
}
6 changes: 3 additions & 3 deletions packages/nutui-auto-import-resolver/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export default defineConfig({
css: {
preprocessorOptions: {
scss: {
additionalData: `@import "@nutui/nutui/dist/styles/variables.scss";`
additionalData: `@import "@hg/nutui/dist/styles/variables.scss";`
}
}
}
Expand All @@ -123,7 +123,7 @@ module.exports = {
css: {
loaderOptions: {
scss: {
additionalData: `@import "@nutui/nutui/dist/styles/variables.scss";`
additionalData: `@import "@hg/nutui/dist/styles/variables.scss";`
}
}
}
Expand Down Expand Up @@ -154,7 +154,7 @@ module.exports = {
// 配置全局样式变量
loader: 'sass-loader',
options: {
additionalData: `@import "@nutui/nutui/dist/styles/variables.scss";`
additionalData: `@import "@hg/nutui/dist/styles/variables.scss";`
}
}
]
Expand Down
6 changes: 3 additions & 3 deletions packages/nutui-auto-import-resolver/README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export default defineConfig({
css: {
preprocessorOptions: {
scss: {
additionalData: `@import "@nutui/nutui/dist/styles/variables.scss";`
additionalData: `@import "@hg/nutui/dist/styles/variables.scss";`
}
}
}
Expand All @@ -123,7 +123,7 @@ module.exports = {
css: {
loaderOptions: {
scss: {
additionalData: `@import "@nutui/nutui/dist/styles/variables.scss";`
additionalData: `@import "@hg/nutui/dist/styles/variables.scss";`
}
}
}
Expand Down Expand Up @@ -154,7 +154,7 @@ module.exports = {
// 配置全局样式变量
loader: 'sass-loader',
options: {
additionalData: `@import "@nutui/nutui/dist/styles/variables.scss";`
additionalData: `@import "@hg/nutui/dist/styles/variables.scss";`
}
}
]
Expand Down
8 changes: 2 additions & 6 deletions packages/nutui-auto-import-resolver/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nutui/auto-import-resolver",
"version": "1.0.0",
"name": "@hg/auto-import-resolver",
"version": "1.0.1",
"description": "nutui auto import resolver based on unplugin-vue-components",
"keywords": [
"nutui",
Expand Down Expand Up @@ -29,10 +29,6 @@
"build:types": "tsc -p ./tsconfig.json --emitDeclarationOnly",
"build": "pnpm clean && vite build && pnpm build:types"
},
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/"
},
"repository": {
"type": "git",
"url": "https://github.com/jdf2e/nutui.git",
Expand Down
2 changes: 1 addition & 1 deletion packages/nutui-auto-import-resolver/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const nutFunctions = ['showToast', 'showNotify', 'showDialog', 'showImagePreview
function getNutResolved(name: string, options: NutUIResolverOptions): ComponentResolveResult {
const { importStyle = true, taro = false, autoImport = false } = options

const packageName = taro ? '@nutui/nutui-taro' : '@nutui/nutui'
const packageName = taro ? '@hg/nutui-taro' : '@hg/nutui'

if (!importStyle) return { name, from: packageName }

Expand Down
2 changes: 1 addition & 1 deletion packages/nutui-eslint-config/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@nutui/eslint-config",
"name": "@hg/eslint-config",
"version": "0.0.1",
"description": "ESLint Config of NutUI Vue",
"keywords": [
Expand Down
11 changes: 0 additions & 11 deletions packages/nutui-playground/README.md

This file was deleted.

Loading

0 comments on commit f5f4a2a

Please sign in to comment.