|
1 | 1 | { |
2 | 2 | "name": "docsy-example-site", |
3 | | - "version": "0.13.0-pre-release", |
| 3 | + "version": "0.13.0", |
4 | 4 | "version.next": "0.13.1-dev-unreleased", |
5 | 5 | "description": "Example site that uses Docsy theme for technical documentation.", |
6 | 6 | "repository": "github:google/docsy-example", |
|
14 | 14 | "_check:format": "npx prettier --check .", |
15 | 15 | "_check:links": "echo IMPLEMENTATION PENDING for check-links; echo", |
16 | 16 | "_commit:public": "HASH=$(git rev-parse --short main); cd public && git add -A && git commit -m \"Site at $HASH\"", |
17 | | - "_hugo": "hugo --cleanDestinationDir", |
| 17 | + "_diff:check": "git diff --name-only --exit-code", |
| 18 | + "_fix:permissions": "chmod -R u+w public/* 2>/dev/null || true", |
| 19 | + "_get:docsy": "hugo mod get github.com/google/docsy@v$npm_package_version", |
18 | 20 | "_hugo-dev": "npm run _hugo -- -e dev -DFE", |
| 21 | + "_hugo": "hugo --cleanDestinationDir", |
19 | 22 | "_local": "npx cross-env HUGO_MODULE_WORKSPACE=docsy.work", |
20 | 23 | "_serve": "npm run _hugo-dev -- --minify serve --renderToMemory", |
21 | 24 | "build:preview": "npm run _hugo-dev -- --minify --baseURL \"${DEPLOY_PRIME_URL:-/}\"", |
22 | 25 | "build:production": "npm run _hugo -- --minify", |
23 | 26 | "build": "npm run _build -- ", |
24 | 27 | "check:links:all": "HTMLTEST_ARGS= npm run _check:links", |
25 | 28 | "check:links": "npm run _check:links", |
| 29 | + "ci:prepare": "npm run _get:docsy && hugo mod graph && hugo mod tidy", |
| 30 | + "ci:test": "npm run ci:prepare && npm run fix:format && npm run test && npm run _diff:check", |
26 | 31 | "clean": "rm -Rf public/* resources", |
27 | 32 | "fix:format": "npm run _check:format -- --write", |
28 | 33 | "local": "npm run _local -- npm run", |
29 | 34 | "make:public": "git init -b main public", |
30 | | - "precheck:links:all": "npm run build", |
31 | | - "precheck:links": "npm run build", |
| 35 | + "post_hugo": "npm run _fix:permissions", |
32 | 36 | "postbuild:preview": "npm run _check:links", |
33 | 37 | "postbuild:production": "npm run _check:links", |
| 38 | + "precheck:links:all": "npm run build", |
| 39 | + "precheck:links": "npm run build", |
34 | 40 | "serve": "npm run _serve", |
35 | 41 | "test": "npm run check:links", |
36 | 42 | "update:dep": "npm install --save-dev autoprefixer@latest postcss-cli@latest", |
|
0 commit comments