custom element for embedding Bluesky posts and feeds mary-ext.github.io/bluesky-embed
typescript npm bluesky atcute
7
fork

Configure Feed

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

chore: add site publish script

Mary b3ac4c23 1ffebe1f

+21 -25
+1 -24
packages/site/.gitignore
··· 1 - # Logs 2 - logs 3 - *.log 4 - npm-debug.log* 5 - yarn-debug.log* 6 - yarn-error.log* 7 - pnpm-debug.log* 8 - lerna-debug.log* 9 - 10 - node_modules 11 - dist 12 - dist-ssr 13 - *.local 14 - 15 - # Editor directories and files 16 - .vscode/* 17 - !.vscode/extensions.json 18 - .idea 19 - .DS_Store 20 - *.suo 21 - *.ntvs* 22 - *.njsproj 23 - *.sln 24 - *.sw? 1 + pages/
+2 -1
packages/site/package.json
··· 5 5 "scripts": { 6 6 "dev": "vite", 7 7 "build": "tsc -b && vite build", 8 - "preview": "vite preview" 8 + "preview": "vite preview", 9 + "publish": "pnpm run build && ./scripts/publish.sh" 9 10 }, 10 11 "dependencies": { 11 12 "@atcute/client": "^2.0.6",
+18
packages/site/scripts/publish.sh
··· 1 + #!/usr/bin/env bash 2 + 3 + set -euo pipefail 4 + 5 + if [[ -n $(git status --porcelain) ]]; then 6 + echo 'Working directory is not clean' 7 + git status --short 8 + exit 1 9 + fi 10 + 11 + GIT_COMMIT=$(git rev-parse HEAD) 12 + 13 + rsync -aHAX --delete --exclude=.git --exclude=.nojekyll dist/ pages/ 14 + touch pages/.nojekyll 15 + 16 + git -C pages/ add . 17 + git -C pages/ commit -m "deploy: ${GIT_COMMIT}" 18 + git -C pages/ push