package.json 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. {
  2. "name": "docsy-user-guide",
  3. "scripts": {
  4. "_build": "npm run _hugo-dev --",
  5. "_check:format": "npx prettier --prose-wrap=always --check .",
  6. "_check:links--warn": "npm run _check:links || (echo; echo 'WARNING: see link-checker output for issues.'; echo)",
  7. "_check:links": "make --keep-going check-links",
  8. "_commit:public": "HASH=$(git rev-parse --short main); cd public && git add -A && git commit -m \"Site at $HASH\"",
  9. "_hugo-dev": "npm run _hugo -- -e dev -DFE",
  10. "_hugo": "hugo --cleanDestinationDir --themesDir ../..",
  11. "_refcache:prune": "jq 'with_entries(select(.value.StatusCode < 400))' static/refcache.json > tmp/refcache.json && mv tmp/refcache.json static/refcache.json",
  12. "_serve": "npm run _hugo-dev -- serve --minify --disableFastRender --renderToMemory",
  13. "build:preview": "npm run _hugo-dev -- --minify --baseURL \"${DEPLOY_PRIME_URL:-http://localhost}\"",
  14. "build:production": "npm run _hugo -- --minify",
  15. "build": "npm run _build --",
  16. "check:format": "npm run _check:format || (echo '[help] Run: npm run fix:format'; exit 1)",
  17. "check:links:internal": "HTMLTEST_ARGS='--skip-external' npm run _check:links",
  18. "check:links": "npm run _check:links",
  19. "clean": "rm -Rf public",
  20. "fix:format": "npm run _check:format -- --write",
  21. "make:public": "git init -b main public",
  22. "postbuild:preview": "npm run _check:links--warn",
  23. "postbuild:production": "npm run _check:links--warn",
  24. "precheck:links:all": "npm run build",
  25. "precheck:links": "npm run build",
  26. "prepare": "cd .. && npm install",
  27. "serve": "npm run _serve",
  28. "test": "npm run check:format && npm run check:links",
  29. "update:dep": "npm install --save-dev autoprefixer@latest postcss-cli@latest",
  30. "update:pkgs": "npx npm-check-updates -u"
  31. },
  32. "devDependencies": {
  33. "autoprefixer": "^10.4.21",
  34. "postcss-cli": "^11.0.1",
  35. "rtlcss": "^4.3.0"
  36. },
  37. "cSpell:ignore": "- docsy htmltest pkgs postbuild precheck refcache rtlcss -"
  38. }