package.json 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. {
  2. "name": "@nutui/nutui",
  3. "version": "3.1.18",
  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. "keywords": [
  14. "nutui",
  15. "nutui2",
  16. "nutui3",
  17. "vue",
  18. "vue3",
  19. "webpack",
  20. "vue component",
  21. "vue3 component",
  22. "vite",
  23. "jdc",
  24. "jdcfe"
  25. ],
  26. "author": "jdcfe",
  27. "license": "MIT",
  28. "publishConfig": {
  29. "access": "public",
  30. "registry": "https://registry.npmjs.org/"
  31. },
  32. "files": [
  33. "dist",
  34. "README.md",
  35. "package.json",
  36. "LICENSE",
  37. "CHANGELOG.md"
  38. ],
  39. "scripts": {
  40. "checked": "npm run generate:file && tsc",
  41. "checked:taro:vue": "npm run generate:file:taro:vue",
  42. "dev": "npm run checked && vite --open --force",
  43. "dev:taro:vue": "npm run createTaroConfig && npm run checked:taro:vue && cd src/sites/mobile-taro/vue/ && npm run dev:weapp",
  44. "dev:taro:h5": "npm run createTaroConfig && npm run checked:taro:vue && cd src/sites/mobile-taro/vue/ && npm run dev:h5",
  45. "build:site": "npm run checked && vite build",
  46. "build:site:oss": "npm run checked && vite build --base=/nutui/3x/",
  47. "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",
  48. "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",
  49. "serve": "vite preview",
  50. "upload": "yarn build:site:oss && node ./jd/upload.js",
  51. "add": "node jd/createComponentMode.js",
  52. "publish:beta": "npm publish --tag=beta",
  53. "publish": "npm publish",
  54. "generate:file": "node jd/generate-nutui.js",
  55. "generate:file:taro:vue": "node jd/generate-nutui-taro-vue.js",
  56. "generate:types": "node jd/generate-types.js",
  57. "generate:types:taro": "node jd/generate-types-taro.js",
  58. "generate:themes": "node jd/generate-themes.js",
  59. "prepare": "husky install",
  60. "test": "jest",
  61. "release": "standard-version -a",
  62. "codeformat": "prettier --write .",
  63. "copydocs": "node ./jd/copymd.js",
  64. "createTaroConfig": "node ./jd/generate-taro-route.js",
  65. "attrs": "node ./jd/createAttributes.js"
  66. },
  67. "standard-version": {
  68. "scripts": {
  69. "postchangelog": "node ./jd/updateChangelog.js"
  70. }
  71. },
  72. "dependencies": {
  73. "sass": "^1.50.0",
  74. "vue-router": "^4.0.12"
  75. },
  76. "devDependencies": {
  77. "@commitlint/cli": "^10.0.0",
  78. "@commitlint/config-conventional": "^10.0.0",
  79. "@tarojs/taro": "^3.4.0",
  80. "@types/jest": "^26.0.22",
  81. "@types/node": "^17.0.16",
  82. "@typescript-eslint/eslint-plugin": "^4.20.0",
  83. "@typescript-eslint/parser": "^4.20.0",
  84. "@vitejs/plugin-legacy": "^1.6.4",
  85. "@vitejs/plugin-vue": "^2.1.0",
  86. "@vue/compiler-sfc": "^3.2.30",
  87. "@vue/eslint-config-prettier": "^6.0.0",
  88. "@vue/eslint-config-typescript": "^7.0.0",
  89. "@vue/test-utils": "^2.0.0-rc.18",
  90. "autoprefixer": "^10.3.4",
  91. "axios": "^0.21.0",
  92. "canvas": "^2.9.0",
  93. "eslint": "^7.23.2",
  94. "eslint-plugin-prettier": "^3.3.1",
  95. "eslint-plugin-vue": "^7.8.0",
  96. "eslint-visitor-keys": "2",
  97. "fs-extra": "^9.1.0",
  98. "highlight.js": "^10.3.1",
  99. "husky": "^6.0.0",
  100. "inquirer": "^8.2.0",
  101. "jest": "^26.6.3",
  102. "lint-staged": "^10.5.0",
  103. "lzutf8": "^0.6.0",
  104. "markdown-it-container": "^3.0.0",
  105. "prettier": "^2.0.0",
  106. "remark-codesandbox": "^0.10.1",
  107. "standard-version": "^9.3.0",
  108. "swiper": "6.5.1",
  109. "transliteration": "^2.2.0",
  110. "ts-jest": "^26.5.5",
  111. "typescript": "^4.1.5",
  112. "vite": "^2.9.1",
  113. "vite-plugin-dts": "^1.0.5",
  114. "vite-plugin-md": "^0.11.8",
  115. "vue": "^3.2.30",
  116. "vue-jest": "^5.0.0-alpha.7"
  117. },
  118. "eslintConfig": {
  119. "root": true,
  120. "env": {
  121. "node": true
  122. },
  123. "extends": [
  124. "plugin:vue/vue3-essential",
  125. "eslint:recommended",
  126. "@vue/typescript/recommended",
  127. "@vue/prettier",
  128. "@vue/prettier/@typescript-eslint"
  129. ],
  130. "parserOptions": {
  131. "ecmaVersion": 2020
  132. },
  133. "rules": {
  134. "vue/no-unused-components": "off",
  135. "no-debugger": "off"
  136. }
  137. },
  138. "lint-staged": {
  139. "*.md": "prettier --write",
  140. "*.{ts,tsx,js,vue,scss}": "prettier --write"
  141. },
  142. "repository": {
  143. "type": "git",
  144. "url": "https://github.com/jdf2e/nutui.git"
  145. }
  146. }