From 8f04dc5b6c60469e4efa9199373f2588be9f5d6b Mon Sep 17 00:00:00 2001 From: Joshua Seigler <2583159+seigler@users.noreply.github.com> Date: Fri, 7 Jun 2024 11:21:50 -0400 Subject: [PATCH] publishing from cli with rsync --- eleventy.config.js | 2 + package.json | 4 +- pnpm-lock.yaml | 194 +++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 199 insertions(+), 1 deletion(-) diff --git a/eleventy.config.js b/eleventy.config.js index 000e30c..fad5513 100644 --- a/eleventy.config.js +++ b/eleventy.config.js @@ -4,6 +4,7 @@ const md = require("markdown-it"); const mdAnchor = require("markdown-it-anchor"); const mdFootnote = require("markdown-it-footnote"); const prettier = require("prettier"); +const clean = require("eleventy-plugin-clean"); module.exports = (config) => { const slugify = config.getFilter("slugify"); @@ -67,6 +68,7 @@ module.exports = (config) => { } }) + clean.updateFileRecord("dist"); return { dir: { input: "site", diff --git a/package.json b/package.json index 5219efe..5ef82fe 100644 --- a/package.json +++ b/package.json @@ -4,13 +4,15 @@ "description": "", "main": "index.js", "scripts": { - "dev": "pnpx @11ty/eleventy --serve" + "dev": "pnpx @11ty/eleventy --serve", + "upload": "pnpx @11ty/eleventy && rsync -aP --delete dist/ joshua@seigler.net:/srv/www/joshua.seigler.net/public_html/" }, "keywords": [], "author": "Joshua Seigler", "license": "ISC", "dependencies": { "@11ty/eleventy": "^2.0.1", + "eleventy-plugin-clean": "^1.2.6", "markdown-it-anchor": "^9.0.1", "markdown-it-footnote": "^4.0.0", "prettier": "^3.3.1" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7f4a315..e968fb6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -11,6 +11,9 @@ importers: '@11ty/eleventy': specifier: ^2.0.1 version: 2.0.1 + eleventy-plugin-clean: + specifier: ^1.2.6 + version: 1.2.6(@11ty/eleventy@2.0.1) markdown-it-anchor: specifier: ^9.0.1 version: 9.0.1(@types/markdown-it@14.1.1)(markdown-it@13.0.2) @@ -64,6 +67,66 @@ packages: '@iarna/toml@2.2.5': resolution: {integrity: sha512-trnsAYxU3xnS1gPHPyU961coFyLkh4gAD/0zQ5mymY4yOZ+CYvsPqUbOFSw0aDM4y0tV7tiFxL/1XfXPNC6IPg==} + '@lmdb/lmdb-darwin-arm64@2.9.4': + resolution: {integrity: sha512-38XmbES/wVcvMXdwcM5QzL0cSaZu3VwE7mCd0I89eliHQTMQblgWXsr2HQoP9v0JnH6jVt7+E/TkeGNLmp4wzA==} + cpu: [arm64] + os: [darwin] + + '@lmdb/lmdb-darwin-x64@2.9.4': + resolution: {integrity: sha512-JkPrV8rEu88FzMcuouZeU2b/NuVC3KwQxKo5vKhNycBtsCn7KCWHalxL4sdTiHQ4xtgMca3mmeDAdxgqQqnDig==} + cpu: [x64] + os: [darwin] + + '@lmdb/lmdb-linux-arm64@2.9.4': + resolution: {integrity: sha512-aIzmw0g4Wdd/w2rDppGfo1JEl4xWpg6HPbf5ZeuWXCjFms8oc8cazm6oBEAimiZEgYYBFPDPdM644xJcwuJbxQ==} + cpu: [arm64] + os: [linux] + + '@lmdb/lmdb-linux-arm@2.9.4': + resolution: {integrity: sha512-b3JZL5pLuvcGEbcsThUQPFlQdBFaBxImrlNbFUeJmzLwpdgGRi0RSQdZZ2PuIoZvpRj0tfNlhXQwXiYMz+9iTw==} + cpu: [arm] + os: [linux] + + '@lmdb/lmdb-linux-x64@2.9.4': + resolution: {integrity: sha512-Yj6Nb+/j+ZZ65oH/UCE0UfUu/6TO5wWLIeE2izGCpsCxcozZVbzwhzrCs0FUXf6lXv46DJteONosWH9o1XjzqQ==} + cpu: [x64] + os: [linux] + + '@lmdb/lmdb-win32-x64@2.9.4': + resolution: {integrity: sha512-0L6Tyun47/kQb+FzTDIumrfZgU6oEos0RgekKa/3YC7nsUY+ZASZHikzGgEZpMQHSz5YeR+DDUtOMSwqodWHDg==} + cpu: [x64] + os: [win32] + + '@msgpackr-extract/msgpackr-extract-darwin-arm64@3.0.2': + resolution: {integrity: sha512-9bfjwDxIDWmmOKusUcqdS4Rw+SETlp9Dy39Xui9BEGEk19dDwH0jhipwFzEff/pFg95NKymc6TOTbRKcWeRqyQ==} + cpu: [arm64] + os: [darwin] + + '@msgpackr-extract/msgpackr-extract-darwin-x64@3.0.2': + resolution: {integrity: sha512-lwriRAHm1Yg4iDf23Oxm9n/t5Zpw1lVnxYU3HnJPTi2lJRkKTrps1KVgvL6m7WvmhYVt/FIsssWay+k45QHeuw==} + cpu: [x64] + os: [darwin] + + '@msgpackr-extract/msgpackr-extract-linux-arm64@3.0.2': + resolution: {integrity: sha512-FU20Bo66/f7He9Fp9sP2zaJ1Q8L9uLPZQDub/WlUip78JlPeMbVL8546HbZfcW9LNciEXc8d+tThSJjSC+tmsg==} + cpu: [arm64] + os: [linux] + + '@msgpackr-extract/msgpackr-extract-linux-arm@3.0.2': + resolution: {integrity: sha512-MOI9Dlfrpi2Cuc7i5dXdxPbFIgbDBGgKR5F2yWEa6FVEtSWncfVNKW5AKjImAQ6CZlBK9tympdsZJ2xThBiWWA==} + cpu: [arm] + os: [linux] + + '@msgpackr-extract/msgpackr-extract-linux-x64@3.0.2': + resolution: {integrity: sha512-gsWNDCklNy7Ajk0vBBf9jEx04RUxuDQfBse918Ww+Qb9HCPoGzS+XJTLe96iN3BVK7grnLiYghP/M4L8VsaHeA==} + cpu: [x64] + os: [linux] + + '@msgpackr-extract/msgpackr-extract-win32-x64@3.0.2': + resolution: {integrity: sha512-O+6Gs8UeDbyFpbSh2CPEz/UOrrdWPTBYNblZK5CxxLisYt4kGX3Sc+czffFonyjiGSq3jWLwJS/CCJc7tBr4sQ==} + cpu: [x64] + os: [win32] + '@nodelib/fs.scandir@2.1.5': resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==} engines: {node: '>= 8'} @@ -253,6 +316,10 @@ packages: resolution: {integrity: sha512-JeMq7fEshyepOWDfcfHK06N3MhyPhz++vtqWhMT5O9A3K42rdsEDpfdVqjaqaAhsw6a+ZqeDvQVtD0hFHQWrzg==} engines: {node: '>= 0.6.0'} + detect-libc@2.0.3: + resolution: {integrity: sha512-bwy0MGW55bG41VqxxypOsdSdGqLwXPI/focwgTYCFMbdUiBAxLg9CFzG08sz2aqzknwiX7Hkl0bQENjg8iLByw==} + engines: {node: '>=8'} + dev-ip@1.0.1: resolution: {integrity: sha512-LmVkry/oDShEgSZPNgqCIp2/TlqtExeGmymru3uCELnfyjY11IzpAproLYs+1X88fXO6DBoYP3ul2Xo2yz2j6A==} engines: {node: '>= 0.8.0'} @@ -282,6 +349,11 @@ packages: engines: {node: '>=0.10.0'} hasBin: true + eleventy-plugin-clean@1.2.6: + resolution: {integrity: sha512-eiK+VAzXqQLOhxyGoh6HcLyZhghjqhsU825gsI+nwhTvpp1Zbx46gY9ipofkwCKFOONGSP6ENDZpoULkTadfTQ==} + peerDependencies: + '@11ty/eleventy': 1.0.0 - 1.0.2 || ^2.0.0 + encodeurl@1.0.2: resolution: {integrity: sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==} engines: {node: '>= 0.8'} @@ -511,6 +583,10 @@ packages: list-to-array@1.1.0: resolution: {integrity: sha512-+dAZZ2mM+/m+vY9ezfoueVvrgnHIGi5FvgSymbIgJOFwiznWyA59mav95L+Mc6xPtL3s9gm5eNTlNtxJLbNM1g==} + lmdb@2.9.4: + resolution: {integrity: sha512-Kri5TSKgpLk5q1VO7vYCcqAMyXTxmis6Et+6UARkU7ygvg3ZxUX2oEu/UwBkBskaS1d73effiBrTiHYyDppcBg==} + hasBin: true + lodash.deburr@4.1.0: resolution: {integrity: sha512-m/M1U1f3ddMCs6Hq2tAsYThTBDaAKFDX3dwDo97GEYzamXi9SqUpjWi/Rrj/gf3X2n8ktwgZrlP1z6E3v/IExQ==} @@ -581,6 +657,13 @@ packages: ms@2.1.2: resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==} + msgpackr-extract@3.0.2: + resolution: {integrity: sha512-SdzXp4kD/Qf8agZ9+iTu6eql0m3kWm1A2y1hkpTeVNENutaB0BwHlSvAIaMxwntmRUAUjon2V4L8Z/njd0Ct8A==} + hasBin: true + + msgpackr@1.10.2: + resolution: {integrity: sha512-L60rsPynBvNE+8BWipKKZ9jHcSGbtyJYIwjRq0VrIvQ08cRjntGXJYW/tmciZ2IHWIY8WEW32Qa2xbh5+SKBZA==} + multimatch@5.0.0: resolution: {integrity: sha512-ypMKuglUrZUD99Tk2bUQ+xNQj43lPEfAeX2o9cTteAmShXy2VHDJpuwu1o0xqoKCt9jLVAvwyFKdLTPXKAfJyA==} engines: {node: '>=10'} @@ -592,6 +675,17 @@ packages: neo-async@2.6.2: resolution: {integrity: sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==} + node-addon-api@6.1.0: + resolution: {integrity: sha512-+eawOlIgy680F0kBzPUNFhMZGtJ1YmqM6l4+Crf4IkImjYrO/mqPwRMh352g23uIaQKFItcQ64I7KMaJxHgAVA==} + + node-gyp-build-optional-packages@5.0.7: + resolution: {integrity: sha512-YlCCc6Wffkx0kHkmam79GKvDQ6x+QZkMjFGrIMxgFNILFvGSbCp2fCBC55pGTT9gVaz8Na5CLmxt/urtzRv36w==} + hasBin: true + + node-gyp-build-optional-packages@5.1.1: + resolution: {integrity: sha512-+P72GAjVAbTxjjwUmwjVrqrdZROD4nf8KgpBoDxqXXTiYZZt/ud60dE5yvCSr9lRO8e8yv6kgJIC0K0PfZFVQw==} + hasBin: true + normalize-path@3.0.0: resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==} engines: {node: '>=0.10.0'} @@ -617,6 +711,9 @@ packages: once@1.4.0: resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==} + ordered-binary@1.5.1: + resolution: {integrity: sha512-5VyHfHY3cd0iza71JepYG50My+YUbrFtGoUz2ooEydPyPM7Aai/JW098juLr+RG6+rDJuzNNTsEQu2DZa1A41A==} + parse-srcset@1.0.2: resolution: {integrity: sha512-/2qh0lav6CmI15FzA3i/2Bzk2zCgQhGMkvhOhKNcBVQ1ldgpbfiNTVslmooUmWJcADi1f1kIeynbDRVzNlfR6Q==} @@ -827,6 +924,9 @@ packages: resolution: {integrity: sha512-Dhxzh5HZuiHQhbvTW9AMetFfBHDMYpo23Uo9btPXgdYP+3T5S+p+jgNy7spra+veYhBP2dCSgxR/i2Y02h5/6w==} engines: {node: '>=0.10.0'} + weak-lru-cache@1.2.2: + resolution: {integrity: sha512-DEAoo25RfSYMuTGc9vPJzZcZullwIqRDSI9LOy+fkCJPi6hykCnfKaXTuPBDuXAUcqHXyOgFtHNp/kB2FjYHbw==} + which@2.0.2: resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==} engines: {node: '>= 8'} @@ -946,6 +1046,42 @@ snapshots: '@iarna/toml@2.2.5': {} + '@lmdb/lmdb-darwin-arm64@2.9.4': + optional: true + + '@lmdb/lmdb-darwin-x64@2.9.4': + optional: true + + '@lmdb/lmdb-linux-arm64@2.9.4': + optional: true + + '@lmdb/lmdb-linux-arm@2.9.4': + optional: true + + '@lmdb/lmdb-linux-x64@2.9.4': + optional: true + + '@lmdb/lmdb-win32-x64@2.9.4': + optional: true + + '@msgpackr-extract/msgpackr-extract-darwin-arm64@3.0.2': + optional: true + + '@msgpackr-extract/msgpackr-extract-darwin-x64@3.0.2': + optional: true + + '@msgpackr-extract/msgpackr-extract-linux-arm64@3.0.2': + optional: true + + '@msgpackr-extract/msgpackr-extract-linux-arm@3.0.2': + optional: true + + '@msgpackr-extract/msgpackr-extract-linux-x64@3.0.2': + optional: true + + '@msgpackr-extract/msgpackr-extract-win32-x64@3.0.2': + optional: true + '@nodelib/fs.scandir@2.1.5': dependencies: '@nodelib/fs.stat': 2.0.5 @@ -1124,6 +1260,8 @@ snapshots: dependency-graph@0.11.0: {} + detect-libc@2.0.3: {} + dev-ip@1.0.1: {} doctypes@1.1.0: {} @@ -1152,6 +1290,18 @@ snapshots: dependencies: jake: 10.9.1 + eleventy-plugin-clean@1.2.6(@11ty/eleventy@2.0.1): + dependencies: + '@11ty/eleventy': 2.0.1 + debug: 4.3.5 + fast-glob: 3.3.2 + is-glob: 4.0.3 + kleur: 4.1.5 + lmdb: 2.9.4 + recursive-copy: 2.0.14 + transitivePeerDependencies: + - supports-color + encodeurl@1.0.2: {} entities@2.2.0: {} @@ -1378,6 +1528,21 @@ snapshots: list-to-array@1.1.0: {} + lmdb@2.9.4: + dependencies: + msgpackr: 1.10.2 + node-addon-api: 6.1.0 + node-gyp-build-optional-packages: 5.1.1 + ordered-binary: 1.5.1 + weak-lru-cache: 1.2.2 + optionalDependencies: + '@lmdb/lmdb-darwin-arm64': 2.9.4 + '@lmdb/lmdb-darwin-x64': 2.9.4 + '@lmdb/lmdb-linux-arm': 2.9.4 + '@lmdb/lmdb-linux-arm64': 2.9.4 + '@lmdb/lmdb-linux-x64': 2.9.4 + '@lmdb/lmdb-win32-x64': 2.9.4 + lodash.deburr@4.1.0: {} luxon@3.4.4: {} @@ -1441,6 +1606,22 @@ snapshots: ms@2.1.2: {} + msgpackr-extract@3.0.2: + dependencies: + node-gyp-build-optional-packages: 5.0.7 + optionalDependencies: + '@msgpackr-extract/msgpackr-extract-darwin-arm64': 3.0.2 + '@msgpackr-extract/msgpackr-extract-darwin-x64': 3.0.2 + '@msgpackr-extract/msgpackr-extract-linux-arm': 3.0.2 + '@msgpackr-extract/msgpackr-extract-linux-arm64': 3.0.2 + '@msgpackr-extract/msgpackr-extract-linux-x64': 3.0.2 + '@msgpackr-extract/msgpackr-extract-win32-x64': 3.0.2 + optional: true + + msgpackr@1.10.2: + optionalDependencies: + msgpackr-extract: 3.0.2 + multimatch@5.0.0: dependencies: '@types/minimatch': 3.0.5 @@ -1453,6 +1634,15 @@ snapshots: neo-async@2.6.2: {} + node-addon-api@6.1.0: {} + + node-gyp-build-optional-packages@5.0.7: + optional: true + + node-gyp-build-optional-packages@5.1.1: + dependencies: + detect-libc: 2.0.3 + normalize-path@3.0.0: {} nunjucks@3.2.4(chokidar@3.6.0): @@ -1473,6 +1663,8 @@ snapshots: dependencies: wrappy: 1.0.2 + ordered-binary@1.5.1: {} + parse-srcset@1.0.2: {} parseurl@1.3.3: {} @@ -1689,6 +1881,8 @@ snapshots: void-elements@3.1.0: {} + weak-lru-cache@1.2.2: {} + which@2.0.2: dependencies: isexe: 2.0.0