package.json 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. {
  2. "name": "@nutui/nutui",
  3. "version": "3.3.6",
  4. "description": "京东风格的轻量级移动端 Vue2、Vue3 组件库(支持小程序开发)",
  5. "main": "dist/nutui.umd.js",
  6. "module": "dist/nutui.es.js",
  7. "style": "dist/style.css",
  8. "typings": "dist/types/index.d.ts",
  9. "vetur": {
  10. "tags": "dist/smartips/tags.json",
  11. "attributes": "dist/smartips/attributes.json"
  12. },
  13. "web-types": "dist/smartips/web-types.json",
  14. "keywords": [
  15. "nutui",
  16. "nutui2",
  17. "nutui3",
  18. "vue",
  19. "vue3",
  20. "webpack",
  21. "vue component",
  22. "vue3 component",
  23. "vite",
  24. "jdc",
  25. "jdcfe"
  26. ],
  27. "author": "jdcfe",
  28. "license": "MIT",
  29. "publishConfig": {
  30. "access": "public",
  31. "registry": "https://registry.npmjs.org/"
  32. },
  33. "files": [
  34. "dist",
  35. "README.md",
  36. "package.json",
  37. "LICENSE",
  38. "CHANGELOG.md"
  39. ],
  40. "scripts": {
  41. "checked": "npm run generate:file && tsc",
  42. "checked:taro:vue": "npm run generate:file:taro:vue",
  43. "dev": "npm run checked && vite --open --force",
  44. "dev:jdt": "npm run checked && vite --open --force --config vite.config.jdt.ts",
  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/3x/",
  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 && node jd/generate-entry-es.js && node jd/copy-dist.js nutui",
  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 && node jd/copy-dist.js nutui-taro",
  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.js",
  60. "generate:file:taro:vue": "node jd/generate-nutui-taro-vue.js",
  61. "generate:types": "node jd/generate-types.js",
  62. "generate:types:taro": "node jd/generate-types-taro.js",
  63. "generate:themes": "node jd/generate-themes.js",
  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.js",
  70. "attrs": "node ./jd/createAttributes.js"
  71. },
  72. "standard-version": {
  73. "scripts": {
  74. "postchangelog": "node ./jd/updateChangelog.js"
  75. }
  76. },
  77. "dependencies": {
  78. "consola": "2.15.3",
  79. "sass": "^1.50.0",
  80. "vscode": "^1.1.37",
  81. "vue-router": "^4.0.12"
  82. },
  83. "devDependencies": {
  84. "@commitlint/cli": "^10.0.0",
  85. "@commitlint/config-conventional": "^10.0.0",
  86. "@tarojs/components": "3.5.6",
  87. "@tarojs/taro": "3.5.6",
  88. "@types/jest": "^26.0.22",
  89. "@types/node": "^17.0.16",
  90. "@typescript-eslint/eslint-plugin": "^4.20.0",
  91. "@typescript-eslint/parser": "^4.20.0",
  92. "@vitejs/plugin-legacy": "^1.6.4",
  93. "@vitejs/plugin-vue": "^2.1.0",
  94. "@vue/compiler-sfc": "^3.2.30",
  95. "@vue/eslint-config-prettier": "^6.0.0",
  96. "@vue/eslint-config-typescript": "^7.0.0",
  97. "@vue/test-utils": "^2.0.0-rc.18",
  98. "autoprefixer": "^10.3.4",
  99. "axios": "^0.21.0",
  100. "canvas": "^2.10.2",
  101. "cz-git": "^1.3.8",
  102. "eslint": "^7.23.2",
  103. "eslint-plugin-prettier": "^3.3.1",
  104. "eslint-plugin-vue": "^7.8.0",
  105. "eslint-visitor-keys": "2",
  106. "fs-extra": "^11.1.0",
  107. "highlight.js": "^10.3.1",
  108. "husky": "^6.0.0",
  109. "inquirer": "^8.2.0",
  110. "jest": "^26.6.3",
  111. "lint-staged": "^10.5.0",
  112. "lzutf8": "0.6.0",
  113. "markdown-it-container": "^3.0.0",
  114. "prettier": "^2.0.0",
  115. "remark-codesandbox": "^0.10.1",
  116. "standard-version": "^9.3.0",
  117. "swiper": "6.5.1",
  118. "transliteration": "^2.2.0",
  119. "ts-jest": "^26.5.5",
  120. "typescript": "^4.6.4",
  121. "vite": "^2.9.15",
  122. "vite-plugin-dts": "1.4.1",
  123. "vite-plugin-md": "^0.11.8",
  124. "vue": "^3.2.24",
  125. "vue-jest": "^5.0.0-alpha.7"
  126. },
  127. "eslintConfig": {
  128. "root": true,
  129. "env": {
  130. "node": true
  131. },
  132. "extends": [
  133. "plugin:vue/vue3-essential",
  134. "eslint:recommended",
  135. "@vue/typescript/recommended",
  136. "@vue/prettier",
  137. "@vue/prettier/@typescript-eslint"
  138. ],
  139. "parserOptions": {
  140. "ecmaVersion": 2020
  141. },
  142. "rules": {
  143. "vue/no-unused-components": "off",
  144. "no-debugger": "off"
  145. }
  146. },
  147. "config": {
  148. "commitizen": {
  149. "path": "node_modules/cz-git"
  150. }
  151. },
  152. "lint-staged": {
  153. "*.md": "prettier --write",
  154. "*.{ts,tsx,js,vue,scss}": "prettier --write"
  155. },
  156. "repository": {
  157. "type": "git",
  158. "url": "https://github.com/jdf2e/nutui.git"
  159. }
  160. }