package.json 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. {
  2. "name": "geekdoc",
  3. "version": "1.0.0",
  4. "description": "Hugo theme made for documentation",
  5. "main": "index.js",
  6. "type": "module",
  7. "scripts": {
  8. "build": "run-s prep:clean prep:make svg build:webpack",
  9. "build:webpack": "webpack --mode=production",
  10. "build:webpack-devel": "webpack --mode=development",
  11. "pack": "tar -zcvf dist/hugo-geekdoc.tar.gz -X .tarignore .",
  12. "start": "run-s prep:clean prep:make svg build:webpack-devel ; run-p start:webpack start:hugo",
  13. "start:webpack": "webpack --mode=development --watch",
  14. "start:build": "webpack --mode=development",
  15. "start:hugo": "hugo server -D -F -s exampleSite/",
  16. "svg": "run-s svg:*",
  17. "svg:sprite": "svg-sprite -C svgsprite.config.json 'src/icons/*.svg'",
  18. "svg:font": "svgtofont --sources build/icons/ --output build/fonts/",
  19. "prep:clean": "shx rm -rf build/ static/",
  20. "prep:clean-all": "shx rm -rf VERSION .lighthouseci/ lhci_reports/ build/ dist/ static/ data/ assets/sprites/ exampleSite/data/sprites/ exampleSite/public/ exampleSite/resources/ exampleSite/.hugo_build.lock",
  21. "prep:make": "shx mkdir -p build/icons/ build/fonts/ dist/",
  22. "svg-sprite-list": "run-s prep:make svg ; shx mkdir -p exampleSite/data/sprites/ ; shx cp build/fonts/GeekdocIcons.json exampleSite/data/sprites/geekdoc.json",
  23. "lint": "run-p lint:js lint:html",
  24. "lint:js": "eslint src/js/ --color",
  25. "lint:html": "html-validate exampleSite/public"
  26. },
  27. "repository": {
  28. "type": "git",
  29. "url": "https://github.com/thegeeklab/hugo-geekdoc"
  30. },
  31. "author": "Robert Kaussow",
  32. "license": "MIT",
  33. "engines": {
  34. "node": ">=18 <=22"
  35. },
  36. "dependencies": {
  37. "@cfworker/json-schema": "2.0.1",
  38. "clipboard": "2.0.11",
  39. "flexsearch": "0.7.43",
  40. "katex": "0.16.11",
  41. "lodash": "4.17.21",
  42. "mermaid": "11.4.0",
  43. "store2": "2.14.3",
  44. "uuid": "11.0.2"
  45. },
  46. "devDependencies": {
  47. "@babel/eslint-parser": "7.25.9",
  48. "autoprefixer": "10.4.20",
  49. "copy-webpack-plugin": "12.0.2",
  50. "css-loader": "7.1.2",
  51. "eslint": "9.14.0",
  52. "eslint-config-prettier": "9.1.0",
  53. "eslint-plugin-prettier": "5.2.1",
  54. "favicons": "7.2.0",
  55. "favicons-webpack-plugin": "6.0.1",
  56. "globals": "15.11.0",
  57. "html-validate": "8.24.2",
  58. "npm-run-all2": "7.0.1",
  59. "postcss-loader": "8.1.1",
  60. "prettier": "3.3.3",
  61. "sass": "1.80.6",
  62. "sass-loader": "16.0.3",
  63. "shx": "0.3.4",
  64. "svg-sprite": "2.0.4",
  65. "svgtofont": "6.0.0",
  66. "webpack": "5.96.1",
  67. "webpack-cli": "5.1.4",
  68. "webpack-manifest-plugin": "5.0.0",
  69. "webpack-remove-empty-scripts": "1.0.4"
  70. },
  71. "overrides": {
  72. "colors": "1.4.0"
  73. },
  74. "browserslist": [
  75. "last 2 version",
  76. "> 5%",
  77. "not dead",
  78. "Firefox ESR"
  79. ],
  80. "svgtofont": {
  81. "fontName": "GeekdocIcons",
  82. "css": false,
  83. "html": false,
  84. "emptyDist": true,
  85. "useNameAsUnicode": true,
  86. "svgicons2svgfont": {
  87. "fontHeight": 1001,
  88. "normalize": true,
  89. "centerHorizontally": true,
  90. "centerVertically": true
  91. }
  92. }
  93. }