package.json 7.7 KB
Newer Older
W
wangbei16 已提交
1
{
O
oasis-cloud 已提交
2 3
  "name": "@nutui/nutui-react",
  "version": "1.4.6",
W
wangbei16 已提交
4
  "style": "dist/style.css",
O
oasis-cloud 已提交
5 6
  "main": "dist/nutui.react.umd.js",
  "module": "dist/esm/nutui-react.es.js",
7
  "typings": "dist/types/index.d.ts",
O
oasis-cloud 已提交
8 9 10
  "sideEffects": [
    "*.scss",
    "dist/esm/**/style/*",
O
oasis-cloud 已提交
11 12
    "dist/style.css",
    "dist/styles/font/*"
O
oasis-cloud 已提交
13
  ],
X
xiaoyatong 已提交
14
  "description": "京东风格的轻量级移动端 React 组件库,支持一套代码生成 H5 和小程序",
W
wangbei16 已提交
15 16 17 18 19
  "keywords": [
    "nutui",
    "nutui2",
    "nutui3",
    "react",
X
xiaoyatong 已提交
20
    "nutui-react",
W
wangbei16 已提交
21 22 23 24
    "webpack",
    "react component",
    "vite",
    "jdc",
X
xiaoyatong 已提交
25 26
    "jdcfe",
    "taro"
W
wangbei16 已提交
27 28 29
  ],
  "author": "jdcfe",
  "license": "MIT",
X
xiaoyatong 已提交
30 31 32
  "repository": {
    "type": "git",
    "url": "https://github.com/jdf2e/nutui-react.git"
X
xiaoyatong 已提交
33
  },
O
oasis-cloud 已提交
34 35 36 37
  "publishConfig": {
    "access": "public",
    "registry": "https://registry.npmjs.org/"
  },
W
wangbei16 已提交
38 39 40 41 42 43 44
  "files": [
    "dist",
    "README.md",
    "package.json",
    "LICENSE",
    "CHANGELOG.md"
  ],
W
wangbei16 已提交
45 46 47
  "scripts": {
    "add": "node scripts/createComponentMode.js",
    "generate:file": "node scripts/generate-nutui.js",
W
wangbei16 已提交
48
    "generate:themes": "node scripts/generate-themes.js",
49
    "generate:themes-dev": "node scripts/generate-themes-dev.js",
W
wangbei16 已提交
50
    "checked": "npm run generate:file && tsc",
W
wangbei16 已提交
51
    "dev": "npm run checked && vite --open --force",
52
    "dev:theme": "npm run generate:themes-dev && npm run checked && vite  --force --config vite.config.theme.ts",
O
oasis-cloud 已提交
53
    "replace:scss": "node scripts/replace-scss-alias.js",
54
    "build:dts": "node scripts/export-props.js && npx rollup -c rollup.config.dts.js",
O
oasis-cloud 已提交
55 56 57
    "build:loader-style": "node scripts/generate-loader-style.js",
    "build:component:css": "node scripts/build-component-css.js",
    "build:css": "npm run generate:themes && vite build --config vite.config.build.css.ts && npm run build:replace ",
O
oasis-cloud 已提交
58
    "build:replace": "npm run replace:scss",
O
oasis-cloud 已提交
59
    "build:es": "npx rollup -c rollup.config.es.js",
O
oasis-cloud 已提交
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",
W
wangbei16 已提交
62
    "build:site": "npm run checked && vite build --config vite.config.build.site.ts",
O
oasis-cloud 已提交
63
    "build:taro:site": "npm run checked:taro && npm run generate:file:taro:pages && cd ./src/sites/mobile-taro && npm run build:h5",
64
    "build:theme:site": "npm run checked && vite build --config vite.config.theme.ts && npm run generate:themes-dev",
65 66
    "lint": "eslint ./src/packages/calendar",
    "lint:fix": "eslint --fix ./src/packages/calendar",
O
oasis-cloud 已提交
67
    "publish:beta": "npm publish --tag beta",
O
oasis-cloud 已提交
68
    "prepare": "husky install",
X
xiaoyatong 已提交
69 70 71
    "test": "jest",
    "test:demo": "jest  --testNamePattern=^should match snapshot$ --runTestsByPath ./src/packages/collapse/__test__/collapse.spec.tsx",
    "generate:file:taro": "node scripts/taro/generate-nutui-taro.js",
72
    "checked:taro": "npm run generate:file:taro && tsc --project ./tsconfig.taro.json",
X
xiaoyatong 已提交
73 74
    "generate:file:taro:pages": "node scripts/taro/generate-taro-pages.js",
    "dev:taro:weapp": "npm run checked:taro && npm run generate:file:taro:pages && cd ./src/sites/mobile-taro && npm run dev:weapp",
X
xiaoyatong 已提交
75
    "dev:taro:jd": "npm run checked:taro && npm run generate:file:taro:pages && cd ./src/sites/mobile-taro && npm run dev:jd",
76
    "dev:taro:h5": "npm run checked:taro && npm run generate:file:taro:pages && cd ./src/sites/mobile-taro && npm run dev:h5",
X
xiaoyatong 已提交
77
    "replace:taro:types": "node scripts/taro/replace-taro-types-alias.js",
O
oasis-cloud 已提交
78
    "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",
X
xiaoyatong 已提交
79
    "build:taro:es": "npx rollup -c rollup.config.taro.es.js",
80
    "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",
X
xiaoyatong 已提交
81
    "add:taro:config": "node scripts/taro/generate-taro-route.js"
W
wangbei16 已提交
82
  },
O
oasis-cloud 已提交
83 84 85
  "engines": {
    "node": "^14.18.0 || >=15.0.0"
  },
W
wangbei16 已提交
86 87
  "lint-staged": {
    "*.md": "prettier --write",
X
xiaoyatong 已提交
88
    "*.{ts,tsx,js,vue,scss}": "prettier --write"
W
wangbei16 已提交
89 90
  },
  "dependencies": {
O
oasis-cloud 已提交
91
    "@babel/runtime": "^7.16.5",
W
wangbei16 已提交
92
    "@bem-react/classname": "^1.5.10",
拧巴的猫 已提交
93
    "@react-spring/web": "^9.3.2",
94
    "@use-gesture/react": "^10.2.9",
O
oasis-cloud 已提交
95
    "async-validator": "^4.2.5",
96
    "classnames": "^2.3.1",
97
    "lodash.kebabcase": "^4.1.1",
O
oasis-cloud 已提交
98
    "react-transition-group": "^4.4.2"
W
wangbei16 已提交
99 100
  },
  "devDependencies": {
O
oasis-cloud 已提交
101 102 103 104 105 106 107
    "@babel/plugin-proposal-class-properties": "^7.16.5",
    "@babel/plugin-proposal-object-rest-spread": "^7.16.5",
    "@babel/plugin-syntax-dynamic-import": "^7.8.3",
    "@babel/plugin-transform-runtime": "^7.16.5",
    "@babel/preset-env": "^7.16.5",
    "@babel/preset-react": "^7.16.5",
    "@babel/preset-typescript": "^7.16.5",
W
wangbei16 已提交
108 109
    "@commitlint/cli": "^12.1.4",
    "@commitlint/config-conventional": "^12.1.4",
S
suzigang 已提交
110
    "@loadable/component": "^5.15.0",
O
oasis-cloud 已提交
111
    "@pmmmwh/react-refresh-webpack-plugin": "^0.5.10",
O
oasis-cloud 已提交
112 113 114 115
    "@rollup/plugin-babel": "^5.3.0",
    "@rollup/plugin-commonjs": "^21.0.1",
    "@rollup/plugin-node-resolve": "^13.1.1",
    "@rollup/plugin-typescript": "^8.3.0",
116
    "@tarojs/components": "^3.6.0",
117 118 119 120 121 122 123
    "@tarojs/plugin-framework-react": "^3.6.0",
    "@tarojs/plugin-platform-h5": "^3.6.0",
    "@tarojs/plugin-platform-weapp": "^3.6.0",
    "@tarojs/react": "^3.6.0",
    "@tarojs/taro": "^3.6.0",
    "@tarojs/taro-h5": "^3.6.0",
    "@tarojs/taro-loader": "^3.6.0",
124
    "@testing-library/jest-dom": "^5.16.3",
_
__Oasis__ 已提交
125
    "@testing-library/react": "^13.3.0",
O
oasis-cloud 已提交
126
    "@types/jest": "^27.4.1",
W
wangbei16 已提交
127
    "@types/loadable__component": "^5.13.3",
128
    "@types/lodash.kebabcase": "^4.1.6",
W
wangbei16 已提交
129
    "@types/node": "^15.3.1",
_
__Oasis__ 已提交
130 131
    "@types/react": "^18.0.17",
    "@types/react-dom": "^18.0.6",
W
wangbei16 已提交
132
    "@types/react-router-dom": "^5.1.7",
O
oasis-cloud 已提交
133
    "@types/react-syntax-highlighter": "^13.5.2",
O
oasis-cloud 已提交
134
    "@types/react-test-renderer": "^18.0.0",
S
suzigang 已提交
135
    "@types/react-transition-group": "^4.4.4",
W
wangbei16 已提交
136 137
    "@typescript-eslint/eslint-plugin": "^4.24.0",
    "@typescript-eslint/parser": "^4.24.0",
O
oasis-cloud 已提交
138
    "@vitejs/plugin-react": "^1.1.3",
W
wangbei16 已提交
139
    "@vitejs/plugin-react-refresh": "^1.3.1",
W
wangbei16 已提交
140
    "autoprefixer": "^10.4.0",
S
suzigang 已提交
141
    "axios": "^0.21.1",
O
oasis-cloud 已提交
142
    "babel-plugin-react-scoped-css": "^1.1.1",
W
wangbei16 已提交
143 144 145 146 147
    "eslint": "^7.26.0",
    "eslint-config-airbnb": "^18.2.1",
    "eslint-config-prettier": "^8.3.0",
    "eslint-plugin-import": "^2.23.2",
    "eslint-plugin-jsx-a11y": "^6.4.1",
O
oasis-cloud 已提交
148 149
    "eslint-plugin-markdown": "^2.2.1",
    "eslint-plugin-prettier": "^4.0.0",
W
wangbei16 已提交
150 151
    "eslint-plugin-react": "^7.23.2",
    "eslint-plugin-react-hooks": "^4.2.0",
O
oasis-cloud 已提交
152
    "eslint-plugin-unused-imports": "^1.1.5",
S
suzigang 已提交
153
    "fs-extra": "^10.0.0",
O
oasis-cloud 已提交
154
    "glob": "^7.2.0",
W
wangbei16 已提交
155
    "husky": "^6.0.0",
W
wangbei16 已提交
156
    "inquirer": "^8.0.0",
O
oasis-cloud 已提交
157
    "jest": "^27.5.1",
158
    "jest-canvas-mock": "^2.4.0",
W
wangbei16 已提交
159
    "lint-staged": "^11.0.0",
160
    "lzutf8": "0.6.0",
O
oasis-cloud 已提交
161
    "map-stream": "0.0.7",
S
suzigang 已提交
162
    "marked": "^2.0.3",
163
    "mobx": "^6.6.2",
164
    "mobx-react-lite": "^3.4.0",
O
oasis-cloud 已提交
165 166
    "postcss-import": "^14.0.2",
    "postcss-modules": "^4.2.2",
W
wangbei16 已提交
167
    "prettier": "2.3.0",
_
__Oasis__ 已提交
168
    "react": "^18.2.0",
169
    "react-color": "^2.19.3",
_
__Oasis__ 已提交
170
    "react-dom": "^18.2.0",
O
oasis-cloud 已提交
171
    "react-markdown": "^7.1.2",
172
    "react-router-dom": "^5.3.4",
O
oasis-cloud 已提交
173
    "react-syntax-highlighter": "^15.4.5",
_
__Oasis__ 已提交
174
    "react-test-renderer": "^18.2.0",
175
    "reactcss": "^1.2.3",
O
oasis-cloud 已提交
176 177
    "remark-directive": "^2.0.1",
    "remark-gfm": "^3.0.1",
O
oasis-cloud 已提交
178 179
    "rollup-plugin-delete": "^2.0.0",
    "rollup-plugin-dts": "^4.2.2",
O
oasis-cloud 已提交
180
    "sass": "^1.45.0",
W
wangbei16 已提交
181
    "shelljs": "^0.8.4",
O
oasis-cloud 已提交
182 183
    "ts-jest": "^27.1.4",
    "ts-node": "^10.7.0",
O
oasis-cloud 已提交
184
    "typescript": "^4.8.2",
O
oasis-cloud 已提交
185
    "unist-util-visit": "^4.1.0",
W
wangbei16 已提交
186
    "vinyl-fs": "^3.0.3",
O
oasis-cloud 已提交
187 188
    "vite": "^2.1.5",
    "vite-plugin-dts": "^1.1.1"
_
__Oasis__ 已提交
189 190 191 192 193 194 195
  },
  "peerDependencies": {
    "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
  },
  "resolutions": {
    "@types/react": "18",
    "@types/react-dom": "18"
W
wangbei16 已提交
196 197
  }
}