-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
16 lines (16 loc) · 1.21 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{
"dependencies": {},
"license": "MIT",
"author": "Florian Grässle",
"repository": "holehan/hugo-repo-versions",
"scripts": {
"start": "npm run watch",
"clean": "rm -rf public resources data",
"update": "npm run update:hugo && npm run update:docker && npm run update:snap",
"update:hugo": "mkdir -p static/hugo && curl -s 'https://api.github.com/repos/gohugoio/hugo/releases/latest' | jq -s '.[] | {tag_name}' > static/hugo/index.json",
"update:docker": "mkdir -p data/docker && curl -s 'https://raw.githubusercontent.com/cibuilds/hugo/master/build-images.sh' > data/docker/build-images.sh && mkdir -p data/minimaldocker && curl -s 'https://api.github.com/repos/klakegg/docker-hugo/releases/latest' | jq -s '.[] | {tag_name}' > data/minimaldocker/index.json",
"update:snap": "mkdir -p data/snap && curl -H 'X-Ubuntu-Series: 16' 'https://api.snapcraft.io/api/v1/snaps/details/hugo' > data/snap/stable.json && curl -H 'X-Ubuntu-Series: 16' 'https://api.snapcraft.io/api/v1/snaps/details/hugo?channel=extended' > data/snap/extended.json",
"build": "npm run clean && npm run update && hugo --ignoreCache --minify --gc",
"watch": "npm run clean && npm run update && hugo server --ignoreCache"
}
}