package.json 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. {
  2. "name": "vue-router",
  3. "version": "3.6.5",
  4. "description": "Official router for Vue.js 2",
  5. "author": "Evan You",
  6. "license": "MIT",
  7. "main": "dist/vue-router.common.js",
  8. "module": "dist/vue-router.esm.js",
  9. "unpkg": "dist/vue-router.js",
  10. "jsdelivr": "dist/vue-router.js",
  11. "sideEffects": false,
  12. "repository": {
  13. "type": "git",
  14. "url": "https://github.com/vuejs/vue-router.git"
  15. },
  16. "typings": "types/index.d.ts",
  17. "files": [
  18. "src",
  19. "dist/*.js",
  20. "dist/*.mjs",
  21. "types/*.d.ts",
  22. "composables.mjs",
  23. "composables.js",
  24. "composables.d.ts",
  25. "vetur/tags.json",
  26. "vetur/attributes.json"
  27. ],
  28. "exports": {
  29. ".": {
  30. "import": {
  31. "node": "./dist/vue-router.mjs",
  32. "default": "./dist/vue-router.esm.js"
  33. },
  34. "require": "./dist/vue-router.common.js",
  35. "types": "./types/index.d.ts"
  36. },
  37. "./composables": {
  38. "import": "./composables.mjs",
  39. "require": "./composables.js",
  40. "types": "./composables.d.ts"
  41. },
  42. "./dist/*": "./dist/*",
  43. "./types/*": "./types/*",
  44. "./package.json": "./package.json"
  45. },
  46. "vetur": {
  47. "tags": "vetur/tags.json",
  48. "attributes": "vetur/attributes.json"
  49. },
  50. "keywords": [
  51. "vue",
  52. "router",
  53. "routing"
  54. ],
  55. "scripts": {
  56. "dev": "node examples/server.js",
  57. "dev:dist": "rollup -wm -c build/rollup.dev.config.js",
  58. "build": "node build/build.js",
  59. "lint": "eslint src examples test",
  60. "test": "npm run lint && npm run flow && npm run test:unit && npm run test:e2e && npm run test:types",
  61. "flow": "flow check",
  62. "test:unit": "jasmine JASMINE_CONFIG_PATH=test/unit/jasmine.json",
  63. "test:e2e": "node test/e2e/runner.js",
  64. "test:e2e:ci": "node test/e2e/runner.js --local -e ie,android44 -c test/e2e/nightwatch.browserstack.js test/e2e/specs/active-links.js",
  65. "test:e2e:ff": "node test/e2e/runner.js -e firefox -c test/e2e/nightwatch.config.js",
  66. "test:e2e:ie9": "node test/e2e/runner.js --local -e ie9 -c test/e2e/nightwatch.browserstack.js --skiptags history,ie9-fail",
  67. "test:types": "tsc -p types/test",
  68. "docs": "vuepress dev docs",
  69. "docs:build": "vuepress build docs",
  70. "changelog": "conventional-changelog -p angular -r 2 -i CHANGELOG.md -s",
  71. "release": "bash scripts/release.sh",
  72. "commit": "git-cz"
  73. },
  74. "gitHooks": {
  75. "pre-commit": "lint-staged",
  76. "commit-msg": "node scripts/verifyCommitMsg.js"
  77. },
  78. "lint-staged": {
  79. "*.{js,vue}": [
  80. "eslint --fix",
  81. "git add"
  82. ]
  83. },
  84. "devDependencies": {
  85. "@rollup/plugin-commonjs": "^17.0.0",
  86. "@rollup/plugin-node-resolve": "^11.0.0",
  87. "@vuepress/plugin-pwa": "^1.5.3",
  88. "@vuepress/theme-vue": "^1.5.3",
  89. "axios": "^0.21.1",
  90. "babel-core": "^6.24.1",
  91. "babel-eslint": "^10.0.2",
  92. "babel-loader": "^7.1.3",
  93. "babel-plugin-syntax-dynamic-import": "^6.18.0",
  94. "babel-preset-env": "^1.6.1",
  95. "babel-preset-flow-vue": "^1.0.0",
  96. "browserstack-local": "^1.4.8",
  97. "buble": "^0.19.8",
  98. "chromedriver": "^96.0.0",
  99. "conventional-changelog-cli": "^2.0.11",
  100. "cross-spawn": "^7.0.3",
  101. "css-loader": "^2.1.1",
  102. "dotenv": "^8.2.0",
  103. "es6-promise": "^4.2.8",
  104. "eslint": "^4.19.1",
  105. "eslint-plugin-flowtype": "^2.46.1",
  106. "eslint-plugin-jasmine": "^2.10.1",
  107. "eslint-plugin-vue-libs": "^2.1.0",
  108. "express": "^4.17.1",
  109. "express-urlrewrite": "^1.2.0",
  110. "flow-bin": "^0.66.0",
  111. "geckodriver": "^1.20.0",
  112. "jasmine": "2.8.0",
  113. "lint-staged": "^8.2.0",
  114. "nightwatch": "^1.3.6",
  115. "nightwatch-helpers": "^1.0.0",
  116. "path-to-regexp": "^1.8.0",
  117. "rollup": "^2.34.1",
  118. "rollup-plugin-buble": "^0.19.8",
  119. "rollup-plugin-flow-no-whitespace": "^1.0.0",
  120. "rollup-plugin-replace": "^2.0.0",
  121. "rollup-watch": "^4.0.0",
  122. "selenium-server": "^3.141.59",
  123. "terser": "^4.2.0",
  124. "typescript": "^4.7.0",
  125. "vue": "^2.7.0",
  126. "vue-loader": "^15.9.3",
  127. "vue-server-renderer": "^2.7.0",
  128. "vue-template-compiler": "^2.7.0",
  129. "vuepress": "^1.5.3",
  130. "vuepress-theme-vue": "^1.1.1",
  131. "webpack": "^4.35.2",
  132. "webpack-dev-middleware": "^3.7.0",
  133. "yorkie": "^2.0.0"
  134. },
  135. "bugs": {
  136. "url": "https://github.com/vuejs/vue-router/issues"
  137. },
  138. "homepage": "https://github.com/vuejs/vue-router#readme"
  139. }