my website at ewancroft.uk
6
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: automate version bump updates

+17 -10
+3 -2
package.json
··· 11 11 "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", 12 12 "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch", 13 13 "format": "prettier --write .", 14 - "lint": "prettier --check ." 14 + "lint": "prettier --check .", 15 + "postversion": "node -e \"const fs=require('fs'),v=process.env.npm_package_version,c=fs.readFileSync('README.md','utf8');fs.writeFileSync('README.md',c.replace(/\\*\\*Version\\*\\*: .+/,'**Version**: '+v));\" && git add README.md package.json" 15 16 }, 16 17 "devDependencies": { 17 18 "@sveltejs/adapter-vercel": "^6.3.3", ··· 31 32 }, 32 33 "dependencies": { 33 34 "@atproto/api": "^0.18.21", 34 - "@ewanc26/atproto": "^0.2.7", 35 + "@ewanc26/atproto": "^0.2.8", 35 36 "@ewanc26/noise-avatar": "^0.2.3", 36 37 "@ewanc26/supporters": "^0.1.8", 37 38 "@ewanc26/tid": "^1.1.3",
+6 -6
pnpm-lock.yaml
··· 12 12 specifier: ^0.18.21 13 13 version: 0.18.21 14 14 '@ewanc26/atproto': 15 - specifier: ^0.2.7 16 - version: 0.2.7(@atproto/api@0.18.21) 15 + specifier: ^0.2.8 16 + version: 0.2.8(@atproto/api@0.18.21) 17 17 '@ewanc26/noise-avatar': 18 18 specifier: ^0.2.3 19 19 version: 0.2.3 ··· 417 417 cpu: [x64] 418 418 os: [win32] 419 419 420 - '@ewanc26/atproto@0.2.7': 421 - resolution: {integrity: sha512-I6qN8KH6cqK+CrO647/8nqxIHMiWaMT7LZtulivxbwzD8svWVP3++rzYY1kcfkTthIBlV20CEeD8j31J9MtSvg==} 420 + '@ewanc26/atproto@0.2.8': 421 + resolution: {integrity: sha512-x1E5Ol1pb0OXTTIQN0meV82nJpxofwbTsEDnc/2FiLIff2s6NGSzCq+hUIE7gnNY79tcb9dJiwNXVQZ7a8YkgA==} 422 422 peerDependencies: 423 423 '@atproto/api': '>=0.13.0' 424 424 ··· 1520 1520 '@esbuild/win32-x64@0.27.4': 1521 1521 optional: true 1522 1522 1523 - '@ewanc26/atproto@0.2.7(@atproto/api@0.18.21)': 1523 + '@ewanc26/atproto@0.2.8(@atproto/api@0.18.21)': 1524 1524 dependencies: 1525 1525 '@atproto/api': 0.18.21 1526 1526 ··· 1548 1548 svelte: 5.54.1 1549 1549 tailwindcss: 4.2.2 1550 1550 optionalDependencies: 1551 - '@ewanc26/atproto': 0.2.7(@atproto/api@0.18.21) 1551 + '@ewanc26/atproto': 0.2.8(@atproto/api@0.18.21) 1552 1552 transitivePeerDependencies: 1553 1553 - '@atproto/api' 1554 1554
+2
src/app.d.ts
··· 10 10 } 11 11 } 12 12 13 + declare const __APP_VERSION__: string; 14 + 13 15 export {};
+2 -2
src/lib/components/layout/Footer.svelte
··· 104 104 type="button" 105 105 onclick={() => happyMacStore.incrementClick()} 106 106 class="cursor-default transition-colors select-none hover:text-ink-600 dark:hover:text-ink-300" 107 - aria-label="Version 11.4.0{showHint 107 + aria-label="Version {__APP_VERSION__}{showHint 108 108 ? ` - ${$happyMacStore.clickCount} of 24 clicks` 109 109 : ''}" 110 110 title={showHint ? `${$happyMacStore.clickCount}/24` : ''} 111 111 > 112 - v11.4.0{#if showHint}<span class="ml-1 text-xs opacity-60" 112 + v{__APP_VERSION__}{#if showHint}<span class="ml-1 text-xs opacity-60" 113 113 >({$happyMacStore.clickCount}/24)</span 114 114 >{/if} 115 115 </button>
+4
vite.config.ts
··· 1 1 import tailwindcss from '@tailwindcss/vite'; 2 2 import { sveltekit } from '@sveltejs/kit/vite'; 3 3 import { defineConfig } from 'vite'; 4 + import { version } from './package.json'; 4 5 5 6 export default defineConfig({ 6 7 plugins: [tailwindcss(), sveltekit()], 8 + define: { 9 + __APP_VERSION__: JSON.stringify(version) 10 + }, 7 11 8 12 9 13 build: {