package.json 2.6 KB
Newer Older
W
wangbei16 已提交
1 2
{
  "name": "nutui-react",
W
wangbei16 已提交
3 4 5 6
  "version": "1.0.0",
  "main": "dist/nutui.react.umd.js",
  "module": "dist/nutui.react.es.js",
  "style": "dist/style.css",
W
wangbei16 已提交
7
  "typings": "dist/types/src/packages/nutui.react.d.ts",
W
wangbei16 已提交
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
  "keywords": [
    "nutui",
    "nutui2",
    "nutui3",
    "react",
    "webpack",
    "react component",
    "vite",
    "jdc",
    "jdcfe"
  ],
  "author": "jdcfe",
  "license": "MIT",
  "files": [
    "dist",
    "README.md",
    "package.json",
    "LICENSE",
    "CHANGELOG.md"
  ],
W
wangbei16 已提交
28 29 30
  "scripts": {
    "add": "node scripts/createComponentMode.js",
    "generate:file": "node scripts/generate-nutui.js",
W
wangbei16 已提交
31
    "generate:themes": "node scripts/generate-themes.js",
W
wangbei16 已提交
32
    "checked": "npm run generate:file && tsc",
W
wangbei16 已提交
33
    "dev": "npm run checked && vite --open --force",
W
wangbei16 已提交
34
    "build": "npm run checked && vite build --config vite.config.build.ts && tsc && npm run generate:themes",
W
wangbei16 已提交
35
    "build:site": "npm run checked && vite build --config vite.config.build.site.ts",
W
wangbei16 已提交
36 37 38 39 40 41 42
    "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 已提交
43 44
  },
  "dependencies": {
W
wangbei16 已提交
45
    "@bem-react/classname": "^1.5.10",
拧巴的猫 已提交
46 47
    "@react-spring/web": "^9.3.2",
    "@use-gesture/react": "^10.2.4",
W
wangbei16 已提交
48 49 50
    "classnames": "^2.3.1"
  },
  "devDependencies": {
W
wangbei16 已提交
51
    "@babel/preset-react": "^7.13.13",
W
wangbei16 已提交
52 53
    "@commitlint/cli": "^12.1.4",
    "@commitlint/config-conventional": "^12.1.4",
S
suzigang 已提交
54
    "@loadable/component": "^5.15.0",
W
wangbei16 已提交
55 56 57 58 59
    "@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 已提交
60
    "@types/react-transition-group": "^4.4.4",
W
wangbei16 已提交
61 62 63
    "@typescript-eslint/eslint-plugin": "^4.24.0",
    "@typescript-eslint/parser": "^4.24.0",
    "@vitejs/plugin-react-refresh": "^1.3.1",
W
wangbei16 已提交
64
    "autoprefixer": "^10.4.0",
S
suzigang 已提交
65
    "axios": "^0.21.1",
W
wangbei16 已提交
66 67 68 69 70 71 72
    "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 已提交
73
    "fs-extra": "^10.0.0",
W
wangbei16 已提交
74
    "husky": "^6.0.0",
W
wangbei16 已提交
75
    "inquirer": "^8.0.0",
W
wangbei16 已提交
76
    "lint-staged": "^11.0.0",
S
suzigang 已提交
77
    "marked": "^2.0.3",
W
wangbei16 已提交
78
    "prettier": "2.3.0",
S
suzigang 已提交
79 80 81 82
    "react": "^17.0.0",
    "react-dom": "^17.0.0",
    "react-router-dom": "^5.2.0",
    "react-transition-group": "^4.4.2",
W
wangbei16 已提交
83
    "sass": "^1.32.13",
W
wangbei16 已提交
84
    "shelljs": "^0.8.4",
W
wangbei16 已提交
85
    "typescript": "^4.1.2",
W
wangbei16 已提交
86
    "vinyl-fs": "^3.0.3",
W
wangbei16 已提交
87 88 89 90
    "vite": "^2.1.5",
    "vite-plugin-markdown": "^2.0.2"
  }
}