package.json 6.5 KB

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