package.json 4.5 KB

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