package.json 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. {
  2. "name": "vfile",
  3. "version": "4.2.1",
  4. "description": "Virtual file format for text processing",
  5. "license": "MIT",
  6. "keywords": [
  7. "vfile",
  8. "virtual",
  9. "file",
  10. "text",
  11. "processing",
  12. "message",
  13. "warning",
  14. "error",
  15. "remark",
  16. "retext",
  17. "rehype"
  18. ],
  19. "repository": "vfile/vfile",
  20. "bugs": "https://github.com/vfile/vfile/issues",
  21. "funding": {
  22. "type": "opencollective",
  23. "url": "https://opencollective.com/unified"
  24. },
  25. "author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
  26. "contributors": [
  27. "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
  28. "Brendan Abbott <brendan.abbott@temando.com>",
  29. "Denys Dovhan <email@denysdovhan.com>",
  30. "Kyle Mathews <mathews.kyle@gmail.com>",
  31. "Shinnosuke Watanabe <snnskwtnb@gmail.com>",
  32. "Sindre Sorhus <sindresorhus@gmail.com>"
  33. ],
  34. "types": "types/index.d.ts",
  35. "browser": {
  36. "./lib/minpath.js": "./lib/minpath.browser.js",
  37. "./lib/minproc.js": "./lib/minproc.browser.js"
  38. },
  39. "react-native": {
  40. "./lib/minpath.js": "./lib/minpath.browser.js",
  41. "./lib/minproc.js": "./lib/minproc.browser.js"
  42. },
  43. "files": [
  44. "lib/",
  45. "types/index.d.ts",
  46. "index.js",
  47. "core.js"
  48. ],
  49. "dependencies": {
  50. "@types/unist": "^2.0.0",
  51. "is-buffer": "^2.0.0",
  52. "unist-util-stringify-position": "^2.0.0",
  53. "vfile-message": "^2.0.0"
  54. },
  55. "devDependencies": {
  56. "browserify": "^17.0.0",
  57. "dtslint": "^4.0.0",
  58. "nyc": "^15.0.0",
  59. "prettier": "^2.0.0",
  60. "remark-cli": "^9.0.0",
  61. "remark-preset-wooorm": "^8.0.0",
  62. "tape": "^5.0.0",
  63. "tinyify": "^3.0.0",
  64. "xo": "^0.35.0"
  65. },
  66. "scripts": {
  67. "format": "remark . -qfo && prettier . --write && xo --fix",
  68. "build-bundle": "browserify . -s VFile -o vfile.js",
  69. "build-mangle": "browserify . -s VFile -o vfile.min.js -p tinyify",
  70. "build": "npm run build-bundle && npm run build-mangle",
  71. "test-api": "node test",
  72. "test-coverage": "nyc --reporter lcov tape test.js",
  73. "test-types": "dtslint types",
  74. "test": "npm run format && npm run build && npm run test-coverage && npm run test-types"
  75. },
  76. "nyc": {
  77. "check-coverage": true,
  78. "lines": 100,
  79. "functions": 100,
  80. "branches": 100
  81. },
  82. "prettier": {
  83. "tabWidth": 2,
  84. "useTabs": false,
  85. "singleQuote": true,
  86. "bracketSpacing": false,
  87. "semi": false,
  88. "trailingComma": "none"
  89. },
  90. "xo": {
  91. "prettier": true,
  92. "esnext": false,
  93. "ignores": [
  94. "types",
  95. "vfile.js"
  96. ],
  97. "rules": {
  98. "unicorn/explicit-length-check": "off",
  99. "unicorn/prefer-includes": "off",
  100. "unicorn/prefer-reflect-apply": "off",
  101. "unicorn/prefer-number-properties": "off",
  102. "max-depth": "off",
  103. "complexity": "off"
  104. }
  105. },
  106. "remarkConfig": {
  107. "plugins": [
  108. "preset-wooorm",
  109. [
  110. "lint-no-html",
  111. false
  112. ]
  113. ]
  114. }
  115. }