package.json 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. {
  2. "_from": "uni-js-bridge",
  3. "_id": "uni-js-bridge@0.0.3",
  4. "_inBundle": false,
  5. "_integrity": "sha512-nHou1+1v9ouYBVq4qsG/k6e0ZN3LRskr4YTXdy2zzxqTsdBdV6czcRgL1L1TgHYO0q66SzogLrMIlqz9zf/FDA==",
  6. "_location": "/uni-js-bridge",
  7. "_phantomChildren": {},
  8. "_requested": {
  9. "type": "tag",
  10. "registry": true,
  11. "raw": "uni-js-bridge",
  12. "name": "uni-js-bridge",
  13. "escapedName": "uni-js-bridge",
  14. "rawSpec": "",
  15. "saveSpec": null,
  16. "fetchSpec": "latest"
  17. },
  18. "_requiredBy": [
  19. "#USER",
  20. "/"
  21. ],
  22. "_resolved": "https://registry.npmjs.org/uni-js-bridge/-/uni-js-bridge-0.0.3.tgz",
  23. "_shasum": "67435c88dfecf3b4724fd3e9a4d09649d874439a",
  24. "_spec": "uni-js-bridge",
  25. "_where": "D:\\project\\H5_module",
  26. "author": {
  27. "name": "guojun",
  28. "email": "2650744839@qq.com"
  29. },
  30. "bundleDependencies": false,
  31. "commitlint": {
  32. "extends": [
  33. "@commitlint/config-conventional"
  34. ]
  35. },
  36. "config": {
  37. "commitizen": {
  38. "path": "node_modules/cz-conventional-changelog"
  39. }
  40. },
  41. "deprecated": false,
  42. "description": "适用于uni-app框架中webview组件和H5通信的js小工具。此JS是放在H5项目中的;还需要配合uni-app另外封装的webview组件;uni-app的webview组件会放在另一个项目中;",
  43. "devDependencies": {
  44. "@commitlint/cli": "^7.1.2",
  45. "@commitlint/config-conventional": "^7.1.2",
  46. "@types/jest": "^23.3.2",
  47. "@types/node": "^10.11.0",
  48. "colors": "^1.3.2",
  49. "commitizen": "^3.0.0",
  50. "coveralls": "^3.0.2",
  51. "cross-env": "^5.2.0",
  52. "cz-conventional-changelog": "^2.1.0",
  53. "husky": "^1.0.1",
  54. "jest": "^23.6.0",
  55. "jest-config": "^23.6.0",
  56. "lint-staged": "^8.0.0",
  57. "lodash.camelcase": "^4.3.0",
  58. "prettier": "^1.14.3",
  59. "prompt": "^1.0.0",
  60. "replace-in-file": "^3.4.2",
  61. "rimraf": "^2.6.2",
  62. "rollup": "^0.67.0",
  63. "rollup-plugin-commonjs": "^9.1.8",
  64. "rollup-plugin-json": "^3.1.0",
  65. "rollup-plugin-node-resolve": "^3.4.0",
  66. "rollup-plugin-sourcemaps": "^0.4.2",
  67. "rollup-plugin-typescript2": "^0.18.0",
  68. "semantic-release": "^15.9.16",
  69. "shelljs": "^0.8.3",
  70. "travis-deploy-once": "^5.0.9",
  71. "ts-jest": "^23.10.2",
  72. "ts-node": "^7.0.1",
  73. "tslint": "^5.11.0",
  74. "tslint-config-prettier": "^1.15.0",
  75. "tslint-config-standard": "^8.0.1",
  76. "typedoc": "^0.12.0",
  77. "typescript": "^3.0.3"
  78. },
  79. "engines": {
  80. "node": ">=6.0.0"
  81. },
  82. "files": [
  83. "dist"
  84. ],
  85. "jest": {
  86. "transform": {
  87. ".(ts|tsx)": "ts-jest"
  88. },
  89. "testEnvironment": "node",
  90. "testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$",
  91. "moduleFileExtensions": [
  92. "ts",
  93. "tsx",
  94. "js"
  95. ],
  96. "coveragePathIgnorePatterns": [
  97. "/node_modules/",
  98. "/test/"
  99. ],
  100. "coverageThreshold": {
  101. "global": {
  102. "branches": 90,
  103. "functions": 95,
  104. "lines": 95,
  105. "statements": 95
  106. }
  107. },
  108. "collectCoverageFrom": [
  109. "src/*.{js,ts}"
  110. ]
  111. },
  112. "keywords": [],
  113. "license": "MIT",
  114. "lint-staged": {
  115. "{src,test}/**/*.ts": [
  116. "prettier --write",
  117. "git add"
  118. ]
  119. },
  120. "main": "dist/uni-js-bridge.umd.js",
  121. "module": "dist/uni-js-bridge.es5.js",
  122. "name": "uni-js-bridge",
  123. "prettier": {
  124. "semi": false,
  125. "singleQuote": true
  126. },
  127. "repository": {
  128. "type": "git",
  129. "url": "https://gitee.com/guome/uni-js-bridge"
  130. },
  131. "scripts": {
  132. "build": "tsc --module commonjs && rollup -c rollup.config.ts && typedoc --out docs --target es6 --theme minimal --mode file src",
  133. "commit": "git-cz",
  134. "deploy-docs": "ts-node tools/gh-pages-publish",
  135. "lint": "tslint --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'",
  136. "prebuild": "rimraf dist",
  137. "precommit": "lint-staged",
  138. "report-coverage": "cat ./coverage/lcov.info | coveralls",
  139. "semantic-release": "semantic-release",
  140. "semantic-release-prepare": "ts-node tools/semantic-release-prepare",
  141. "start": "rollup -c rollup.config.ts -w",
  142. "test": "jest --coverage",
  143. "test:prod": "npm run lint && npm run test -- --no-cache",
  144. "test:watch": "jest --coverage --watch",
  145. "travis-deploy-once": "travis-deploy-once"
  146. },
  147. "typings": "dist/types/uni-js-bridge.d.ts",
  148. "version": "0.0.3"
  149. }