This commit is contained in:
Starbeamrainbowlabs 2022-08-06 15:15:36 +01:00
parent d3900e2ad9
commit e6a48c8799
No known key found for this signature in database
GPG Key ID: 1BE5172E637709C2
2 changed files with 5 additions and 7 deletions

@ -19,7 +19,7 @@
"url": "https://github.com/sbrl/Minetest-WorldEditAdditions/issues" "url": "https://github.com/sbrl/Minetest-WorldEditAdditions/issues"
}, },
"homepage": "https://github.com/sbrl/Minetest-WorldEditAdditions#readme", "homepage": "https://github.com/sbrl/Minetest-WorldEditAdditions#readme",
"devDependencies": { "dependencies": {
"@11ty/eleventy": "^1.0.1", "@11ty/eleventy": "^1.0.1",
"chroma-js": "^2.4.2", "chroma-js": "^2.4.2",
"columnify": "^1.6.0", "columnify": "^1.6.0",
@ -29,9 +29,7 @@
"p-memoize": "^7.1.0", "p-memoize": "^7.1.0",
"p-queue": "^7.3.0", "p-queue": "^7.3.0",
"phin": "^3.6.1", "phin": "^3.6.1",
"pretty-ms": "^7.0.1" "pretty-ms": "^7.0.1",
},
"dependencies": {
"clean-css": "^5.3.1", "clean-css": "^5.3.1",
"html-entities": "^2.3.3", "html-entities": "^2.3.3",
"html-minifier-terser": "^7.0.0-beta.0" "html-minifier-terser": "^7.0.0-beta.0"

@ -8,9 +8,6 @@ if [[ "${1}" == "ci" ]] && [[ ! -z "${is_main}" ]]; then
echo "Skipping build, because this commit does not appear to be on the 'main' branch, and we only deploy commits on the 'main' branch."; echo "Skipping build, because this commit does not appear to be on the 'main' branch, and we only deploy commits on the 'main' branch.";
fi fi
# This causes the eleventy docs site to minify stuff
export NODE_ENV=production;
# ██████ ██ ██████ ██ ██ ██ ██ ██████ # ██████ ██ ██████ ██ ██ ██ ██ ██████
# ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ # ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
# ██ ██ ██████ ██ ██ ██ ██ ██ ██ # ██ ██ ██████ ██ ██ ██ ██ ██ ██
@ -94,6 +91,9 @@ npm install;
log_msg "Building website"; log_msg "Building website";
# This causes the eleventy docs site to minify stuff
# Note that this is NOT before the npm install, as npm doesn't install everything if we do that
export NODE_ENV=production;
npm run build; npm run build;
if [[ ! -d "_site" ]]; then if [[ ! -d "_site" ]]; then