package.json 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  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"
  72. },
  73. "standard-version": {
  74. "scripts": {
  75. "postchangelog": "node ./jd/updateChangelog.js"
  76. }
  77. },
  78. "dependencies": {
  79. "@nutui/icons-vue": "0.0.5",
  80. "@tarojs/components": "3.5.6",
  81. "consola": "2.15.3",
  82. "sass": "^1.50.0",
  83. "vscode": "^1.1.37",
  84. "vue-router": "^4.0.12"
  85. },
  86. "devDependencies": {
  87. "@commitlint/cli": "^10.0.0",
  88. "@commitlint/config-conventional": "^10.0.0",
  89. "@tarojs/taro": "3.5.6",
  90. "@types/jest": "^26.0.22",
  91. "@types/node": "^17.0.16",
  92. "@typescript-eslint/eslint-plugin": "^4.20.0",
  93. "@typescript-eslint/parser": "^4.20.0",
  94. "@vitejs/plugin-vue": "^3.2.0",
  95. "@vue/compiler-dom": "^3.2.45",
  96. "@vue/compiler-sfc": "^3.2.45",
  97. "@vue/eslint-config-prettier": "^6.0.0",
  98. "@vue/eslint-config-typescript": "^7.0.0",
  99. "@vue/test-utils": "^2.0.0-rc.18",
  100. "autoprefixer": "^10.3.4",
  101. "axios": "^0.21.0",
  102. "canvas": "^2.9.0",
  103. "codesandbox": "^2.2.3",
  104. "eslint": "^7.23.2",
  105. "eslint-plugin-prettier": "^3.3.1",
  106. "eslint-plugin-vue": "^7.8.0",
  107. "eslint-visitor-keys": "2",
  108. "fs-extra": "^9.1.0",
  109. "highlight.js": "^10.3.1",
  110. "husky": "^6.0.0",
  111. "inquirer": "^8.2.0",
  112. "jest": "^26.6.3",
  113. "lint-staged": "^10.5.0",
  114. "lzutf8": "0.6.0",
  115. "markdown-it": "^13.0.1",
  116. "markdown-it-container": "^3.0.0",
  117. "prettier": "^2.0.0",
  118. "remark-codesandbox": "^0.10.1",
  119. "rollup-plugin-visualizer": "^5.8.3",
  120. "standard-version": "^9.3.0",
  121. "swiper": "6.5.1",
  122. "transliteration": "^2.2.0",
  123. "ts-jest": "^26.5.5",
  124. "typescript": "^4.9.3",
  125. "vite": "^3.2.4",
  126. "vite-plugin-dts": "^1.7.1",
  127. "vite-plugin-md": "^0.20.4",
  128. "vue": "^3.2.24",
  129. "vue-jest": "^5.0.0-alpha.7",
  130. "vue-tsc": "^1.0.9"
  131. },
  132. "eslintConfig": {
  133. "root": true,
  134. "env": {
  135. "node": true
  136. },
  137. "extends": [
  138. "plugin:vue/vue3-essential",
  139. "eslint:recommended",
  140. "@vue/typescript/recommended",
  141. "@vue/prettier",
  142. "@vue/prettier/@typescript-eslint"
  143. ],
  144. "parserOptions": {
  145. "ecmaVersion": 2020
  146. },
  147. "rules": {
  148. "vue/no-unused-components": "off",
  149. "no-debugger": "off"
  150. }
  151. },
  152. "engines": {
  153. "node": ">= 16.0.0",
  154. "pnpm": ">= 7.0.0"
  155. },
  156. "lint-staged": {
  157. "*.md": "prettier --write",
  158. "*.{ts,tsx,js,vue,scss}": "prettier --write"
  159. },
  160. "repository": {
  161. "type": "git",
  162. "url": "https://github.com/jdf2e/nutui.git"
  163. }
  164. }