package.json 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. {
  2. "name": "@nutui/nutui",
  3. "version": "3.1.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/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 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:gh-pages": "npm run checked && vite build --base=/nutui/",
  43. "build:site:oss": "npm run checked && vite build --base=/nutui/3x/",
  44. "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",
  45. "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 && npm run generate:themes && vite build --config vite.config.build.css.ts",
  46. "serve": "vite preview",
  47. "upload": "yarn build:site:oss && node ./jd/upload.js",
  48. "add": "node jd/createComponentMode.js",
  49. "publish:next": "npm publish --tag=next",
  50. "publish:taro": "npm publish",
  51. "generate:file": "node jd/generate-nutui.js",
  52. "generate:file:taro:vue": "node jd/generate-nutui-taro-vue.js",
  53. "generate:types": "node jd/generate-types.js",
  54. "generate:themes": "node jd/generate-themes.js",
  55. "prepare": "husky install",
  56. "test": "jest",
  57. "release": "standard-version -a",
  58. "copytaro": "node jd/copyDistToTaro.js"
  59. },
  60. "standard-version": {
  61. "scripts": {
  62. "postchangelog": "node ./jd/updateChangelog.js"
  63. }
  64. },
  65. "dependencies": {
  66. "pinyin": "^2.10.2"
  67. },
  68. "devDependencies": {
  69. "sass": "^1.34.0",
  70. "vue": "^3.0.5",
  71. "vue-router": "^4.0.4",
  72. "@commitlint/cli": "^10.0.0",
  73. "@commitlint/config-conventional": "^10.0.0",
  74. "@tarojs/taro": "^3.3.0-alpha.8",
  75. "@types/jest": "^26.0.22",
  76. "@types/node": "^14.14.31",
  77. "@types/pinyin": "^2.8.3",
  78. "@vitejs/plugin-legacy": "^1.4.0",
  79. "@vitejs/plugin-vue": "^1.2.2",
  80. "@vue/compiler-sfc": "^3.0.11",
  81. "@vue/eslint-config-prettier": "^6.0.0",
  82. "@vue/eslint-config-typescript": "^5.0.2",
  83. "@vue/test-utils": "^2.0.0-rc.6",
  84. "autoprefixer": "^10.3.4",
  85. "axios": "^0.21.0",
  86. "eslint": "^6.7.2",
  87. "eslint-plugin-prettier": "^3.1.3",
  88. "eslint-plugin-vue": "^7.0.0-0",
  89. "fs-extra": "^9.1.0",
  90. "highlight.js": "^10.3.1",
  91. "husky": "^6.0.0",
  92. "jest": "^26.6.3",
  93. "lint-staged": "^10.5.0",
  94. "prettier": "^2.0.0",
  95. "standard-version": "^9.3.0",
  96. "swiper": "6.5.1",
  97. "transliteration": "^2.2.0",
  98. "ts-jest": "^26.5.5",
  99. "typescript": "^4.1.5",
  100. "vite": "^2.3.4",
  101. "vite-plugin-md": "^0.11.0",
  102. "vue-jest": "^5.0.0-alpha.7"
  103. },
  104. "eslintConfig": {
  105. "root": true,
  106. "env": {
  107. "node": true
  108. },
  109. "extends": [
  110. "plugin:vue/vue3-essential",
  111. "eslint:recommended",
  112. "@vue/typescript/recommended",
  113. "@vue/prettier",
  114. "@vue/prettier/@typescript-eslint"
  115. ],
  116. "parserOptions": {
  117. "ecmaVersion": 2020
  118. },
  119. "rules": {
  120. "vue/no-unused-components": "off",
  121. "no-debugger": "off"
  122. }
  123. },
  124. "lint-staged": {
  125. "*.md": "prettier --write",
  126. "*.{ts,tsx,js,vue,scss}": "prettier --write"
  127. },
  128. "repository": {
  129. "type": "git",
  130. "url": "https://github.com/jdf2e/nutui.git"
  131. }
  132. }