blogwright 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +24 -0
- package/README.md +12 -0
- package/agent/Dockerfile +20 -0
- package/agent/agent-manifest.json +3 -0
- package/agent/server.js +7935 -0
- package/dist/adapters/fetch-ping.d.ts +9 -0
- package/dist/adapters/fetch-ping.js +26 -0
- package/dist/adapters/fetch-ping.js.map +1 -0
- package/dist/adapters/process-vcs.d.ts +12 -0
- package/dist/adapters/process-vcs.js +49 -0
- package/dist/adapters/process-vcs.js.map +1 -0
- package/dist/agent-package.d.ts +19 -0
- package/dist/agent-package.js +49 -0
- package/dist/agent-package.js.map +1 -0
- package/dist/bin.d.ts +2 -0
- package/dist/bin.js +14 -0
- package/dist/bin.js.map +1 -0
- package/dist/cli.d.ts +6 -0
- package/dist/cli.js +249 -0
- package/dist/cli.js.map +1 -0
- package/dist/commands.d.ts +31 -0
- package/dist/commands.js +269 -0
- package/dist/commands.js.map +1 -0
- package/dist/context.d.ts +50 -0
- package/dist/context.js +77 -0
- package/dist/context.js.map +1 -0
- package/dist/deploy.d.ts +57 -0
- package/dist/deploy.js +247 -0
- package/dist/deploy.js.map +1 -0
- package/dist/graph.d.ts +20 -0
- package/dist/graph.js +73 -0
- package/dist/graph.js.map +1 -0
- package/dist/init.d.ts +4 -0
- package/dist/init.js +92 -0
- package/dist/init.js.map +1 -0
- package/dist/logger.d.ts +18 -0
- package/dist/logger.js +34 -0
- package/dist/logger.js.map +1 -0
- package/dist/microvms.d.ts +15 -0
- package/dist/microvms.js +56 -0
- package/dist/microvms.js.map +1 -0
- package/dist/nodes.d.ts +34 -0
- package/dist/nodes.js +858 -0
- package/dist/nodes.js.map +1 -0
- package/dist/ports.d.ts +25 -0
- package/dist/ports.js +7 -0
- package/dist/ports.js.map +1 -0
- package/dist/render.d.ts +33 -0
- package/dist/render.js +81 -0
- package/dist/render.js.map +1 -0
- package/dist/repo.d.ts +25 -0
- package/dist/repo.js +75 -0
- package/dist/repo.js.map +1 -0
- package/dist/rkey.d.ts +6 -0
- package/dist/rkey.js +7 -0
- package/dist/rkey.js.map +1 -0
- package/dist/seo.d.ts +15 -0
- package/dist/seo.js +30 -0
- package/dist/seo.js.map +1 -0
- package/dist/test-support.d.ts +44 -0
- package/dist/test-support.js +120 -0
- package/dist/test-support.js.map +1 -0
- package/package.json +57 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Ant Stanley
|
|
4
|
+
|
|
5
|
+
Portions of packages/cli/src/pds/rkey.ts are vendored from
|
|
6
|
+
https://github.com/mastrojs/atproto (MIT License, © 2025 Mastro).
|
|
7
|
+
|
|
8
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
9
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
10
|
+
in the Software without restriction, including without limitation the rights
|
|
11
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
12
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
13
|
+
furnished to do so, subject to the following conditions:
|
|
14
|
+
|
|
15
|
+
The above copyright notice and this permission notice shall be included in all
|
|
16
|
+
copies or substantial portions of the Software.
|
|
17
|
+
|
|
18
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
19
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
20
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
21
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
22
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
23
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
24
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# blogwright
|
|
2
|
+
|
|
3
|
+
Deploy a static Astro site to AWS: S3 + CloudFront with builds in a Lambda MicroVM,
|
|
4
|
+
GitHub-OIDC CI deploys, PR previews, and optional standard.site (AT Protocol) publishing.
|
|
5
|
+
|
|
6
|
+
```sh
|
|
7
|
+
pnpm add -D blogwright
|
|
8
|
+
pnpm exec blogwright bootstrap --domain example.com
|
|
9
|
+
pnpm exec blogwright deploy
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
Full documentation: https://github.com/antstanley/blogwright
|
package/agent/Dockerfile
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Builder MicroVM image: a long-running HTTP server that builds the Astro site.
|
|
2
|
+
# Node 24 + pnpm (via corepack). The site's own dependencies are installed at build
|
|
3
|
+
# time inside the MicroVM using the source zip handed to the /run hook.
|
|
4
|
+
FROM node:24-slim
|
|
5
|
+
|
|
6
|
+
# Enable pnpm and provide git (Astro/content tooling can shell out to it).
|
|
7
|
+
RUN corepack enable && apt-get update && apt-get install -y --no-install-recommends git \
|
|
8
|
+
&& rm -rf /var/lib/apt/lists/*
|
|
9
|
+
|
|
10
|
+
WORKDIR /app
|
|
11
|
+
|
|
12
|
+
# The image artifact contains a bundled server (no external deps) + a minimal manifest.
|
|
13
|
+
COPY package.json ./
|
|
14
|
+
COPY server.js ./
|
|
15
|
+
|
|
16
|
+
ENV NODE_ENV=production
|
|
17
|
+
EXPOSE 8080
|
|
18
|
+
|
|
19
|
+
# Lambda snapshots the running server; the /ready hook confirms readiness.
|
|
20
|
+
CMD ["node", "server.js"]
|