~stfn/vegan-prestwich

b8062a6536240d5e43d70e86eda924c7d6a51272 — Stefan 7 months ago a0b1fe3
auto-updated after build
4 files changed, 279 insertions(+), 3 deletions(-)

M build-and-push
M package-lock.json
M package.json
M shell.nix
M build-and-push => build-and-push +4 -2
@@ 1,7 1,9 @@
#!/usr/bin/env

npm install
npm run build
npm run build_pt1
lightningcss --minify --targets '> 0.25%, not IE 11' _site/style/*.css -o _site/style/*.css
npm run build_pt2

set +x
export NEOCITIES_API_KEY=$(cat /home/user/.neocities/vegan-prestwich)


@@ 12,4 14,4 @@ neocities push --prune _site

git add .
git commit -m "auto-updated after build"
git push
\ No newline at end of file
git push

M package-lock.json => package-lock.json +269 -0
@@ 8,6 8,7 @@
        "cross-env": "^7.0.3",
        "fast-glob": "^3.2.12",
        "html-minifier": "^4.0.0",
        "lightningcss": "^1.22.0",
        "lightningcss-cli": "^1.15.1",
        "npm-run-all": "^4.1.5",
        "sass": "^1.54.9"


@@ 1643,6 1644,32 @@
        "node": ">=6"
      }
    },
    "node_modules/lightningcss": {
      "version": "1.22.0",
      "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.22.0.tgz",
      "integrity": "sha512-+z0qvwRVzs4XGRXelnWRNwqsXUx8k3bSkbP8vD42kYKSk3z9OM2P3e/gagT7ei/gwh8DTS80LZOFZV6lm8Z8Fg==",
      "dependencies": {
        "detect-libc": "^1.0.3"
      },
      "engines": {
        "node": ">= 12.0.0"
      },
      "funding": {
        "type": "opencollective",
        "url": "https://opencollective.com/parcel"
      },
      "optionalDependencies": {
        "lightningcss-darwin-arm64": "1.22.0",
        "lightningcss-darwin-x64": "1.22.0",
        "lightningcss-freebsd-x64": "1.22.0",
        "lightningcss-linux-arm-gnueabihf": "1.22.0",
        "lightningcss-linux-arm64-gnu": "1.22.0",
        "lightningcss-linux-arm64-musl": "1.22.0",
        "lightningcss-linux-x64-gnu": "1.22.0",
        "lightningcss-linux-x64-musl": "1.22.0",
        "lightningcss-win32-x64-msvc": "1.22.0"
      }
    },
    "node_modules/lightningcss-cli": {
      "version": "1.16.1",
      "resolved": "https://registry.npmjs.org/lightningcss-cli/-/lightningcss-cli-1.16.1.tgz",


@@ 1824,6 1851,177 @@
        "url": "https://opencollective.com/parcel"
      }
    },
    "node_modules/lightningcss-darwin-arm64": {
      "version": "1.22.0",
      "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.22.0.tgz",
      "integrity": "sha512-aH2be3nNny+It5YEVm8tBSSdRlBVWQV8m2oJ7dESiYRzyY/E/bQUe2xlw5caaMuhlM9aoTMtOH25yzMhir0qPg==",
      "cpu": [
        "arm64"
      ],
      "optional": true,
      "os": [
        "darwin"
      ],
      "engines": {
        "node": ">= 12.0.0"
      },
      "funding": {
        "type": "opencollective",
        "url": "https://opencollective.com/parcel"
      }
    },
    "node_modules/lightningcss-darwin-x64": {
      "version": "1.22.0",
      "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.22.0.tgz",
      "integrity": "sha512-9KHRFA0Y6mNxRHeoQMp0YaI0R0O2kOgUlYPRjuasU4d+pI8NRhVn9bt0yX9VPs5ibWX1RbDViSPtGJvYYrfVAQ==",
      "cpu": [
        "x64"
      ],
      "optional": true,
      "os": [
        "darwin"
      ],
      "engines": {
        "node": ">= 12.0.0"
      },
      "funding": {
        "type": "opencollective",
        "url": "https://opencollective.com/parcel"
      }
    },
    "node_modules/lightningcss-freebsd-x64": {
      "version": "1.22.0",
      "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.22.0.tgz",
      "integrity": "sha512-xaYL3xperGwD85rQioDb52ozF3NAJb+9wrge3jD9lxGffplu0Mn35rXMptB8Uc2N9Mw1i3Bvl7+z1evlqVl7ww==",
      "cpu": [
        "x64"
      ],
      "optional": true,
      "os": [
        "freebsd"
      ],
      "engines": {
        "node": ">= 12.0.0"
      },
      "funding": {
        "type": "opencollective",
        "url": "https://opencollective.com/parcel"
      }
    },
    "node_modules/lightningcss-linux-arm-gnueabihf": {
      "version": "1.22.0",
      "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.22.0.tgz",
      "integrity": "sha512-epQGvXIjOuxrZpMpMnRjK54ZqzhiHhCPLtHvw2fb6NeK2kK9YtF0wqmeTBiQ1AkbWfnnXGTstYaFNiadNK+StQ==",
      "cpu": [
        "arm"
      ],
      "optional": true,
      "os": [
        "linux"
      ],
      "engines": {
        "node": ">= 12.0.0"
      },
      "funding": {
        "type": "opencollective",
        "url": "https://opencollective.com/parcel"
      }
    },
    "node_modules/lightningcss-linux-arm64-gnu": {
      "version": "1.22.0",
      "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.22.0.tgz",
      "integrity": "sha512-AArGtKSY4DGTA8xP8SDyNyKtpsUl1Rzq6FW4JomeyUQ4nBrR71uPChksTpj3gmWuGhZeRKLeCUI1DBid/zhChg==",
      "cpu": [
        "arm64"
      ],
      "optional": true,
      "os": [
        "linux"
      ],
      "engines": {
        "node": ">= 12.0.0"
      },
      "funding": {
        "type": "opencollective",
        "url": "https://opencollective.com/parcel"
      }
    },
    "node_modules/lightningcss-linux-arm64-musl": {
      "version": "1.22.0",
      "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.22.0.tgz",
      "integrity": "sha512-RRraNgP8hnBPhInTTUdlFm+z16C/ghbxBG51Sw00hd7HUyKmEUKRozyc5od+/N6pOrX/bIh5vIbtMXIxsos0lg==",
      "cpu": [
        "arm64"
      ],
      "optional": true,
      "os": [
        "linux"
      ],
      "engines": {
        "node": ">= 12.0.0"
      },
      "funding": {
        "type": "opencollective",
        "url": "https://opencollective.com/parcel"
      }
    },
    "node_modules/lightningcss-linux-x64-gnu": {
      "version": "1.22.0",
      "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.22.0.tgz",
      "integrity": "sha512-grdrhYGRi2KrR+bsXJVI0myRADqyA7ekprGxiuK5QRNkv7kj3Yq1fERDNyzZvjisHwKUi29sYMClscbtl+/Zpw==",
      "cpu": [
        "x64"
      ],
      "optional": true,
      "os": [
        "linux"
      ],
      "engines": {
        "node": ">= 12.0.0"
      },
      "funding": {
        "type": "opencollective",
        "url": "https://opencollective.com/parcel"
      }
    },
    "node_modules/lightningcss-linux-x64-musl": {
      "version": "1.22.0",
      "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.22.0.tgz",
      "integrity": "sha512-t5f90X+iQUtIyR56oXIHMBUyQFX/zwmPt72E6Dane3P8KNGlkijTg2I75XVQS860gNoEFzV7Mm5ArRRA7u5CAQ==",
      "cpu": [
        "x64"
      ],
      "optional": true,
      "os": [
        "linux"
      ],
      "engines": {
        "node": ">= 12.0.0"
      },
      "funding": {
        "type": "opencollective",
        "url": "https://opencollective.com/parcel"
      }
    },
    "node_modules/lightningcss-win32-x64-msvc": {
      "version": "1.22.0",
      "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.22.0.tgz",
      "integrity": "sha512-64HTDtOOZE9PUCZJiZZQpyqXBbdby1lnztBccnqh+NtbKxjnGzP92R2ngcgeuqMPecMNqNWxgoWgTGpC+yN5Sw==",
      "cpu": [
        "x64"
      ],
      "optional": true,
      "os": [
        "win32"
      ],
      "engines": {
        "node": ">= 12.0.0"
      },
      "funding": {
        "type": "opencollective",
        "url": "https://opencollective.com/parcel"
      }
    },
    "node_modules/linkify-it": {
      "version": "4.0.1",
      "resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-4.0.1.tgz",


@@ 4533,6 4731,23 @@
      "integrity": "sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==",
      "dev": true
    },
    "lightningcss": {
      "version": "1.22.0",
      "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.22.0.tgz",
      "integrity": "sha512-+z0qvwRVzs4XGRXelnWRNwqsXUx8k3bSkbP8vD42kYKSk3z9OM2P3e/gagT7ei/gwh8DTS80LZOFZV6lm8Z8Fg==",
      "requires": {
        "detect-libc": "^1.0.3",
        "lightningcss-darwin-arm64": "1.22.0",
        "lightningcss-darwin-x64": "1.22.0",
        "lightningcss-freebsd-x64": "1.22.0",
        "lightningcss-linux-arm-gnueabihf": "1.22.0",
        "lightningcss-linux-arm64-gnu": "1.22.0",
        "lightningcss-linux-arm64-musl": "1.22.0",
        "lightningcss-linux-x64-gnu": "1.22.0",
        "lightningcss-linux-x64-musl": "1.22.0",
        "lightningcss-win32-x64-msvc": "1.22.0"
      }
    },
    "lightningcss-cli": {
      "version": "1.16.1",
      "resolved": "https://registry.npmjs.org/lightningcss-cli/-/lightningcss-cli-1.16.1.tgz",


@@ 4597,6 4812,60 @@
      "integrity": "sha512-Tbwr5AkVIj886RcKOcDJY5+ddJzyT0G6oiHwE1/v2IDTbyogjb2+qSHOtArLukohQexGKxFRKq84Zds6qWbwEQ==",
      "optional": true
    },
    "lightningcss-darwin-arm64": {
      "version": "1.22.0",
      "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.22.0.tgz",
      "integrity": "sha512-aH2be3nNny+It5YEVm8tBSSdRlBVWQV8m2oJ7dESiYRzyY/E/bQUe2xlw5caaMuhlM9aoTMtOH25yzMhir0qPg==",
      "optional": true
    },
    "lightningcss-darwin-x64": {
      "version": "1.22.0",
      "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.22.0.tgz",
      "integrity": "sha512-9KHRFA0Y6mNxRHeoQMp0YaI0R0O2kOgUlYPRjuasU4d+pI8NRhVn9bt0yX9VPs5ibWX1RbDViSPtGJvYYrfVAQ==",
      "optional": true
    },
    "lightningcss-freebsd-x64": {
      "version": "1.22.0",
      "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.22.0.tgz",
      "integrity": "sha512-xaYL3xperGwD85rQioDb52ozF3NAJb+9wrge3jD9lxGffplu0Mn35rXMptB8Uc2N9Mw1i3Bvl7+z1evlqVl7ww==",
      "optional": true
    },
    "lightningcss-linux-arm-gnueabihf": {
      "version": "1.22.0",
      "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.22.0.tgz",
      "integrity": "sha512-epQGvXIjOuxrZpMpMnRjK54ZqzhiHhCPLtHvw2fb6NeK2kK9YtF0wqmeTBiQ1AkbWfnnXGTstYaFNiadNK+StQ==",
      "optional": true
    },
    "lightningcss-linux-arm64-gnu": {
      "version": "1.22.0",
      "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.22.0.tgz",
      "integrity": "sha512-AArGtKSY4DGTA8xP8SDyNyKtpsUl1Rzq6FW4JomeyUQ4nBrR71uPChksTpj3gmWuGhZeRKLeCUI1DBid/zhChg==",
      "optional": true
    },
    "lightningcss-linux-arm64-musl": {
      "version": "1.22.0",
      "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.22.0.tgz",
      "integrity": "sha512-RRraNgP8hnBPhInTTUdlFm+z16C/ghbxBG51Sw00hd7HUyKmEUKRozyc5od+/N6pOrX/bIh5vIbtMXIxsos0lg==",
      "optional": true
    },
    "lightningcss-linux-x64-gnu": {
      "version": "1.22.0",
      "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.22.0.tgz",
      "integrity": "sha512-grdrhYGRi2KrR+bsXJVI0myRADqyA7ekprGxiuK5QRNkv7kj3Yq1fERDNyzZvjisHwKUi29sYMClscbtl+/Zpw==",
      "optional": true
    },
    "lightningcss-linux-x64-musl": {
      "version": "1.22.0",
      "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.22.0.tgz",
      "integrity": "sha512-t5f90X+iQUtIyR56oXIHMBUyQFX/zwmPt72E6Dane3P8KNGlkijTg2I75XVQS860gNoEFzV7Mm5ArRRA7u5CAQ==",
      "optional": true
    },
    "lightningcss-win32-x64-msvc": {
      "version": "1.22.0",
      "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.22.0.tgz",
      "integrity": "sha512-64HTDtOOZE9PUCZJiZZQpyqXBbdby1lnztBccnqh+NtbKxjnGzP92R2ngcgeuqMPecMNqNWxgoWgTGpC+yN5Sw==",
      "optional": true
    },
    "linkify-it": {
      "version": "4.0.1",
      "resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-4.0.1.tgz",

M package.json => package.json +5 -1
@@ 6,6 6,7 @@
    "cross-env": "^7.0.3",
    "fast-glob": "^3.2.12",
    "html-minifier": "^4.0.0",
    "lightningcss": "^1.22.0",
    "lightningcss-cli": "^1.15.1",
    "npm-run-all": "^4.1.5",
    "sass": "^1.54.9"


@@ 16,9 17,12 @@
    "build:rm": "rm -rf _site",
    "build:sass": "sass  --no-source-map style:_site/style",
    "build:eleventy": "eleventy",
    "build:minify_css": "lightningcss --minify --targets '> 0.25%, not IE 11' _site/style/*.css -o _site/style/*.css",
    "build:minify_html": "html-minifier --input-dir _site --output-dir _site --collapse-whitespace --file-ext html",
    "start": "npm-run-all build:sass --parallel watch:*",
    "build": "npm-run-all build:rm build:sass build:eleventy build:minify_html"
    "build": "npm-run-all build:rm build:sass build:minify_css build:eleventy build:minify_html",
    "build_pt1": "npm-run-all build:rm build:sass",
    "build_pt2": "npm-run-all build:eleventy build:minify_html"
  },
  "browserslist": [
    "> 0.25%",

M shell.nix => shell.nix +1 -0
@@ 2,6 2,7 @@ with (import <nixpkgs> {});
  mkShell {
    buildInputs = [
      bundler
      lightningcss
      ruby
      nodejs
      nodePackages_latest.npm