package.json 5.1 KB

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