package.json 6.1 KB
Newer Older
W
wangbei16 已提交
1
{
O
oasis-cloud 已提交
2
  "name": "@nutui/nutui-react",
O
oasis-cloud 已提交
3
  "version": "1.3.1",
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",
O
oasis-cloud 已提交
7
  "typings": "dist/types/nutui.react.d.ts",
O
oasis-cloud 已提交
8 9 10 11 12 13
  "sideEffects": [
    "*.scss",
    "dist/esm/**/style/*",
    "dist/style.css"
  ],
  "description": "京东风格的轻量级移动端 React 组件库",
W
wangbei16 已提交
14 15 16 17 18 19 20 21 22 23 24 25 26
  "keywords": [
    "nutui",
    "nutui2",
    "nutui3",
    "react",
    "webpack",
    "react component",
    "vite",
    "jdc",
    "jdcfe"
  ],
  "author": "jdcfe",
  "license": "MIT",
O
oasis-cloud 已提交
27 28 29 30
  "publishConfig": {
    "access": "public",
    "registry": "https://registry.npmjs.org/"
  },
W
wangbei16 已提交
31 32 33 34 35 36 37
  "files": [
    "dist",
    "README.md",
    "package.json",
    "LICENSE",
    "CHANGELOG.md"
  ],
W
wangbei16 已提交
38 39 40
  "scripts": {
    "add": "node scripts/createComponentMode.js",
    "generate:file": "node scripts/generate-nutui.js",
W
wangbei16 已提交
41
    "generate:themes": "node scripts/generate-themes.js",
W
wangbei16 已提交
42
    "checked": "npm run generate:file && tsc",
W
wangbei16 已提交
43
    "dev": "npm run checked && vite --open --force",
O
oasis-cloud 已提交
44 45 46 47 48 49
    "replace:scss": "node scripts/replace-scss-alias.js",
    "replace:types": "node scripts/replace-types-alias.js",
    "build:types": "tsc && npm run replace:types",
    "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 已提交
50
    "build:replace": "npm run replace:scss",
O
oasis-cloud 已提交
51
    "build:es": "npx rollup -c rollup.config.es.js",
O
oasis-cloud 已提交
52
    "build:locales": "vite build --config vite.config.build.locales.ts",
O
oasis-cloud 已提交
53
    "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:types && npm run build:locales",
W
wangbei16 已提交
54
    "build:site": "npm run checked && vite build --config vite.config.build.site.ts",
55 56
    "lint": "eslint ./src/packages/calendar",
    "lint:fix": "eslint --fix ./src/packages/calendar",
O
oasis-cloud 已提交
57
    "publish:beta": "npm publish --tag beta",
O
oasis-cloud 已提交
58
    "prepare": "husky install",
X
xiaoyatong 已提交
59 60 61 62 63 64 65 66 67 68 69 70
    "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",
    "checked:taro":"npm run generate:file:taro && tsc --project ./tsconfig.taro.json",
    "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",
    "replace:taro:types": "node scripts/taro/replace-taro-types-alias.js",
    "build:taro:types": "tsc && npm run replace:taro:types",
    "build:taro:es": "npx rollup -c rollup.config.taro.es.js",
    "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 run build:taro:types && npm run build:locales",
    "add:taro:config": "node scripts/taro/generate-taro-route.js"
W
wangbei16 已提交
71
  },
O
oasis-cloud 已提交
72 73 74
  "engines": {
    "node": "^14.18.0 || >=15.0.0"
  },
W
wangbei16 已提交
75 76
  "lint-staged": {
    "*.md": "prettier --write",
X
xiaoyatong 已提交
77
    "*.{ts,tsx,js,vue,scss}": "prettier --write"
W
wangbei16 已提交
78 79
  },
  "dependencies": {
O
oasis-cloud 已提交
80
    "@babel/runtime": "^7.16.5",
W
wangbei16 已提交
81
    "@bem-react/classname": "^1.5.10",
拧巴的猫 已提交
82
    "@react-spring/web": "^9.3.2",
O
oasis-cloud 已提交
83
    "@use-gesture/react": "10.2.9",
O
oasis-cloud 已提交
84 85 86
    "classnames": "^2.3.1",
    "react-router-dom": "^5.2.0",
    "react-transition-group": "^4.4.2"
W
wangbei16 已提交
87 88
  },
  "devDependencies": {
O
oasis-cloud 已提交
89 90 91 92 93 94 95
    "@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 已提交
96 97
    "@commitlint/cli": "^12.1.4",
    "@commitlint/config-conventional": "^12.1.4",
S
suzigang 已提交
98
    "@loadable/component": "^5.15.0",
O
oasis-cloud 已提交
99 100 101 102
    "@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",
X
xiaoyatong 已提交
103
    "@tarojs/taro": "3.4.13",
104
    "@testing-library/jest-dom": "^5.16.3",
_
__Oasis__ 已提交
105
    "@testing-library/react": "^13.3.0",
O
oasis-cloud 已提交
106
    "@types/jest": "^27.4.1",
W
wangbei16 已提交
107 108
    "@types/loadable__component": "^5.13.3",
    "@types/node": "^15.3.1",
_
__Oasis__ 已提交
109 110
    "@types/react": "^18.0.17",
    "@types/react-dom": "^18.0.6",
W
wangbei16 已提交
111
    "@types/react-router-dom": "^5.1.7",
O
oasis-cloud 已提交
112
    "@types/react-syntax-highlighter": "^13.5.2",
O
oasis-cloud 已提交
113
    "@types/react-test-renderer": "^18.0.0",
S
suzigang 已提交
114
    "@types/react-transition-group": "^4.4.4",
W
wangbei16 已提交
115 116
    "@typescript-eslint/eslint-plugin": "^4.24.0",
    "@typescript-eslint/parser": "^4.24.0",
O
oasis-cloud 已提交
117
    "@vitejs/plugin-react": "^1.1.3",
W
wangbei16 已提交
118
    "@vitejs/plugin-react-refresh": "^1.3.1",
W
wangbei16 已提交
119
    "autoprefixer": "^10.4.0",
S
suzigang 已提交
120
    "axios": "^0.21.1",
O
oasis-cloud 已提交
121
    "babel-plugin-react-scoped-css": "^1.1.1",
W
wangbei16 已提交
122 123 124 125 126
    "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 已提交
127 128
    "eslint-plugin-markdown": "^2.2.1",
    "eslint-plugin-prettier": "^4.0.0",
W
wangbei16 已提交
129 130
    "eslint-plugin-react": "^7.23.2",
    "eslint-plugin-react-hooks": "^4.2.0",
O
oasis-cloud 已提交
131
    "eslint-plugin-unused-imports": "^1.1.5",
S
suzigang 已提交
132
    "fs-extra": "^10.0.0",
O
oasis-cloud 已提交
133
    "glob": "^7.2.0",
W
wangbei16 已提交
134
    "husky": "^6.0.0",
W
wangbei16 已提交
135
    "inquirer": "^8.0.0",
O
oasis-cloud 已提交
136
    "jest": "^27.5.1",
137
    "jest-canvas-mock": "^2.4.0",
W
wangbei16 已提交
138
    "lint-staged": "^11.0.0",
139
    "lzutf8": "0.6.0",
O
oasis-cloud 已提交
140
    "map-stream": "0.0.7",
S
suzigang 已提交
141
    "marked": "^2.0.3",
O
oasis-cloud 已提交
142 143
    "postcss-import": "^14.0.2",
    "postcss-modules": "^4.2.2",
W
wangbei16 已提交
144
    "prettier": "2.3.0",
_
__Oasis__ 已提交
145 146
    "react": "^18.2.0",
    "react-dom": "^18.2.0",
O
oasis-cloud 已提交
147 148
    "react-markdown": "^7.1.2",
    "react-syntax-highlighter": "^15.4.5",
_
__Oasis__ 已提交
149
    "react-test-renderer": "^18.2.0",
O
oasis-cloud 已提交
150 151
    "remark-directive": "^2.0.1",
    "remark-gfm": "^3.0.1",
O
oasis-cloud 已提交
152
    "sass": "^1.45.0",
W
wangbei16 已提交
153
    "shelljs": "^0.8.4",
O
oasis-cloud 已提交
154 155
    "ts-jest": "^27.1.4",
    "ts-node": "^10.7.0",
W
wangbei16 已提交
156
    "typescript": "^4.1.2",
O
oasis-cloud 已提交
157
    "unist-util-visit": "^4.1.0",
W
wangbei16 已提交
158
    "vinyl-fs": "^3.0.3",
O
oasis-cloud 已提交
159 160
    "vite": "^2.1.5",
    "vite-plugin-dts": "^1.1.1"
_
__Oasis__ 已提交
161 162 163 164 165 166 167
  },
  "peerDependencies": {
    "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
  },
  "resolutions": {
    "@types/react": "18",
    "@types/react-dom": "18"
W
wangbei16 已提交
168 169
  }
}