From 62678989a7e288ea26cf32ee057ef622a8599944 Mon Sep 17 00:00:00 2001
From: Borja Canseco
Date: Thu, 27 Apr 2023 00:16:49 -0600
Subject: [PATCH] refactor: sold stack.dev; back to borja.io
---
.github/CONTRIBUTING.md | 23 ++---------------------
.github/workflows/npm.yml | 19 ++++++++++---------
.github/workflows/uptime.yml | 2 +-
README.md | 18 +++++++++---------
package-lock.json | 2 +-
package.json | 2 +-
src/index.jsx | 2 +-
7 files changed, 25 insertions(+), 43 deletions(-)
diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md
index 57c40ca..0a944d5 100644
--- a/.github/CONTRIBUTING.md
+++ b/.github/CONTRIBUTING.md
@@ -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?
@@ -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.
diff --git a/.github/workflows/npm.yml b/.github/workflows/npm.yml
index 2e8abe5..19a7dcc 100644
--- a/.github/workflows/npm.yml
+++ b/.github/workflows/npm.yml
@@ -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
@@ -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 }}
@@ -59,7 +60,7 @@ 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:
@@ -67,4 +68,4 @@ jobs:
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+
diff --git a/.github/workflows/uptime.yml b/.github/workflows/uptime.yml
index d7e3054..c394826 100644
--- a/.github/workflows/uptime.yml
+++ b/.github/workflows/uptime.yml
@@ -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
diff --git a/README.md b/README.md
index e518b3c..d4ddf9d 100644
--- a/README.md
+++ b/README.md
@@ -3,24 +3,24 @@
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
diff --git a/package-lock.json b/package-lock.json
index 5a62519..18bed56 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,5 +1,5 @@
{
- "name": "hi.im.borja.and.im.a.full.stack.dev",
+ "name": "borja.io",
"requires": true,
"lockfileVersion": 1,
"dependencies": {
diff --git a/package.json b/package.json
index 60877b4..a1f41e8 100644
--- a/package.json
+++ b/package.json
@@ -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",
diff --git a/src/index.jsx b/src/index.jsx
index a76c873..3771807 100644
--- a/src/index.jsx
+++ b/src/index.jsx
@@ -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',
);