package.json 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. {
  2. "name": "@nutui/nutui",
  3. "version": "4.0.0-beta.24",
  4. "description": "京东风格的轻量级移动端 Vue2、Vue3 组件库(支持小程序开发)",
  5. "main": "dist/nutui.umd.js",
  6. "module": "dist/nutui.es.js",
  7. "style": "dist/style.css",
  8. "type": "module",
  9. "typings": "dist/types/index.d.ts",
  10. "web-types": "dist/smartips/web-types.json",
  11. "keywords": [
  12. "nutui",
  13. "nutui2",
  14. "nutui3",
  15. "nutui4",
  16. "vue",
  17. "vue3",
  18. "webpack",
  19. "vue component",
  20. "vue3 component",
  21. "vite",
  22. "jdc",
  23. "jdcfe"
  24. ],
  25. "author": "jdcfe",
  26. "license": "MIT",
  27. "publishConfig": {
  28. "access": "public",
  29. "registry": "https://registry.npmjs.org/"
  30. },
  31. "files": [
  32. "dist",
  33. "README.md",
  34. "package.json",
  35. "LICENSE",
  36. "CHANGELOG.md"
  37. ],
  38. "scripts": {
  39. "checked": "npm run generate:file && tsc",
  40. "checked:taro:vue": "npm run generate:file:taro:vue",
  41. "dev": "npm run checked && npm run dts && vite --open --force",
  42. "dev:taro:weapp": "npm run createTaroConfig && npm run checked:taro:vue && npm run dts && cd src/sites/mobile-taro/vue/ && npm run dev:weapp",
  43. "dev:taro:alipay": "npm run createTaroConfig && npm run checked:taro:vue && npm run dts && cd src/sites/mobile-taro/vue/ && npm run dev:alipay",
  44. "dev:taro:jd": "npm run createTaroConfig && npm run checked:taro:vue && npm run dts && cd src/sites/mobile-taro/vue/ && npm run dev:jd",
  45. "dev:taro:h5": "npm run createTaroConfig && npm run checked:taro:vue && npm run dts && cd src/sites/mobile-taro/vue/ && npm run dev:h5",
  46. "build:site": "npm run checked && vite build",
  47. "build:site-jdt": "npm run checked && vite build --config vite.config.jdt.ts ",
  48. "build:site:oss": "npm run checked && vite build --base=/nutui/4x/",
  49. "build": "npm run checked && vite build --config vite.config.build.ts && vite build --config vite.config.build.disperse.ts && npm run generate:themes && vite build --config vite.config.build.css.ts && vite build --config vite.config.build.locale.ts && npm run dts && npm run attrs && node jd/generate-unplugin-deps.cjs nutui && node jd/copy-dist.cjs nutui",
  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:themes && vite build --config vite.config.build.css.ts && vite build --config vite.config.build.locale.ts && npm run dts:taro && npm run attrs:taro && node jd/generate-unplugin-deps.cjs nutui-taro && node jd/copy-dist.cjs nutui-taro",
  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.cjs",
  57. "generate:file:taro:vue": "node jd/generate-nutui-taro-vue.cjs",
  58. "generate:types": "rimraf ./dist/types && node jd/generate-types.cjs",
  59. "generate:types:taro": "rimraf ./dist/types && node jd/generate-types-taro.cjs",
  60. "generate:themes": "node jd/generate-themes.cjs",
  61. "prepare": "husky install",
  62. "test": "jest",
  63. "release": "standard-version -a",
  64. "codeformat": "prettier --write .",
  65. "copydocs": "node ./jd/copymd.cjs",
  66. "createTaroConfig": "node ./jd/generate-taro-route.cjs",
  67. "attrs:taro": "node ./jd/createAttributes.cjs taro",
  68. "attrs": "node ./jd/createAttributes.cjs",
  69. "dts": "rimraf ./tsc/type && vue-tsc --declaration --emitDeclarationOnly -p ./tsconfig.declaration.json && npm run generate:types",
  70. "dts:taro": "rimraf ./tsc/type && vue-tsc --declaration --emitDeclarationOnly -p ./tsconfig.declaration.taro.json && npm run generate:types:taro",
  71. "copy:h5": "node ./jd/copyh5.cjs",
  72. "copy:taro": "node ./jd/copytaro.cjs"
  73. },
  74. "standard-version": {
  75. "scripts": {
  76. "postchangelog": "node ./jd/updateChangelog.js"
  77. }
  78. },
  79. "dependencies": {
  80. "@nutui/icons-vue": "^0.0.24",
  81. "@nutui/icons-vue-taro": "^0.0.8",
  82. "@tarojs/components": "3.5.6",
  83. "sass": "^1.50.0",
  84. "vue-router": "^4.0.12"
  85. },
  86. "devDependencies": {
  87. "@commitlint/cli": "^10.0.0",
  88. "@commitlint/config-conventional": "^10.0.0",
  89. "@tarojs/cli": "3.5.6",
  90. "@tarojs/mini-runner": "3.5.6",
  91. "@tarojs/plugin-framework-vue3": "3.5.6",
  92. "@tarojs/plugin-html": "3.5.6",
  93. "@tarojs/plugin-platform-weapp": "3.5.6",
  94. "@tarojs/runtime": "3.5.6",
  95. "@tarojs/taro": "3.5.6",
  96. "@tarojs/webpack5-runner": "3.5.6",
  97. "@types/jest": "^26.0.22",
  98. "@types/node": "^17.0.16",
  99. "@typescript-eslint/eslint-plugin": "^4.20.0",
  100. "@typescript-eslint/parser": "^4.20.0",
  101. "@vitejs/plugin-vue": "^4.0.0",
  102. "@vue/compiler-dom": "^3.2.45",
  103. "@vue/compiler-sfc": "^3.2.45",
  104. "@vue/eslint-config-prettier": "^6.0.0",
  105. "@vue/eslint-config-typescript": "^7.0.0",
  106. "@vue/test-utils": "^2.0.0-rc.18",
  107. "autoprefixer": "^10.3.4",
  108. "axios": "^0.21.0",
  109. "babel-preset-taro": "3.5.6",
  110. "canvas": "^2.9.0",
  111. "codesandbox": "^2.2.3",
  112. "eslint": "^7.23.2",
  113. "eslint-config-taro": "3.5.6",
  114. "eslint-plugin-prettier": "^3.3.1",
  115. "eslint-plugin-vue": "^7.8.0",
  116. "eslint-visitor-keys": "2",
  117. "fs-extra": "^9.1.0",
  118. "highlight.js": "^10.3.1",
  119. "husky": "^6.0.0",
  120. "inquirer": "^8.2.0",
  121. "jest": "^26.6.3",
  122. "lint-staged": "^10.5.0",
  123. "lzutf8": "0.6.0",
  124. "markdown-it": "^13.0.1",
  125. "markdown-it-container": "^3.0.0",
  126. "prettier": "^2.0.0",
  127. "remark-codesandbox": "^0.10.1",
  128. "rimraf": "^3.0.2",
  129. "rollup-plugin-visualizer": "^5.8.3",
  130. "standard-version": "^9.3.0",
  131. "swiper": "6.5.1",
  132. "transliteration": "^2.2.0",
  133. "ts-jest": "^26.5.5",
  134. "typescript": "^4.9.3",
  135. "vite": "^4.0.0",
  136. "vite-plugin-md": "^0.21.5",
  137. "vscode": "^1.1.37",
  138. "vue": "^3.2.24",
  139. "vue-jest": "^5.0.0-alpha.7",
  140. "vue-tsc": "^1.0.9",
  141. "webpack": "^5.69.0"
  142. },
  143. "eslintConfig": {
  144. "root": true,
  145. "env": {
  146. "node": true
  147. },
  148. "extends": [
  149. "plugin:vue/vue3-essential",
  150. "eslint:recommended",
  151. "@vue/typescript/recommended",
  152. "@vue/prettier",
  153. "@vue/prettier/@typescript-eslint"
  154. ],
  155. "parserOptions": {
  156. "ecmaVersion": 2020
  157. },
  158. "rules": {
  159. "vue/no-unused-components": "off",
  160. "no-debugger": "off"
  161. }
  162. },
  163. "engines": {
  164. "node": ">= 16.0.0",
  165. "pnpm": ">= 7.0.0"
  166. },
  167. "lint-staged": {
  168. "*.md": "prettier --write",
  169. "*.{ts,tsx,js,vue,scss}": "prettier --write"
  170. },
  171. "repository": {
  172. "type": "git",
  173. "url": "https://github.com/jdf2e/nutui.git"
  174. }
  175. }