-
Notifications
You must be signed in to change notification settings - Fork 319
Expand file tree
/
Copy pathpackage.json
More file actions
17 lines (17 loc) · 1.8 KB
/
Copy pathpackage.json
File metadata and controls
17 lines (17 loc) · 1.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{
"name": "educenter-hugo",
"version": "1.8.0",
"license": "MIT",
"author": "gethugothemes",
"scripts": {
"dev": "export HUGO_CACHEDIR=${TMPDIR:-/tmp}/educenter-hugo-cache GOMODCACHE=${TMPDIR:-/tmp}/educenter-gomodcache GOCACHE=${TMPDIR:-/tmp}/educenter-gocache; if [ -d exampleSite ]; then cd exampleSite && hugo server --themesDir ../..; else hugo server; fi",
"build": "export HUGO_CACHEDIR=${TMPDIR:-/tmp}/educenter-hugo-cache GOMODCACHE=${TMPDIR:-/tmp}/educenter-gomodcache GOCACHE=${TMPDIR:-/tmp}/educenter-gocache; if [ -d exampleSite ]; then cd exampleSite && hugo --themesDir ../.. --gc --minify --templateMetrics --templateMetricsHints --forceSyncStatic; else hugo --gc --minify --templateMetrics --templateMetricsHints --forceSyncStatic; fi",
"preview": "export HUGO_CACHEDIR=${TMPDIR:-/tmp}/educenter-hugo-cache GOMODCACHE=${TMPDIR:-/tmp}/educenter-gomodcache GOCACHE=${TMPDIR:-/tmp}/educenter-gocache; if [ -d exampleSite ]; then cd exampleSite && hugo server --themesDir ../.. --disableFastRender --navigateToChanged --templateMetrics --templateMetricsHints --watch --forceSyncStatic -e production --minify; else hugo server --disableFastRender --navigateToChanged --templateMetrics --templateMetricsHints --watch --forceSyncStatic -e production --minify; fi",
"dev:example": "cd exampleSite && hugo server --themesDir ../..",
"build:example": "cd exampleSite && hugo --themesDir ../.. --gc --minify --templateMetrics --templateMetricsHints --forceSyncStatic",
"preview:example": "cd exampleSite && hugo server --themesDir ../.. --disableFastRender --navigateToChanged --templateMetrics --templateMetricsHints --watch --forceSyncStatic -e production --minify",
"test": "pnpm preview",
"project-setup": "node ./scripts/projectSetup.js",
"theme-setup": "node ./scripts/themeSetup.js"
}
}