package.json 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. {
  2. "name": "@nutui/nutui",
  3. "version": "3.1.18",
  4. "description": "京东风格的轻量级移动端 Vue2、Vue3 组件库(支持小程序开发)",
  5. "main": "dist/nutui.umd.js",
  6. "module": "dist/nutui.es.js",
  7. "style": "dist/style.css",
  8. "typings": "dist/types/index.d.ts",
  9. "exports": {
  10. ".": {
  11. "import": "./dist/nutui.es.js",
  12. "require": "./dist/nutui.umd.js"
  13. }
  14. },
  15. "keywords": [
  16. "nutui",
  17. "nutui2",
  18. "nutui3",
  19. "vue",
  20. "vue3",
  21. "webpack",
  22. "vue component",
  23. "vue3 component",
  24. "vite",
  25. "jdc",
  26. "jdcfe"
  27. ],
  28. "author": "jdcfe",
  29. "license": "MIT",
  30. "publishConfig": {
  31. "access": "public",
  32. "registry": "https://registry.npmjs.org/"
  33. },
  34. "files": [
  35. "dist",
  36. "README.md",
  37. "package.json",
  38. "LICENSE",
  39. "CHANGELOG.md"
  40. ],
  41. "scripts": {
  42. "checked": "npm run generate:file && tsc",
  43. "checked:taro:vue": "npm run generate:file:taro:vue",
  44. "dev": "npm run checked && vite --open --force",
  45. "dev:taro:vue": "npm run createTaroConfig && npm run checked:taro:vue && cd src/sites/mobile-taro/vue/ && npm run dev:weapp",
  46. "dev:taro:h5": "npm run checked:taro:vue && cd src/sites/mobile-taro/vue/ && npm run dev:h5",
  47. "build:site": "npm run checked && vite build",
  48. "build:site:oss": "npm run checked && vite build --base=/nutui/3x/",
  49. "build": "npm run checked && vite build --config vite.config.build.ts && vite build --config vite.config.build.disperse.ts && npm run generate:types && npm run generate:themes && vite build --config vite.config.build.css.ts",
  50. "build:taro:vue": "npm run checked:taro:vue && vite build --config vite.config.build.taro.vue.ts && vite build --config vite.config.build.taro.vue.disperse.ts && npm run generate:types:taro && npm run generate:themes && vite build --config vite.config.build.css.ts",
  51. "serve": "vite preview",
  52. "upload": "yarn build:site:oss && node ./jd/upload.js",
  53. "add": "node jd/createComponentMode.js",
  54. "publish:beta": "npm publish --tag=beta",
  55. "publish": "npm publish",
  56. "generate:file": "node jd/generate-nutui.js",
  57. "generate:file:taro:vue": "node jd/generate-nutui-taro-vue.js",
  58. "generate:types": "node jd/generate-types.js",
  59. "generate:types:taro": "node jd/generate-types-taro.js",
  60. "generate:themes": "node jd/generate-themes.js",
  61. "prepare": "husky install",
  62. "test": "jest",
  63. "release": "standard-version -a",
  64. "codeformat": "prettier --write .",
  65. "copydocs": "node ./jd/copymd.js",
  66. "createTaroConfig": "node ./jd/generate-taro-route.js"
  67. },
  68. "standard-version": {
  69. "scripts": {
  70. "postchangelog": "node ./jd/updateChangelog.js"
  71. }
  72. },
  73. "dependencies": {
  74. "sass": "~1.32.0",
  75. "vue-router": "^4.0.12"
  76. },
  77. "devDependencies": {
  78. "@commitlint/cli": "^10.0.0",
  79. "@commitlint/config-conventional": "^10.0.0",
  80. "@tarojs/taro": "^3.4.0",
  81. "@types/jest": "^26.0.22",
  82. "@types/node": "^17.0.16",
  83. "@typescript-eslint/eslint-plugin": "^4.20.0",
  84. "@typescript-eslint/parser": "^4.20.0",
  85. "@vitejs/plugin-legacy": "^1.6.4",
  86. "@vitejs/plugin-vue": "^2.1.0",
  87. "@vue/compiler-sfc": "^3.2.30",
  88. "@vue/eslint-config-prettier": "^6.0.0",
  89. "@vue/eslint-config-typescript": "^7.0.0",
  90. "@vue/test-utils": "^2.0.0-rc.18",
  91. "autoprefixer": "^10.3.4",
  92. "axios": "^0.21.0",
  93. "canvas": "^2.9.0",
  94. "eslint": "^7.23.2",
  95. "eslint-plugin-prettier": "^3.3.1",
  96. "eslint-plugin-vue": "^7.8.0",
  97. "eslint-visitor-keys": "2",
  98. "fs-extra": "^9.1.0",
  99. "highlight.js": "^10.3.1",
  100. "husky": "^6.0.0",
  101. "inquirer": "^8.2.0",
  102. "jest": "^26.6.3",
  103. "lint-staged": "^10.5.0",
  104. "lzutf8": "^0.6.0",
  105. "markdown-it-container": "^3.0.0",
  106. "prettier": "^2.0.0",
  107. "remark-codesandbox": "^0.10.1",
  108. "standard-version": "^9.3.0",
  109. "swiper": "6.5.1",
  110. "transliteration": "^2.2.0",
  111. "ts-jest": "^26.5.5",
  112. "typescript": "^4.1.5",
  113. "vite": "^2.7.13",
  114. "vite-plugin-dts": "^1.0.5",
  115. "vite-plugin-md": "^0.11.8",
  116. "vue": "^3.2.30",
  117. "vue-jest": "^5.0.0-alpha.7"
  118. },
  119. "eslintConfig": {
  120. "root": true,
  121. "env": {
  122. "node": true
  123. },
  124. "extends": [
  125. "plugin:vue/vue3-essential",
  126. "eslint:recommended",
  127. "@vue/typescript/recommended",
  128. "@vue/prettier",
  129. "@vue/prettier/@typescript-eslint"
  130. ],
  131. "parserOptions": {
  132. "ecmaVersion": 2020
  133. },
  134. "rules": {
  135. "vue/no-unused-components": "off",
  136. "no-debugger": "off"
  137. }
  138. },
  139. "lint-staged": {
  140. "*.md": "prettier --write",
  141. "*.{ts,tsx,js,vue,scss}": "prettier --write"
  142. },
  143. "repository": {
  144. "type": "git",
  145. "url": "https://github.com/jdf2e/nutui.git"
  146. }
  147. }