diff options
| author | Serghei Iakovlev <egrep@protonmail.ch> | 2022-07-04 19:32:24 +0200 |
|---|---|---|
| committer | Serghei Iakovlev <egrep@protonmail.ch> | 2022-07-04 19:32:24 +0200 |
| commit | fff90c86733e20d7b9a35aad616ab65fe11f6ff8 (patch) | |
| tree | 9c46540a08a9bbf08debbf6ec098975defd4ddc8 /package.json | |
| parent | ae0ac2c3e4932bcef576ffc7f568b0685468c950 (diff) | |
| download | gohugo-theme-ed-fff90c86733e20d7b9a35aad616ab65fe11f6ff8.tar.gz | |
Run npm install before build
Diffstat (limited to 'package.json')
| -rw-r--r-- | package.json | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/package.json b/package.json index 1a8e24c..f8e2506 100644 --- a/package.json +++ b/package.json @@ -21,11 +21,11 @@ "main": "index.js", "scripts": { "clean": "rimraf public", - "build": "hugo --source=exampleSite --gc --verbose --destination ../public", - "build:prod": "hugo --source=exampleSite --destination ../public", - "build:split1": "hugo --source=exampleSite --enableGitInfo --destination ../public", - "build:preview": "HUGO_PREVIEW=true hugo --source=exampleSite --buildDrafts --buildFuture --baseURL $DEPLOY_PRIME_URL --destination ../public", - "build:branch": "hugo --source=exampleSite --buildDrafts --buildFuture --baseURL $DEPLOY_PRIME_URL --destination ../public", + "build": "npm install && hugo --source=exampleSite --gc --verbose --destination ../public", + "build:prod": "npm install && hugo --source=exampleSite --destination ../public", + "build:split1": "npm install && hugo --source=exampleSite --enableGitInfo --destination ../public", + "build:preview": "npm install && HUGO_PREVIEW=true hugo --source=exampleSite --buildDrafts --buildFuture --baseURL $DEPLOY_PRIME_URL --destination ../public", + "build:branch": "npm install && hugo --source=exampleSite --buildDrafts --buildFuture --baseURL $DEPLOY_PRIME_URL --destination ../public", "server": "HUGO_PREVIEW=true HUGO_ENV=development hugo server --verbose --source=exampleSite --buildDrafts --buildFuture --ignoreCache --disableFastRender", "lint": "npm run lint:js && npm run lint:editorconfig", "lint:editorconfig": "editorconfig-checker", |
