package.json 4.7 KB
Newer Older
W
wangbei16 已提交
1
{
O
oasis-cloud 已提交
2
  "name": "@nutui/nutui-react",
O
oasis-cloud 已提交
3
  "version": "1.1.2",
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 52
    "build:es": "npx rollup -c rollup.config.es.js",
    "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 ",
W
wangbei16 已提交
53
    "build:site": "npm run checked && vite build --config vite.config.build.site.ts",
O
oasis-cloud 已提交
54 55
    "lint": "eslint .",
    "lint:fix": "eslint --fix .",
O
oasis-cloud 已提交
56
    "publish:beta": "npm publish --tag beta",
O
oasis-cloud 已提交
57 58
    "prepare": "husky install",
    "test": "jest"
W
wangbei16 已提交
59 60 61
  },
  "lint-staged": {
    "*.md": "prettier --write",
O
oasis-cloud 已提交
62
    "*.{ts,tsx,js,vue,scss}": "prettier --write"
W
wangbei16 已提交
63 64
  },
  "dependencies": {
O
oasis-cloud 已提交
65
    "@babel/runtime": "^7.16.5",
W
wangbei16 已提交
66
    "@bem-react/classname": "^1.5.10",
拧巴的猫 已提交
67 68
    "@react-spring/web": "^9.3.2",
    "@use-gesture/react": "^10.2.4",
O
oasis-cloud 已提交
69 70 71
    "classnames": "^2.3.1",
    "react-router-dom": "^5.2.0",
    "react-transition-group": "^4.4.2"
W
wangbei16 已提交
72 73
  },
  "devDependencies": {
O
oasis-cloud 已提交
74 75 76 77 78 79 80
    "@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 已提交
81 82
    "@commitlint/cli": "^12.1.4",
    "@commitlint/config-conventional": "^12.1.4",
S
suzigang 已提交
83
    "@loadable/component": "^5.15.0",
O
oasis-cloud 已提交
84 85 86 87
    "@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",
O
oasis-cloud 已提交
88
    "@types/jest": "^27.4.1",
W
wangbei16 已提交
89 90 91 92 93
    "@types/loadable__component": "^5.13.3",
    "@types/node": "^15.3.1",
    "@types/react": "^17.0.0",
    "@types/react-dom": "^17.0.0",
    "@types/react-router-dom": "^5.1.7",
O
oasis-cloud 已提交
94
    "@types/react-syntax-highlighter": "^13.5.2",
O
oasis-cloud 已提交
95
    "@types/react-test-renderer": "^18.0.0",
S
suzigang 已提交
96
    "@types/react-transition-group": "^4.4.4",
W
wangbei16 已提交
97 98
    "@typescript-eslint/eslint-plugin": "^4.24.0",
    "@typescript-eslint/parser": "^4.24.0",
O
oasis-cloud 已提交
99
    "@vitejs/plugin-react": "^1.1.3",
W
wangbei16 已提交
100
    "@vitejs/plugin-react-refresh": "^1.3.1",
W
wangbei16 已提交
101
    "autoprefixer": "^10.4.0",
S
suzigang 已提交
102
    "axios": "^0.21.1",
O
oasis-cloud 已提交
103
    "babel-plugin-react-scoped-css": "^1.1.1",
W
wangbei16 已提交
104 105 106 107 108
    "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 已提交
109 110
    "eslint-plugin-markdown": "^2.2.1",
    "eslint-plugin-prettier": "^4.0.0",
W
wangbei16 已提交
111 112
    "eslint-plugin-react": "^7.23.2",
    "eslint-plugin-react-hooks": "^4.2.0",
O
oasis-cloud 已提交
113
    "eslint-plugin-unused-imports": "^2.0.0",
S
suzigang 已提交
114
    "fs-extra": "^10.0.0",
O
oasis-cloud 已提交
115
    "glob": "^7.2.0",
W
wangbei16 已提交
116
    "husky": "^6.0.0",
W
wangbei16 已提交
117
    "inquirer": "^8.0.0",
O
oasis-cloud 已提交
118
    "jest": "^27.5.1",
W
wangbei16 已提交
119
    "lint-staged": "^11.0.0",
xiaozhumaopao's avatar
xiaozhumaopao 已提交
120
    "lzutf8": "^0.6.0",
O
oasis-cloud 已提交
121
    "map-stream": "0.0.7",
S
suzigang 已提交
122
    "marked": "^2.0.3",
O
oasis-cloud 已提交
123 124
    "postcss-import": "^14.0.2",
    "postcss-modules": "^4.2.2",
W
wangbei16 已提交
125
    "prettier": "2.3.0",
S
suzigang 已提交
126 127
    "react": "^17.0.0",
    "react-dom": "^17.0.0",
O
oasis-cloud 已提交
128 129
    "react-markdown": "^7.1.2",
    "react-syntax-highlighter": "^15.4.5",
O
oasis-cloud 已提交
130
    "react-test-renderer": "^17.0.2",
O
oasis-cloud 已提交
131 132
    "remark-directive": "^2.0.1",
    "remark-gfm": "^3.0.1",
O
oasis-cloud 已提交
133
    "sass": "^1.45.0",
W
wangbei16 已提交
134
    "shelljs": "^0.8.4",
O
oasis-cloud 已提交
135 136
    "ts-jest": "^27.1.4",
    "ts-node": "^10.7.0",
W
wangbei16 已提交
137
    "typescript": "^4.1.2",
O
oasis-cloud 已提交
138
    "unist-util-visit": "^4.1.0",
W
wangbei16 已提交
139
    "vinyl-fs": "^3.0.3",
O
oasis-cloud 已提交
140
    "vite": "^2.1.5"
W
wangbei16 已提交
141 142
  }
}