package.json 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. {
  2. "name": "vue",
  3. "version": "2.7.13",
  4. "packageManager": "pnpm@7.1.0",
  5. "description": "Reactive, component-oriented view layer for modern web interfaces.",
  6. "main": "dist/vue.runtime.common.js",
  7. "module": "dist/vue.runtime.esm.js",
  8. "unpkg": "dist/vue.js",
  9. "jsdelivr": "dist/vue.js",
  10. "typings": "types/index.d.ts",
  11. "files": [
  12. "src",
  13. "dist/*.js",
  14. "dist/*.mjs",
  15. "types/*.d.ts",
  16. "compiler-sfc",
  17. "packages/compiler-sfc"
  18. ],
  19. "exports": {
  20. ".": {
  21. "import": {
  22. "node": "./dist/vue.runtime.mjs",
  23. "default": "./dist/vue.runtime.esm.js"
  24. },
  25. "require": "./dist/vue.runtime.common.js",
  26. "types": "./types/index.d.ts"
  27. },
  28. "./compiler-sfc": {
  29. "import": "./compiler-sfc/index.mjs",
  30. "require": "./compiler-sfc/index.js"
  31. },
  32. "./dist/*": "./dist/*",
  33. "./types/*": "./types/*",
  34. "./package.json": "./package.json"
  35. },
  36. "sideEffects": false,
  37. "gitHooks": {
  38. "pre-commit": "lint-staged",
  39. "commit-msg": "node scripts/verify-commit-msg.js"
  40. },
  41. "lint-staged": {
  42. "*.js": [
  43. "prettier --write"
  44. ],
  45. "*.ts": [
  46. "prettier --parser=typescript --write"
  47. ]
  48. },
  49. "repository": {
  50. "type": "git",
  51. "url": "git+https://github.com/vuejs/vue.git"
  52. },
  53. "keywords": [
  54. "vue"
  55. ],
  56. "author": "Evan You",
  57. "license": "MIT",
  58. "bugs": {
  59. "url": "https://github.com/vuejs/vue/issues"
  60. },
  61. "homepage": "https://github.com/vuejs/vue#readme",
  62. "dependencies": {
  63. "@vue/compiler-sfc": "2.7.13",
  64. "csstype": "^3.1.0"
  65. },
  66. "devDependencies": {
  67. "@babel/parser": "^7.18.4",
  68. "@microsoft/api-extractor": "^7.25.0",
  69. "@rollup/plugin-alias": "^3.1.9",
  70. "@rollup/plugin-commonjs": "^22.0.0",
  71. "@rollup/plugin-node-resolve": "^13.3.0",
  72. "@rollup/plugin-replace": "^4.0.0",
  73. "@types/he": "^1.1.2",
  74. "@types/node": "^17.0.41",
  75. "chalk": "^4.1.2",
  76. "conventional-changelog-cli": "^2.2.2",
  77. "cross-spawn": "^7.0.3",
  78. "enquirer": "^2.3.6",
  79. "esbuild": "^0.14.43",
  80. "execa": "^4.1.0",
  81. "he": "^1.2.0",
  82. "jasmine-core": "^4.2.0",
  83. "jsdom": "^19.0.0",
  84. "karma": "^6.3.20",
  85. "karma-chrome-launcher": "^3.1.1",
  86. "karma-cli": "^2.0.0",
  87. "karma-esbuild": "^2.2.4",
  88. "karma-jasmine": "^5.0.1",
  89. "lint-staged": "^12.5.0",
  90. "lodash": "^4.17.21",
  91. "marked": "^4.0.16",
  92. "minimist": "^1.2.6",
  93. "postcss": "^8.4.14",
  94. "prettier": "^2.6.2",
  95. "puppeteer": "^14.3.0",
  96. "rimraf": "^3.0.2",
  97. "rollup": "^2.79.1",
  98. "rollup-plugin-typescript2": "^0.32.0",
  99. "semver": "^7.3.7",
  100. "shelljs": "^0.8.5",
  101. "terser": "^5.14.0",
  102. "todomvc-app-css": "^2.4.2",
  103. "ts-node": "^10.8.1",
  104. "tslib": "^2.4.0",
  105. "typescript": "^4.8.4",
  106. "vitest": "^0.12.10",
  107. "yorkie": "^2.0.0"
  108. },
  109. "scripts": {
  110. "dev": "rollup -w -c scripts/config.js --environment TARGET:full-dev",
  111. "dev:cjs": "rollup -w -c scripts/config.js --environment TARGET:runtime-cjs-dev",
  112. "dev:esm": "rollup -w -c scripts/config.js --environment TARGET:runtime-esm",
  113. "dev:ssr": "rollup -w -c scripts/config.js --environment TARGET:server-renderer",
  114. "dev:compiler": "rollup -w -c scripts/config.js --environment TARGET:compiler ",
  115. "build": "node scripts/build.js",
  116. "build:ssr": "npm run build -- runtime-cjs,server-renderer",
  117. "build:types": "rimraf temp && tsc --declaration --emitDeclarationOnly --outDir temp && api-extractor run && api-extractor run -c packages/compiler-sfc/api-extractor.json",
  118. "test": "npm run ts-check && npm run test:types && npm run test:unit && npm run test:e2e && npm run test:ssr && npm run test:sfc",
  119. "test:unit": "vitest run test/unit",
  120. "test:ssr": "npm run build:ssr && vitest run server-renderer",
  121. "test:sfc": "vitest run compiler-sfc",
  122. "test:e2e": "npm run build -- full-prod,server-renderer-basic && vitest run test/e2e",
  123. "test:transition": "karma start test/transition/karma.conf.js",
  124. "test:types": "npm run build:types && tsc -p ./types/tsconfig.json",
  125. "format": "prettier --write --parser typescript \"(src|test|packages|types)/**/*.ts\"",
  126. "ts-check": "tsc -p tsconfig.json --noEmit",
  127. "ts-check:test": "tsc -p test/tsconfig.json --noEmit",
  128. "bench:ssr": "npm run build:ssr && node benchmarks/ssr/renderToString.js && node benchmarks/ssr/renderToStream.js",
  129. "release": "node scripts/release.js",
  130. "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s"
  131. }
  132. }