Fix build (ish)

This commit is contained in:
stefan burke 2024-11-04 01:27:44 +00:00
parent 392c43063f
commit 5f92a7eefc
4 changed files with 2488 additions and 12 deletions

View file

@ -1,16 +1,12 @@
#!/usr/bin/env
npm install
npm run build_pt1
pnpm add fast-glob @11ty/eleventy
mkdir -p _site/style
sass style/style.scss _site/style/style.css
lightningcss --minify --targets '> 0.25%, not IE 11' _site/style/*.css -o _site/style/*.css
npm run build_pt2
pnpm eleventy
html-minifier --input-dir _site --output-dir _site --collapse-whitespace --file-ext html
set +x
export NEOCITIES_API_KEY=$(cat /home/user/.neocities/vegan-prestwich)
set -x
neocities push --prune _site
git add .
git commit -m "auto-updated after build"
git push

View file

@ -1,12 +1,12 @@
{
"devDependencies": {
"@11ty/eleventy": "^3.0.0-alpha",
"@11ty/eleventy": "^3.0.0",
"npm-run-all": "*"
},
"dependencies": {
"@11ty/eleventy-img": "*",
"cross-env": "*",
"fast-glob": "*"
"fast-glob": "^3.3.2"
},
"scripts": {
"watch:sass": "sass --no-source-map --watch style:_site/style",

2480
pnpm-lock.yaml Normal file

File diff suppressed because it is too large Load diff

View file

@ -5,7 +5,7 @@ with (import <nixpkgs> {});
lightningcss
neocities-cli
nodejs
nodePackages_latest.npm
nodePackages.pnpm
sass
];
}