Skip to content

Commit

Permalink
refactor: sold stack.dev; back to borja.io
Browse files Browse the repository at this point in the history
  • Loading branch information
bcanseco committed Apr 27, 2023
1 parent 50ccdec commit 6267898
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 43 deletions.
23 changes: 2 additions & 21 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@ Thanks for considering a contribution to my website! 🙏

My main goal is to make sure the site maintains excellent scores across [Lighthouse][lighthouse], [Observatory][observatory], and other tools. Whenever a commit is made on `master` (whether directly or via merged PR), the live site will get updated and then these tools will perform scans automatically.

[lighthouse]: https://lighthouse-dot-webdotdevsite.appspot.com/lh/html?url=https://hi.im.borja.and.im.a.full.stack.dev
[observatory]: https://observatory.mozilla.org/analyze/hi.im.borja.and.im.a.full.stack.dev
[lighthouse]: https://pagespeed.web.dev/analysis?url=https://borja.io
[observatory]: https://observatory.mozilla.org/analyze/borja.io

## PR Checklist

* [ ] Please make a pull request against the `master` branch.
* [ ] Please make sure your code passes all [linting](../README.md#linting-) checks.
* [ ] Please make sure your code passes an [`npm audit --audit-level=moderate`](https://docs.npmjs.com/cli/audit) check.
* [ ] Please use [conventional commit](https://www.conventionalcommits.org/) messages.

## Why not use Gatsby/Next.js/`x` framework?
Expand All @@ -20,24 +19,6 @@ I generally prefer Gatsby when building fast React-based apps. However, it doesn

Next.js is cool too, but my personal website is an opportunity to go crazy and roll a ["sensible setup"](../webpack.config.babel.js) myself. If anything, it's a good learning experience.

## What's up with the domain?

I bought **stack.dev** during the `.dev` [Landrush period](https://en.wikipedia.org/wiki/Landrush_period) in February 2019. Having previously used borja.io, I wanted to move away from `.io` (which was never obvious to non-technical folks) so I chose a [domain hack](https://en.wikipedia.org/wiki/Domain_hack) play on "full-stack developer."

The canonical URL I prefer is `hi.im.borja.and.im.a.full.stack.dev`, but I point to just `full.stack.dev` on social media sites for brevity. Thanks to multiple [wildcard certificates](https://en.wikipedia.org/wiki/Wildcard_certificate) and [301 redirects](https://en.wikipedia.org/wiki/HTTP_301), all of the domain patterns below work:

* [`stack.dev`](https://stack.dev)
* [`*.stack.dev`](https://www.stack.dev)
* [`*.full.stack.dev`](https://www.full.stack.dev)
* [`*.a.full.stack.dev`](https://www.a.full.stack.dev)
* [`*.im.a.full.stack.dev`](https://www.im.a.full.stack.dev)
* [`*.and.im.a.full.stack.dev`](https://www.and.im.a.full.stack.dev)
* [`*.borja.and.im.a.full.stack.dev`](https://www.borja.and.im.a.full.stack.dev)
* [`*.im.borja.and.im.a.full.stack.dev`](https://www.im.borja.and.im.a.full.stack.dev)
* [`*.hi.im.borja.and.im.a.full.stack.dev`](https://www.hi.im.borja.and.im.a.full.stack.dev)

Note that the `.dev` gTLD is HTTPS-only.

## Why is the minimum Lighthouse score 0.93 instead of 0.95 for Best Practices?

Lighthouse is currently complaining about something in the Issues tab, despite nothing there.
19 changes: 10 additions & 9 deletions .github/workflows/npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,22 @@ on:
branches: [ master ]

jobs:
audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- run: npm audit --audit-level=moderate
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@v3
with:
node-version: 14
- run: npm ci
- run: npm run lint
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@v3
with:
node-version: 14
- run: npm ci
- run: npm run build
- uses: actions/upload-artifact@master
Expand All @@ -30,13 +31,13 @@ jobs:
path: dist
deploy:
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
needs: [build, lint, audit]
needs: [build, lint]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v1
with:
name: dist
- uses: appleboy/scp-action@v0.0.7
- uses: appleboy/scp-action@98930d398ce425af0148ea8a0e3295cd04fe2b7a
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
Expand All @@ -59,12 +60,12 @@ jobs:
- uses: actions/checkout@master
- uses: treosh/lighthouse-ci-action@main
with:
urls: https://hi.im.borja.and.im.a.full.stack.dev
urls: https://borja.io
configPath: .github/lighthouse/config.json
uploadArtifacts: true
observatory:
needs: [deploy]
runs-on: ubuntu-latest
steps:
- run: sudo npm install -g observatory-cli
- run: observatory hi.im.borja.and.im.a.full.stack.dev --min-grade A+
- run: observatory borja.io --min-grade A+
2 changes: 1 addition & 1 deletion .github/workflows/uptime.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ jobs:
steps:
- uses: srt32/uptime@master
with:
url-to-hit: https://hi.im.borja.and.im.a.full.stack.dev
url-to-hit: https://borja.io
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,24 @@
</p>

<h1 align="center">
<a href="https://full.stack.dev">full.stack.dev</a>
<a href="https://borja.io">borja.io</a>
</h1>

<p align="center">
<a href="https://github.com/bcanseco/full.stack.dev/actions?query=workflow%3Anpm">
<img src="https://github.com/bcanseco/full.stack.dev/workflows/npm/badge.svg">
<a href="https://github.com/bcanseco/borja.io/actions?query=workflow%3Anpm">
<img src="https://github.com/bcanseco/borja.io/workflows/npm/badge.svg">
</a>

<a href="https://github.com/bcanseco/full.stack.dev/actions?query=workflow%3Amarkdown">
<img src="https://github.com/bcanseco/full.stack.dev/workflows/markdown/badge.svg">
<a href="https://github.com/bcanseco/borja.io/actions?query=workflow%3Amarkdown">
<img src="https://github.com/bcanseco/borja.io/workflows/markdown/badge.svg">
</a>

<a href="https://github.com/bcanseco/full.stack.dev/actions?query=workflow%3Acommitizen">
<img src="https://github.com/bcanseco/full.stack.dev/workflows/commitizen/badge.svg">
<a href="https://github.com/bcanseco/borja.io/actions?query=workflow%3Acommitizen">
<img src="https://github.com/bcanseco/borja.io/workflows/commitizen/badge.svg">
</a>

<a href="https://github.com/bcanseco/full.stack.dev/actions?query=workflow%3Auptime">
<img src="https://github.com/bcanseco/full.stack.dev/workflows/uptime/badge.svg">
<a href="https://github.com/bcanseco/borja.io/actions?query=workflow%3Auptime">
<img src="https://github.com/bcanseco/borja.io/workflows/uptime/badge.svg">
</a>
</p>

Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "hi.im.borja.and.im.a.full.stack.dev",
"name": "borja.io",
"private": true,
"scripts": {
"start": "cross-env NODE_ENV=development webpack-dev-server",
Expand Down
2 changes: 1 addition & 1 deletion src/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default async function bootstrap(isPrerender) {

// eslint-disable-next-line no-console
console.log(
['%c', '👀', '\n', '%c', 'https://github.com/bcanseco/full.stack.dev', '\n'].join(''),
['%c', '👀', '\n', '%c', 'https://github.com/bcanseco/borja.io', '\n'].join(''),
'font-size: 9em',
'font-weight: bold',
);
Expand Down

0 comments on commit 6267898

Please sign in to comment.