package.json 4.0 KB
Newer Older
W
wangbei16 已提交
1
{
O
oasis-cloud 已提交
2 3
  "name": "@test/nutui-react",
  "version": "0.1.0-beta.1",
W
wangbei16 已提交
4
  "style": "dist/style.css",
O
oasis-cloud 已提交
5 6 7 8 9 10 11 12 13
  "main": "dist/nutui.react.umd.js",
  "module": "dist/esm/nutui-react.es.js",
  "typings": "dist/esm/types/src/packages/nutui.react.d.ts",
  "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
  "scripts": {
    "add": "node scripts/createComponentMode.js",
O
oasis-cloud 已提交
40
    "generate:types": "tsc && npm run replace:types",
W
wangbei16 已提交
41
    "generate:file": "node scripts/generate-nutui.js",
O
oasis-cloud 已提交
42 43
    "replace:scss": "node scripts/replace-scss.js",
    "replace:types": "node scripts/replace-types.js",
W
wangbei16 已提交
44
    "generate:themes": "node scripts/generate-themes.js",
W
wangbei16 已提交
45
    "checked": "npm run generate:file && tsc",
W
wangbei16 已提交
46
    "dev": "npm run checked && vite --open --force",
O
oasis-cloud 已提交
47 48 49 50
    "build:css": "npm run generate:themes && vite build --config vite.config.build.css.ts && npm run build:replace",
    "build:replace": "npm run replace:scss",
    "build:esm": "npx rollup -c rollup.config.es.js",
    "build": "npm run checked && vite build --config vite.config.build.ts && npm run build:esm && npm run build:css && npm run generate:types ",
W
wangbei16 已提交
51
    "build:site": "npm run checked && vite build --config vite.config.build.site.ts",
O
oasis-cloud 已提交
52
    "publish:beta": "npm publish --tag=beta",
W
wangbei16 已提交
53 54 55 56 57 58 59
    "prepare": "husky install"
  },
  "lint-staged": {
    "*.md": "prettier --write",
    "*.{ts,tsx,js,scss}": "prettier --write",
    "*.js": "eslint --cache --fix",
    "*.{js,css,md}": "prettier --write"
W
wangbei16 已提交
60 61
  },
  "dependencies": {
O
oasis-cloud 已提交
62
    "@babel/runtime": "^7.16.5",
W
wangbei16 已提交
63
    "@bem-react/classname": "^1.5.10",
拧巴的猫 已提交
64 65
    "@react-spring/web": "^9.3.2",
    "@use-gesture/react": "^10.2.4",
O
oasis-cloud 已提交
66 67 68
    "classnames": "^2.3.1",
    "react-router-dom": "^5.2.0",
    "react-transition-group": "^4.4.2"
W
wangbei16 已提交
69 70
  },
  "devDependencies": {
O
oasis-cloud 已提交
71 72 73 74 75 76 77
    "@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 已提交
78 79
    "@commitlint/cli": "^12.1.4",
    "@commitlint/config-conventional": "^12.1.4",
S
suzigang 已提交
80
    "@loadable/component": "^5.15.0",
O
oasis-cloud 已提交
81 82 83 84
    "@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",
W
wangbei16 已提交
85 86 87 88 89
    "@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",
S
suzigang 已提交
90
    "@types/react-transition-group": "^4.4.4",
W
wangbei16 已提交
91 92
    "@typescript-eslint/eslint-plugin": "^4.24.0",
    "@typescript-eslint/parser": "^4.24.0",
O
oasis-cloud 已提交
93
    "@vitejs/plugin-react": "^1.1.3",
W
wangbei16 已提交
94
    "@vitejs/plugin-react-refresh": "^1.3.1",
W
wangbei16 已提交
95
    "autoprefixer": "^10.4.0",
S
suzigang 已提交
96
    "axios": "^0.21.1",
O
oasis-cloud 已提交
97
    "babel-plugin-react-scoped-css": "^1.1.1",
W
wangbei16 已提交
98 99 100 101 102 103 104
    "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",
    "eslint-plugin-react": "^7.23.2",
    "eslint-plugin-react-hooks": "^4.2.0",
S
suzigang 已提交
105
    "fs-extra": "^10.0.0",
O
oasis-cloud 已提交
106
    "glob": "^7.2.0",
W
wangbei16 已提交
107
    "husky": "^6.0.0",
W
wangbei16 已提交
108
    "inquirer": "^8.0.0",
W
wangbei16 已提交
109
    "lint-staged": "^11.0.0",
O
oasis-cloud 已提交
110
    "map-stream": "0.0.7",
S
suzigang 已提交
111
    "marked": "^2.0.3",
O
oasis-cloud 已提交
112 113
    "postcss-import": "^14.0.2",
    "postcss-modules": "^4.2.2",
W
wangbei16 已提交
114
    "prettier": "2.3.0",
S
suzigang 已提交
115 116
    "react": "^17.0.0",
    "react-dom": "^17.0.0",
O
oasis-cloud 已提交
117
    "sass": "^1.45.0",
W
wangbei16 已提交
118
    "shelljs": "^0.8.4",
W
wangbei16 已提交
119
    "typescript": "^4.1.2",
W
wangbei16 已提交
120
    "vinyl-fs": "^3.0.3",
W
wangbei16 已提交
121 122 123 124
    "vite": "^2.1.5",
    "vite-plugin-markdown": "^2.0.2"
  }
}