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