@hj_fe/hengjiui-biz 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/README.md +133 -0
  3. package/package.json +193 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,7 @@
1
+ ## v1.0.0
2
+ `2023-03-22`
3
+
4
+ > :tada: :tada: :tada: NutUI-Biz 1.0 来了!
5
+
6
+ * :zap: feat: 第一个公开版本,发布 Card、CardBar、SearchHistory、SettleBar、Sku、Address、OrderCancelPanel、QuickEnter、HorizontalScrolling、Category、Comment、Ecard、OrderRemark、InvoiceTitleEdit、ProductFeed、AddressEdit、InvoiceTitleList、ReceiveInvoiceEdit、GoodsFilter、Delivery、ReceiveInvoiceList、AddressList、Coupon、Login 等组件。
7
+ * :zap: feat: 发布 NutUI-Biz 官网。
package/README.md ADDED
@@ -0,0 +1,133 @@
1
+
2
+ <p align="center">
3
+ <img alt="logo" src="https://storage.360buyimg.com/nutui/nutui-biz/3x/0.0.8/logo-biz-red.676f7cb0.png" width="150" style="margin-bottom: 10px;">
4
+ </p>
5
+
6
+ <p align="center">基于 NutUI-React 的移动电商业务组件库</p>
7
+
8
+ <p align="center">
9
+ <a href="http://makeapullrequest.com">
10
+ <img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square" alt="PRs Welcome">
11
+ </a>
12
+ <a href="https://github.com/jdf2e/nutui-biz">
13
+ <img src="https://coveralls.io/repos/github/jdf2e/nutui/badge.svg?branch=master" alt="Coverage Status" />
14
+ </a>
15
+ <a href="https://github.com/jdf2e/nutui-biz">
16
+ <img src="https://img.shields.io/npm/l/@nutui/nutui-biz.svg" alt="license"/>
17
+ </a>
18
+ <a href="https://www.npmjs.com/package/@nutui/nutui">
19
+ <img src="https://img.shields.io/npm/v/@nutui/nutui-biz.svg?style=flat-square">
20
+ </a>
21
+ <a href="https://www.npmjs.com/package/@nutui/nutui">
22
+ <img src="https://img.shields.io/npm/dt/@nutui/nutui-biz.svg?style=flat-square">
23
+ </a>
24
+ <a href="https://travis-ci.org/jdf2e/nutui">
25
+ <img src="https://img.shields.io/travis/jdf2e/nutui-biz.svg?style=flat-square">
26
+ </a>
27
+
28
+ </p>
29
+ <p align="center">
30
+ <a href="https://github.com/jdf2e/nutui-biz">
31
+ <img src="https://img.shields.io/github/contributors/jdf2e/nutui-biz" alt="GitHub contributors">
32
+ </a>
33
+ <a href="https://github.com/jdf2e/nutui-biz">
34
+ <img src="https://img.shields.io/github/commit-activity/w/jdf2e/nutui-biz" alt="GitHub commit activity">
35
+ </a>
36
+ <a href="https://github.com/jdf2e/nutui-biz">
37
+ <img src="https://img.shields.io/github/issues-closed/jdf2e/nutui-biz" alt="GitHub closed issues">
38
+ </a>
39
+ <a href="https://github.com/jdf2e/nutui-biz">
40
+ <img src="https://img.shields.io/github/commits-since/jdf2e/nutui/latest/v4" alt="GitHub commits since latest release (by date)">
41
+ </a>
42
+ <a href="https://github.com/jdf2e/nutui-biz">
43
+ <img src="https://img.shields.io/github/release-date/jdf2e/nutui" alt="GitHub Release Date">
44
+ </a>
45
+ </p>
46
+
47
+ <p align="center">
48
+ <img src="https://img11.360buyimg.com/imagetools/jfs/t1/125392/15/36236/3450/6422d3fcF3af86473/e103f55da277a200.png" width="164" alt="NutUI-Biz" />
49
+ </p>
50
+
51
+ ---
52
+
53
+ ## 特性
54
+
55
+ * 🚀 20+ 高质量组件,覆盖移动端商城所有模块
56
+ * 📖 基于京东APP 10.0 视觉规范
57
+ * 🍭 支持按需引用
58
+ * 📖 详尽的文档和示例
59
+ * 💪 支持 TypeScript
60
+ * 🍭 单元测试覆盖率超过 80%,保障稳定性
61
+
62
+ ## 安装
63
+
64
+ ```bash
65
+ npm i @nutui/nutui-biz
66
+ ```
67
+
68
+ ## 示例
69
+
70
+ ```js
71
+ import * as React from "react";
72
+ import * as ReactDOM from "react-dom";
73
+ import '@nutui/nutui-biz/dist/style.css'
74
+ import '@nutui/nutui-react/dist/style.css'
75
+ import { Card } from '@nutui/nutui-biz';
76
+
77
+ ReactDOM.render(
78
+ <div className="App">
79
+ <Card
80
+ imageProps='//img10.360buyimg.com/n2/s240x240_jfs/t1/210890/22/4728/163829/6163a590Eb7c6f4b5/6390526d49791cb9.jpg!q70.jpg'
81
+ title='【活蟹】湖塘煙雨 阳澄湖大闸蟹公4.5两 母3.5两 4对8只 鲜活生鲜螃蟹现货水产礼盒海鲜水'
82
+ price='388'
83
+ shopName='阳澄湖大闸蟹自营店'
84
+ />
85
+ </div>,
86
+ document.getElementById("app")
87
+ );
88
+ ```
89
+
90
+ ## 构建版本
91
+
92
+ > AMD 环境、Webpack、Vite 等构建工具环境、服务端建议使用 es 版,非模块化环境(如通过 `<script>` 标签直接引用)建议使用 umd 压缩版。
93
+
94
+ * es **nutui.biz.es.js**
95
+
96
+ * umd **nutui.biz.umd.js**
97
+
98
+ ## 问题反馈与建议
99
+
100
+ [参与 NutUI-Biz 社区讨论](https://github.com/jdf2e/nutui-biz/discussions)
101
+
102
+ 如果您有任何想法、疑问或建议,都可以参与社区讨论分享您的观点。
103
+
104
+ ## 贡献者们
105
+
106
+ 感谢以下所有给 NutUI-Biz 贡献过代码的 [开发者](https://github.com/jdf2e/nutui-biz/graphs/contributors)。
107
+
108
+ <a href="https://github.com/jdf2e/nutui-biz/graphs/contributors">
109
+ <img src="https://opencollective.com/nutui-biz/contributors.svg?width=890&button=false" alt="contributors">
110
+ </a>
111
+
112
+
113
+ <!-- ## Stargazers -->
114
+
115
+ <!-- [![Stargazers repo roster for @jdf2e/nutui](https://reporoster.com/stars/jdf2e/nutui)](https://github.com/jdf2e/nutui/stargazers) -->
116
+
117
+ <!-- ## Forkers
118
+
119
+ [![Forkers repo roster for @jdf2e/nutui](https://reporoster.com/forks/jdf2e/nutui)](https://github.com/jdf2e/nutui/network/members) -->
120
+
121
+
122
+ <!-- ## 开发计划
123
+
124
+ [Milestones](https://github.com/jdf2e/nutui/projects) -->
125
+
126
+ ## 更新日志
127
+
128
+ 本项目遵从 [Angular Style Commit Message Conventions](https://gist.github.com/stephenparish/9941e89d80e2bc58a153),更新日志请查阅 [Release](https://github.com/jdf2e/nutui-biz/releases)。
129
+
130
+ ## github stargazers
131
+
132
+ ![stargazers](https://starchart.cc/jdf2e/nutui-biz.svg)
133
+
package/package.json ADDED
@@ -0,0 +1,193 @@
1
+ {
2
+ "name": "@hj_fe/hengjiui-biz",
3
+ "version": "1.0.0",
4
+ "style": "dist/style.css",
5
+ "main": "dist/nutui.biz.umd.js",
6
+ "module": "dist/esm/nutui-biz.es.js",
7
+ "typings": "dist/types/index.d.ts",
8
+ "sideEffects": [
9
+ "*.scss",
10
+ "dist/esm/**/style/*",
11
+ "dist/style.css",
12
+ "dist/styles/font/*"
13
+ ],
14
+ "description": "京东风格的轻量级移动端 React 组件库,支持一套代码生成 H5 和小程序",
15
+ "keywords": [
16
+ "nutui",
17
+ "nutui2",
18
+ "nutui3",
19
+ "react",
20
+ "nutui-biz",
21
+ "webpack",
22
+ "react component",
23
+ "vite",
24
+ "jdc",
25
+ "jdcfe",
26
+ "taro"
27
+ ],
28
+ "author": "jdcfe",
29
+ "license": "MIT",
30
+ "repository": {
31
+ "type": "git",
32
+ "url": "https://github.com/jdf2e/nutui-biz.git"
33
+ },
34
+ "publishConfig": {
35
+ "access": "public",
36
+ "registry": "https://registry.npmjs.org/"
37
+ },
38
+ "files": [
39
+ "dist",
40
+ "README.md",
41
+ "package.json",
42
+ "LICENSE",
43
+ "CHANGELOG.md"
44
+ ],
45
+ "scripts": {
46
+ "add": "node scripts/createComponentMode.js",
47
+ "generate:file": "node scripts/generate-nutui.js",
48
+ "generate:themes": "node scripts/generate-themes.js",
49
+ "generate:themes-dev": "node scripts/generate-themes-dev.js",
50
+ "checked": "npm run generate:file && tsc",
51
+ "dev": "npm run checked && vite --open --force --port 3001",
52
+ "dev:theme": "npm run generate:themes-dev && npm run checked && vite --config vite.config.theme.ts --open --force",
53
+ "replace:scss": "node scripts/replace-scss-alias.js",
54
+ "build:dts": "node scripts/export-props.js && npx rollup -c rollup.config.dts.js",
55
+ "build:loader-style": "node scripts/generate-loader-style.js",
56
+ "build:component:css": "node scripts/build-component-css.js",
57
+ "build:css": "npm run generate:themes && vite build --config vite.config.build.css.ts && npm run build:replace ",
58
+ "build:replace": "npm run replace:scss",
59
+ "build:es": "npx rollup -c rollup.config.es.js",
60
+ "build:locales": "vite build --config vite.config.build.locales.ts",
61
+ "build": "npm run checked && vite build --config vite.config.build.ts && npm run build:es && npm run build:css && npm run build:loader-style && npm run build:dts && npm run build:locales",
62
+ "build:site": "npm run checked && vite build --config vite.config.build.site.ts",
63
+ "build:site:oss": "vite build --config vite.config.build.site.ts --base=/nutui/biz/",
64
+ "build:theme:site": "npm run checked && vite build --config vite.config.theme.ts && npm run generate:themes-dev",
65
+ "lint": "eslint ./src/packages/calendar",
66
+ "lint:fix": "eslint --fix ./src/packages/calendar",
67
+ "publish:beta": "npm publish --tag beta",
68
+ "prepare": "husky install",
69
+ "upload": "yarn build:site:oss && node ./jd/upload.js",
70
+ "test": "jest",
71
+ "test:demo": "jest --testNamePattern=^should match snapshot$ --runTestsByPath ./src/packages/card/__test__/card.spec.tsx",
72
+ "generate:file:taro": "node scripts/taro/generate-nutui-taro.js",
73
+ "checked:taro": "npm run generate:file:taro && tsc --project ./tsconfig.taro.json",
74
+ "generate:file:taro:pages": "node scripts/taro/generate-taro-pages.js",
75
+ "dev:taro:weapp": "npm run checked:taro && npm run generate:file:taro:pages && cd ./src/sites/mobile-taro && npm run dev:weapp",
76
+ "dev:taro:jd": "npm run checked:taro && npm run generate:file:taro:pages && cd ./src/sites/mobile-taro && npm run dev:jd",
77
+ "dev:taro:h5": "npm run checked:taro && npm run generate:file:taro:pages && cd ./src/sites/mobile-taro && npm run dev:h5",
78
+ "replace:taro:types": "node scripts/taro/replace-taro-types-alias.js",
79
+ "build:taro": "npm run checked:taro && vite build --config vite.config.build.taro.ts && npm run build:taro:es && npm run build:css && npm run build:loader-style && npm --taro run build:dts && npm run build:locales",
80
+ "build:taro:es": "npx rollup -c rollup.config.taro.es.js",
81
+ "build:taro:weapp": "npm run checked:taro && vite build --config vite.config.build.taro.ts && npm run generate:file:taro:pages && cd ./src/sites/mobile-taro && npm run build:weapp",
82
+ "add:taro:config": "node scripts/taro/generate-taro-route.js"
83
+ },
84
+ "engines": {
85
+ "node": "^14.18.0 || >=15.0.0"
86
+ },
87
+ "lint-staged": {
88
+ "*.md": "prettier --write",
89
+ "*.{ts,tsx,js,vue,scss}": "prettier --write"
90
+ },
91
+ "dependencies": {
92
+ "@babel/runtime": "^7.16.5",
93
+ "@bem-react/classname": "^1.5.10",
94
+ "@nutui/nutui-react": "^1.4.7",
95
+ "@nutui/nutui-react-taro": "^1.4.7",
96
+ "@react-spring/web": "^9.3.2",
97
+ "@use-gesture/react": "^10.2.9",
98
+ "classnames": "^2.3.1",
99
+ "mobx-react-lite": "^3.4.0",
100
+ "react-router-dom": "^5.2.0",
101
+ "rehype-raw": "^6.1.1",
102
+ "react-transition-group": "^4.4.2"
103
+ },
104
+ "devDependencies": {
105
+ "@babel/plugin-proposal-class-properties": "^7.16.5",
106
+ "@babel/plugin-proposal-object-rest-spread": "^7.16.5",
107
+ "@babel/plugin-syntax-dynamic-import": "^7.8.3",
108
+ "@babel/plugin-transform-runtime": "^7.16.5",
109
+ "@babel/preset-env": "^7.16.5",
110
+ "@babel/preset-react": "^7.16.5",
111
+ "@babel/preset-typescript": "^7.16.5",
112
+ "@commitlint/cli": "^12.1.4",
113
+ "@commitlint/config-conventional": "^12.1.4",
114
+ "@loadable/component": "^5.15.0",
115
+ "@rollup/plugin-babel": "^5.3.0",
116
+ "@rollup/plugin-commonjs": "^21.0.1",
117
+ "@rollup/plugin-node-resolve": "^13.1.1",
118
+ "@rollup/plugin-typescript": "^8.3.0",
119
+ "@tarojs/components": "^3.5.5",
120
+ "@tarojs/plugin-platform-weapp": "^3.5.7",
121
+ "@tarojs/taro": "^3.5.5",
122
+ "@tarojs/taro-loader": "^3.5.7",
123
+ "@testing-library/jest-dom": "^5.16.3",
124
+ "@testing-library/react": "^13.3.0",
125
+ "@types/jest": "^27.4.1",
126
+ "@types/loadable__component": "^5.13.3",
127
+ "@types/node": "^15.3.1",
128
+ "@types/react": "^18.0.17",
129
+ "@types/react-dom": "^18.0.6",
130
+ "@types/react-router-dom": "^5.1.7",
131
+ "@types/react-syntax-highlighter": "^13.5.2",
132
+ "@types/react-test-renderer": "^18.0.0",
133
+ "@types/react-transition-group": "^4.4.4",
134
+ "@typescript-eslint/eslint-plugin": "^4.24.0",
135
+ "@typescript-eslint/parser": "^4.24.0",
136
+ "@vitejs/plugin-react": "^1.1.3",
137
+ "@vitejs/plugin-react-refresh": "^1.3.1",
138
+ "autoprefixer": "^10.4.0",
139
+ "axios": "^0.21.1",
140
+ "babel-plugin-react-scoped-css": "^1.1.1",
141
+ "eslint": "^7.26.0",
142
+ "eslint-config-airbnb": "^18.2.1",
143
+ "eslint-config-prettier": "^8.3.0",
144
+ "eslint-plugin-import": "^2.23.2",
145
+ "eslint-plugin-jsx-a11y": "^6.4.1",
146
+ "eslint-plugin-markdown": "^2.2.1",
147
+ "eslint-plugin-prettier": "^4.0.0",
148
+ "eslint-plugin-react": "^7.23.2",
149
+ "eslint-plugin-react-hooks": "^4.2.0",
150
+ "eslint-plugin-unused-imports": "^1.1.5",
151
+ "fs-extra": "^10.0.0",
152
+ "glob": "^7.2.0",
153
+ "husky": "^6.0.0",
154
+ "inquirer": "^8.0.0",
155
+ "jest": "^27.5.1",
156
+ "jest-canvas-mock": "^2.4.0",
157
+ "lint-staged": "^11.0.0",
158
+ "lzutf8": "0.6.0",
159
+ "map-stream": "0.0.7",
160
+ "marked": "^2.0.3",
161
+ "mobx": "^6.6.2",
162
+ "postcss-import": "^14.0.2",
163
+ "postcss-modules": "^4.2.2",
164
+ "prettier": "2.3.0",
165
+ "react": "^18.2.0",
166
+ "react-color": "^2.19.3",
167
+ "react-dom": "^18.2.0",
168
+ "react-markdown": "^7.1.2",
169
+ "react-syntax-highlighter": "^15.4.5",
170
+ "react-test-renderer": "^18.2.0",
171
+ "reactcss": "^1.2.3",
172
+ "remark-directive": "^2.0.1",
173
+ "remark-gfm": "^3.0.1",
174
+ "rollup-plugin-delete": "^2.0.0",
175
+ "rollup-plugin-dts": "^4.2.2",
176
+ "sass": "^1.45.0",
177
+ "shelljs": "^0.8.4",
178
+ "ts-jest": "^27.1.4",
179
+ "ts-node": "^10.7.0",
180
+ "typescript": "^4.8.2",
181
+ "unist-util-visit": "^4.1.0",
182
+ "vinyl-fs": "^3.0.3",
183
+ "vite": "^2.1.5",
184
+ "vite-plugin-dts": "^1.1.1"
185
+ },
186
+ "peerDependencies": {
187
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
188
+ },
189
+ "resolutions": {
190
+ "@types/react": "18",
191
+ "@types/react-dom": "18"
192
+ }
193
+ }