package.json 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. {
  2. "name": "trough",
  3. "version": "1.0.5",
  4. "description": "Middleware: a channel used to convey a liquid",
  5. "license": "MIT",
  6. "keywords": [
  7. "middleware",
  8. "ware"
  9. ],
  10. "repository": "wooorm/trough",
  11. "bugs": "https://github.com/wooorm/trough/issues",
  12. "funding": {
  13. "type": "github",
  14. "url": "https://github.com/sponsors/wooorm"
  15. },
  16. "author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
  17. "contributors": [
  18. "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)"
  19. ],
  20. "files": [
  21. "index.js",
  22. "wrap.js"
  23. ],
  24. "dependencies": {},
  25. "devDependencies": {
  26. "browserify": "^16.0.0",
  27. "nyc": "^15.0.0",
  28. "prettier": "^1.0.0",
  29. "remark-cli": "^7.0.0",
  30. "remark-preset-wooorm": "^6.0.0",
  31. "tape": "^4.0.0",
  32. "tinyify": "^2.0.0",
  33. "xo": "^0.25.0"
  34. },
  35. "scripts": {
  36. "format": "remark . -qfo && prettier --write \"**/*.js\" && xo --fix",
  37. "build-bundle": "browserify index.js -s trough > trough.js",
  38. "build-mangle": "browserify index.js -s trough -p tinyify > trough.min.js",
  39. "build": "npm run build-bundle && npm run build-mangle",
  40. "test-api": "node test",
  41. "test-coverage": "nyc --reporter lcov tape test.js",
  42. "test": "npm run format && npm run build && npm run test-coverage"
  43. },
  44. "prettier": {
  45. "tabWidth": 2,
  46. "useTabs": false,
  47. "singleQuote": true,
  48. "bracketSpacing": false,
  49. "semi": false,
  50. "trailingComma": "none"
  51. },
  52. "xo": {
  53. "prettier": true,
  54. "esnext": false,
  55. "rules": {
  56. "unicorn/prefer-reflect-apply": "off",
  57. "unicorn/prefer-type-error": "off",
  58. "guard-for-in": "off"
  59. },
  60. "ignores": [
  61. "trough.js"
  62. ]
  63. },
  64. "remarkConfig": {
  65. "plugins": [
  66. "preset-wooorm"
  67. ]
  68. },
  69. "nyc": {
  70. "check-coverage": true,
  71. "lines": 100,
  72. "functions": 100,
  73. "branches": 100
  74. }
  75. }