package.json 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. {
  2. "name": "@nutui/nutui",
  3. "version": "3.0.0-beta.7",
  4. "npm": {
  5. "tag": "beta"
  6. },
  7. "description": "一套京东风格的轻量级移动端 Vue 组件库",
  8. "main": "dist/nutui.umd.js",
  9. "module": "dist/nutui.es.js",
  10. "style": "dist/style.css",
  11. "typings": "dist/index.d.ts",
  12. "keywords": [
  13. "nutui",
  14. "nutui2",
  15. "nutui3",
  16. "vue",
  17. "vue3",
  18. "webpack",
  19. "vue component",
  20. "vue3 component",
  21. "vite",
  22. "jdc",
  23. "jdcfe"
  24. ],
  25. "author": "jdcfe",
  26. "license": "MIT",
  27. "publishConfig": {
  28. "access": "public",
  29. "registry": "https://registry.npmjs.org/"
  30. },
  31. "files": [
  32. "dist",
  33. "README.md",
  34. "package.json",
  35. "LICENSE",
  36. "CHANGELOG.md"
  37. ],
  38. "scripts": {
  39. "checked": "npm run generate:file && tsc",
  40. "dev": "npm run checked && vite --open",
  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 && npm run generate:types && npm run generate:themes",
  45. "build:disperse": "vite build --config vite.config.build.disperse.ts",
  46. "serve": "vite preview",
  47. "upload": "yarn build:site:oss && node ./jd/upload.js",
  48. "add": "node jd/createComponentMode.js",
  49. "publish:beta": "npm publish --tag=beta",
  50. "generate:file": "node jd/generate-nutui.js",
  51. "generate:types": "node jd/generate-types.js",
  52. "generate:themes": "node jd/generate-themes.js"
  53. },
  54. "dependencies": {
  55. "axios": "^0.21.0",
  56. "gsap": "^3.6.0",
  57. "sass": "^1.32.8",
  58. "vue": "^3.0.5",
  59. "vue-router": "^4.0.4"
  60. },
  61. "devDependencies": {
  62. "@commitlint/cli": "^10.0.0",
  63. "@commitlint/config-conventional": "^10.0.0",
  64. "@types/node": "^14.14.31",
  65. "@vitejs/plugin-vue": "^1.1.5",
  66. "@vue/compiler-sfc": "^3.0.5",
  67. "@vue/eslint-config-prettier": "^6.0.0",
  68. "@vue/eslint-config-typescript": "^5.0.2",
  69. "eslint": "^6.7.2",
  70. "eslint-plugin-prettier": "^3.1.3",
  71. "eslint-plugin-vue": "^7.0.0-0",
  72. "front-matter": "^4.0.2",
  73. "fs-extra": "^9.1.0",
  74. "highlight.js": "^10.3.1",
  75. "husky": "^4.3.0",
  76. "lint-staged": "^10.5.0",
  77. "prettier": "^1.19.1",
  78. "transliteration": "^2.2.0",
  79. "typescript": "^4.1.5",
  80. "vite": "^2.1.2",
  81. "vite-plugin-md": "^0.6.1"
  82. },
  83. "eslintConfig": {
  84. "root": true,
  85. "env": {
  86. "node": true
  87. },
  88. "extends": [
  89. "plugin:vue/vue3-essential",
  90. "eslint:recommended",
  91. "@vue/typescript/recommended",
  92. "@vue/prettier",
  93. "@vue/prettier/@typescript-eslint"
  94. ],
  95. "parserOptions": {
  96. "ecmaVersion": 2020
  97. },
  98. "rules": {
  99. "vue/no-unused-components": "off",
  100. "no-debugger": "off"
  101. }
  102. },
  103. "husky": {
  104. "hooks": {
  105. "pre-commit": "node ./jd/verifymail.js && lint-staged",
  106. "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
  107. }
  108. },
  109. "lint-staged": {
  110. "*.{ts,js,vue,scss}": "prettier --write"
  111. },
  112. "repository": {
  113. "type": "git",
  114. "url": "https://github.com/jdf2e/nutui.git"
  115. }
  116. }