package.json 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. {
  2. "name": "docsy",
  3. "version": "0.12.0",
  4. "version.next": "0.12.1-dev-unreleased",
  5. "repository": "github:google/docsy",
  6. "homepage": "https://www.docsy.dev",
  7. "license": "Apache-2.0",
  8. "scripts": {
  9. "_cd:docs": "cd userguide &&",
  10. "_check:format": "npx prettier --check *.md",
  11. "_commit:public": "npm run cd:docs -- _commit:public",
  12. "_cp:bs-rfs": "npx cpy 'node_modules/bootstrap/scss/vendor/*' assets/_vendor/bootstrap/scss/",
  13. "_diff:check": "git diff --name-only --exit-code",
  14. "_gen-chroma-styles": "bash -c tools/gen-chroma-styles.sh && bash -c 'tools/gen-chroma-styles.sh -s onedark -o _dark.scss'",
  15. "_mkdir:hugo-mod": "node tools/mkdirp-hugo-mod.js ..",
  16. "_prepare": "npm run _cp:bs-rfs && npm run _gen-chroma-styles && npm run get:hugo-modules",
  17. "build:preview": "npm run cd:docs -- build:preview --",
  18. "build:production": "npm run cd:docs -- build:production --",
  19. "build": "npm run cd:docs -- build --",
  20. "cd:docs": "npm run _cd:docs -- npm run",
  21. "check:format": "npm run _check:format || (echo '[help] Run: npm run fix:format'; exit 1)",
  22. "check:links:internal": "npm run cd:docs check:links:internal",
  23. "check:links": "npm run cd:docs check:links",
  24. "check": "npm run check:format",
  25. "ci:post": "npm run fix:format && npm run _diff:check",
  26. "ci:prepare": "npm run docs-install && npm run _prepare && npm run _diff:check",
  27. "docs-install": "npm run _cd:docs -- npm install",
  28. "fix:format": "npm run _check:format -- --write && npm run cd:docs fix:format",
  29. "get:hugo-modules": "node tools/getHugoModules/index.mjs",
  30. "postinstall": "npm run _mkdir:hugo-mod",
  31. "serve": "npm run cd:docs serve",
  32. "test:all": "npm run ci:prepare && npm run check && npm run cd:docs test && npm run ci:post",
  33. "test": "npm run check && npm run cd:docs test",
  34. "update:dep": "npm install --save-exact @fortawesome/fontawesome-free@latest bootstrap@latest",
  35. "update:hugo": "npm install --save-exact -D hugo-extended@latest",
  36. "update:pkgs": "npx npm-check-updates -u && npm run cd:docs update:pkgs"
  37. },
  38. "dependencies": {
  39. "@fortawesome/fontawesome-free": "6.7.2",
  40. "bootstrap": "5.3.6"
  41. },
  42. "devDependencies": {
  43. "cpy-cli": "^5.0.0",
  44. "hugo-extended": "0.147.5",
  45. "netlify-cli": "^21.5.0",
  46. "npm-check-updates": "^18.0.1",
  47. "prettier": "^3.5.3"
  48. },
  49. "engines": {
  50. "node": ">=22"
  51. },
  52. "spelling": "cSpell:ignore docsy hugo fortawesome fontawesome onedark twbs netlify pkgs userguide -"
  53. }