package.json 6.4 KB

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