package.json 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. {
  2. "name": "@nutui/nutui",
  3. "version": "4.0.0",
  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. "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. "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:weapp": "npm run createTaroConfig && npm run checked:taro:vue && cd src/sites/mobile-taro/vue/ && npm run dev:weapp",
  46. "dev:taro:alipay": "npm run createTaroConfig && npm run checked:taro:vue && cd src/sites/mobile-taro/vue/ && npm run dev:alipay",
  47. "dev:taro:jd": "npm run createTaroConfig && npm run checked:taro:vue && cd src/sites/mobile-taro/vue/ && npm run dev:jd",
  48. "dev:taro:h5": "npm run createTaroConfig && npm run checked:taro:vue && cd src/sites/mobile-taro/vue/ && npm run dev:h5",
  49. "build:site": "npm run checked && vite build",
  50. "build:site-jdt": "npm run checked && vite build --config vite.config.jdt.ts ",
  51. "build:site:oss": "npm run checked && vite build --base=/nutui/4x/",
  52. "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 && vite build --config vite.config.build.locale.ts && npm run attrs",
  53. "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 && vite build --config vite.config.build.locale.ts && npm run attrs",
  54. "serve": "vite preview",
  55. "upload": "yarn build:site:oss && node ./jd/upload.js",
  56. "add": "node jd/createComponentMode.js",
  57. "publish:beta": "npm publish --tag=beta",
  58. "publish": "npm publish",
  59. "generate:file": "node jd/generate-nutui.cjs",
  60. "generate:file:taro:vue": "node jd/generate-nutui-taro-vue.cjs",
  61. "generate:types": "node jd/generate-types.cjs",
  62. "generate:types:taro": "node jd/generate-types-taro.cjs",
  63. "generate:themes": "node jd/generate-themes.cjs",
  64. "prepare": "husky install",
  65. "test": "jest",
  66. "release": "standard-version -a",
  67. "codeformat": "prettier --write .",
  68. "copydocs": "node ./jd/copymd.js",
  69. "createTaroConfig": "node ./jd/generate-taro-route.cjs",
  70. "attrs": "node ./jd/createAttributes.cjs",
  71. "dts": "vue-tsc --declaration --emitDeclarationOnly -p ./tsconfig.declaration.json && npm run generate:types"
  72. },
  73. "standard-version": {
  74. "scripts": {
  75. "postchangelog": "node ./jd/updateChangelog.js"
  76. }
  77. },
  78. "dependencies": {
  79. "@nutui/icons-vue": "0.0.15",
  80. "@nutui/icons-vue-taro": "0.0.2",
  81. "@tarojs/components": "3.5.6",
  82. "consola": "2.15.3",
  83. "sass": "^1.50.0",
  84. "vscode": "^1.1.37",
  85. "vue-router": "^4.0.12"
  86. },
  87. "devDependencies": {
  88. "@commitlint/cli": "^10.0.0",
  89. "@commitlint/config-conventional": "^10.0.0",
  90. "@tarojs/taro": "3.5.6",
  91. "@types/jest": "^26.0.22",
  92. "@types/node": "^17.0.16",
  93. "@typescript-eslint/eslint-plugin": "^4.20.0",
  94. "@typescript-eslint/parser": "^4.20.0",
  95. "@vitejs/plugin-vue": "^3.2.0",
  96. "@vue/compiler-dom": "^3.2.45",
  97. "@vue/compiler-sfc": "^3.2.45",
  98. "@vue/eslint-config-prettier": "^6.0.0",
  99. "@vue/eslint-config-typescript": "^7.0.0",
  100. "@vue/test-utils": "^2.0.0-rc.18",
  101. "autoprefixer": "^10.3.4",
  102. "axios": "^0.21.0",
  103. "canvas": "^2.9.0",
  104. "codesandbox": "^2.2.3",
  105. "eslint": "^7.23.2",
  106. "eslint-plugin-prettier": "^3.3.1",
  107. "eslint-plugin-vue": "^7.8.0",
  108. "eslint-visitor-keys": "2",
  109. "fs-extra": "^9.1.0",
  110. "highlight.js": "^10.3.1",
  111. "husky": "^6.0.0",
  112. "inquirer": "^8.2.0",
  113. "jest": "^26.6.3",
  114. "lint-staged": "^10.5.0",
  115. "lzutf8": "0.6.0",
  116. "markdown-it": "^13.0.1",
  117. "markdown-it-container": "^3.0.0",
  118. "prettier": "^2.0.0",
  119. "remark-codesandbox": "^0.10.1",
  120. "rollup-plugin-visualizer": "^5.8.3",
  121. "standard-version": "^9.3.0",
  122. "swiper": "6.5.1",
  123. "transliteration": "^2.2.0",
  124. "ts-jest": "^26.5.5",
  125. "typescript": "^4.9.3",
  126. "vite": "^3.2.4",
  127. "vite-plugin-dts": "^1.7.1",
  128. "vite-plugin-md": "^0.20.4",
  129. "vue": "^3.2.24",
  130. "vue-jest": "^5.0.0-alpha.7",
  131. "vue-tsc": "^1.0.9"
  132. },
  133. "eslintConfig": {
  134. "root": true,
  135. "env": {
  136. "node": true
  137. },
  138. "extends": [
  139. "plugin:vue/vue3-essential",
  140. "eslint:recommended",
  141. "@vue/typescript/recommended",
  142. "@vue/prettier",
  143. "@vue/prettier/@typescript-eslint"
  144. ],
  145. "parserOptions": {
  146. "ecmaVersion": 2020
  147. },
  148. "rules": {
  149. "vue/no-unused-components": "off",
  150. "no-debugger": "off"
  151. }
  152. },
  153. "engines": {
  154. "node": ">= 16.0.0",
  155. "pnpm": ">= 7.0.0"
  156. },
  157. "lint-staged": {
  158. "*.md": "prettier --write",
  159. "*.{ts,tsx,js,vue,scss}": "prettier --write"
  160. },
  161. "repository": {
  162. "type": "git",
  163. "url": "https://github.com/jdf2e/nutui.git"
  164. }
  165. }