package.json 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. {
  2. "name": "wepy",
  3. "version": "0.0.0",
  4. "description": "",
  5. "main": "",
  6. "scripts": {
  7. "lint": "eslint ./ --ext .js",
  8. "dev": "chokidar '**/*.wpy' '**/*.js' -c 'npm run dev:all' -i '/dist/'",
  9. "build": "node ./scripts/build.js",
  10. "build:core": "rollup -w -c scripts/config.js --environment TARGET:core",
  11. "bootstrap": "./node_modules/.bin/lerna bootstrap --loglevel silly",
  12. "bootstrap:prod": "./node_modules/.bin/lerna bootstrap --loglevel -- --production --no-optional",
  13. "test": "npm run lint -- --fix && npm run test:cov",
  14. "test:unit": "node ./test/unit.js",
  15. "test:cov": "nyc npm run test:unit",
  16. "test:build": "./test/build.sh",
  17. "clean": "node ./scripts/clean.js",
  18. "view": "./node_modules/.bin/verpub view -l",
  19. "release": "./node_modules/.bin/verpub publish",
  20. "release:dry": "./node_modules/.bin/verpub publish --dry-run",
  21. "changelog": "lerna-changelog",
  22. "commit": "git cz"
  23. },
  24. "repository": {
  25. "type": "git",
  26. "url": "git@github.com:Tencent/wepy.git"
  27. },
  28. "author": "Gcaufy",
  29. "license": "MIT",
  30. "bugs": {
  31. "url": "https://github.com/Tencent/wepy/issues"
  32. },
  33. "homepage": "https://github.com/Tencent/wepy#readme",
  34. "devDependencies": {
  35. "babel": "^6.5.2",
  36. "babel-cli": "^6.18.0",
  37. "babel-eslint": "^7.1.1",
  38. "babel-preset-es2015": "^6.18.0",
  39. "babel-preset-stage-1": "^6.16.0",
  40. "chai": "^4.1.2",
  41. "chalk": "^1.1.3",
  42. "chokidar": "^3.4.0",
  43. "commitizen": "^3.1.1",
  44. "cz-conventional-changelog": "^2.1.0",
  45. "enquirer": "^2.3.0",
  46. "eslint": "^7.5.0",
  47. "eslint-config-prettier": "^6.10.0",
  48. "eslint-plugin-prettier": "^3.1.2",
  49. "esm": "^3.2.25",
  50. "event-stream": "3.3.4",
  51. "fs-extra": "^5.0.0",
  52. "husky": "^1.3.1",
  53. "istanbul": "^0.4.5",
  54. "jsonlint": "^1.6.2",
  55. "learn": "^0.1.5",
  56. "lerna": "^3.22.1",
  57. "lerna-changelog": "^1.0.1",
  58. "less": "^3.9.0",
  59. "mkpath": "^1.0.0",
  60. "mocha": "^6.2.3",
  61. "nyc": "^15.0.0",
  62. "prettier": "^1.18.2",
  63. "read-pkg": "^4.0.1",
  64. "rimraf": "^3.0.2",
  65. "rollup": "^0.56.5",
  66. "rollup-plugin-buble": "^0.19.2",
  67. "rollup-plugin-replace": "^2.0.0",
  68. "serve-static": "^1.11.1",
  69. "through2": "^2.0.3",
  70. "validate-commit-msg": "^2.14.0",
  71. "verpub": "^0.1.2"
  72. },
  73. "babel": {
  74. "comments": false,
  75. "presets": [
  76. [
  77. "es2015",
  78. {
  79. "loose": true
  80. }
  81. ],
  82. "stage-1"
  83. ],
  84. "plugins": [],
  85. "ignore": [
  86. "./packages/wepy-web/src/components/*.vue"
  87. ],
  88. "env": {
  89. "test": {
  90. "auxiliaryCommentBefore": "istanbul ignore next",
  91. "plugins": [
  92. "istanbul"
  93. ]
  94. }
  95. }
  96. },
  97. "engines": {
  98. "node": ">=8.9.4"
  99. },
  100. "husky": {
  101. "hooks": {
  102. "pre-commit": "npm run lint",
  103. "pre-push": "npm run test",
  104. "commit-msg": "npx validate-commit-msg"
  105. }
  106. },
  107. "changelog": {
  108. "labels": {
  109. "feat": ":rocket: New Feature",
  110. "bug": ":bug: Bug Fix",
  111. "doc": ":memo: Documentation",
  112. "internal": ":house: Internal",
  113. "breaking": ":boom: Breaking Change"
  114. }
  115. },
  116. "config": {
  117. "validate-commit-msg": {
  118. "helpMessage": "\nPlease fix your commit message (and consider using http://npm.im/commitizen)\n",
  119. "types": [
  120. "feat",
  121. "fix",
  122. "docs",
  123. "style",
  124. "refactor",
  125. "perf",
  126. "test",
  127. "chore",
  128. "revert",
  129. "build",
  130. "release",
  131. "custom"
  132. ],
  133. "warnOnFail": false,
  134. "autoFix": true
  135. },
  136. "commitizen": {
  137. "path": "./node_modules/cz-conventional-changelog"
  138. }
  139. }
  140. }