Skip to content

Commit

Permalink
CI: don't clean assets/vendor for local builds (#940)
Browse files Browse the repository at this point in the history
  • Loading branch information
chalin authored Mar 21, 2022
1 parent 122ffd2 commit 02df04c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions userguide/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
{
"scripts": {
"_build": "npm run _hugo-dev",
"_hugo": "rm -Rf ../assets/vendor && hugo --cleanDestinationDir --themesDir ../..",
"_hugo": "hugo --cleanDestinationDir --themesDir ../..",
"_hugo-dev": "npm run _hugo -- -e dev -DFE",
"_serve": "npm run _hugo-dev -- serve",
"build:preview": "npm run _hugo-dev -- --minify --baseURL \"${DEPLOY_PRIME_URL:-/}\"",
"build:production": "npm run _hugo -- --minify",
"build:preview": "DOCSY_VENDOR=clean npm run _hugo-dev -- --minify --baseURL \"${DEPLOY_PRIME_URL:-/}\"",
"build:production": "DOCSY_VENDOR=clean npm run _hugo -- --minify",
"build": "npm run _build",
"clean": "rm -Rf public",
"clean:vendor": "rm -Rf ../assets/vendor",
"keep:vendor": "echo Keeping ../assets/vendor",
"make:public": "git init -b main public",
"pre_hugo": "set -x && npm run ${DOCSY_VENDOR:-keep}:vendor",
"prepare": "cd .. && npm install",
"serve": "npm run _serve"
},
Expand Down

0 comments on commit 02df04c

Please sign in to comment.