package.json 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  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 && ./scripts/install_dev.sh",
  12. "bootstrap:prod": "./node_modules/.bin/lerna bootstrap --loglevel -- --production --no-optional && ./scripts/install_dev.sh",
  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": "./scripts/clean.sh",
  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. "commitizen": "^3.1.1",
  43. "cz-conventional-changelog": "^2.1.0",
  44. "enquirer": "^2.3.0",
  45. "eslint": "^4.19.1",
  46. "eslint-config-prettier": "^6.10.0",
  47. "eslint-plugin-prettier": "^3.1.2",
  48. "esm": "^3.2.25",
  49. "event-stream": "3.3.4",
  50. "fs-extra": "^5.0.0",
  51. "husky": "^1.3.1",
  52. "istanbul": "^0.4.5",
  53. "jsonlint": "^1.6.2",
  54. "learn": "^0.1.5",
  55. "lerna": "^3.22.1",
  56. "lerna-changelog": "^1.0.1",
  57. "less": "^3.9.0",
  58. "mkpath": "^1.0.0",
  59. "mocha": "^6.2.3",
  60. "nyc": "^15.0.0",
  61. "prettier": "^1.18.2",
  62. "read-pkg": "^4.0.1",
  63. "rollup": "^0.56.5",
  64. "rollup-plugin-buble": "^0.19.2",
  65. "rollup-plugin-replace": "^2.0.0",
  66. "serve-static": "^1.11.1",
  67. "through2": "^2.0.3",
  68. "validate-commit-msg": "^2.14.0",
  69. "verpub": "^0.1.2"
  70. },
  71. "babel": {
  72. "comments": false,
  73. "presets": [
  74. [
  75. "es2015",
  76. {
  77. "loose": true
  78. }
  79. ],
  80. "stage-1"
  81. ],
  82. "plugins": [],
  83. "ignore": [
  84. "./packages/wepy-web/src/components/*.vue"
  85. ],
  86. "env": {
  87. "test": {
  88. "auxiliaryCommentBefore": "istanbul ignore next",
  89. "plugins": [
  90. "istanbul"
  91. ]
  92. }
  93. }
  94. },
  95. "engines": {
  96. "node": ">=8.9.4"
  97. },
  98. "husky": {
  99. "hooks": {
  100. "pre-commit": "npm run lint",
  101. "pre-push": "npm run test",
  102. "commit-msg": "npx validate-commit-msg"
  103. }
  104. },
  105. "changelog": {
  106. "labels": {
  107. "feat": ":rocket: New Feature",
  108. "bug": ":bug: Bug Fix",
  109. "doc": ":memo: Documentation",
  110. "internal": ":house: Internal",
  111. "breaking": ":boom: Breaking Change"
  112. }
  113. },
  114. "config": {
  115. "validate-commit-msg": {
  116. "helpMessage": "\nPlease fix your commit message (and consider using http://npm.im/commitizen)\n",
  117. "types": [
  118. "feat",
  119. "fix",
  120. "docs",
  121. "style",
  122. "refactor",
  123. "perf",
  124. "test",
  125. "chore",
  126. "revert",
  127. "build",
  128. "release",
  129. "custom"
  130. ],
  131. "warnOnFail": false,
  132. "autoFix": true
  133. },
  134. "commitizen": {
  135. "path": "./node_modules/cz-conventional-changelog"
  136. }
  137. }
  138. }