From ac5cf193511aee85a38d3ef5f2efe1bc7439740b Mon Sep 17 00:00:00 2001 From: Ayo Ayco Date: Thu, 13 Mar 2025 22:04:03 +0100 Subject: [PATCH] feat: update now page --- src/constants/bkup/2025-02-15.json | 7 ++ src/constants/bkup/2025-02-15.md | 6 ++ src/constants/now.json | 8 +- src/constants/now.md | 9 +-- src/pages/now/and-then/posts/2025-02-15.astro | 73 +++++++++++++++++++ 5 files changed, 94 insertions(+), 9 deletions(-) create mode 100644 src/constants/bkup/2025-02-15.json create mode 100644 src/constants/bkup/2025-02-15.md create mode 100644 src/pages/now/and-then/posts/2025-02-15.astro diff --git a/src/constants/bkup/2025-02-15.json b/src/constants/bkup/2025-02-15.json new file mode 100644 index 0000000..ead9893 --- /dev/null +++ b/src/constants/bkup/2025-02-15.json @@ -0,0 +1,7 @@ +{ + "title": "Moved projects to SourceHut", + "description": "Learning other ways of software collaboration", + "publishDate": "2025-02-15", + "publishedOn": "the 15th of February, 2025", + "publishState": "" +} diff --git a/src/constants/bkup/2025-02-15.md b/src/constants/bkup/2025-02-15.md new file mode 100644 index 0000000..ea1fb59 --- /dev/null +++ b/src/constants/bkup/2025-02-15.md @@ -0,0 +1,6 @@ +I have moved main activities (e.g, repository, planned work, announcements/discussions) on my projects to [SourceHut](https://sourcehut.org) — a *code forge* much like GitHub, GitLab or Codeberg, but with significant differences. + +The projects are still automatically mirrored to GitHub using automatic `git push --mirror` via [SourceHut Builds](https://builds.sr.ht). + +👉 [My projects on SourceHut](https://sr.ht/~ayoayco/) + diff --git a/src/constants/now.json b/src/constants/now.json index ead9893..8455be1 100644 --- a/src/constants/now.json +++ b/src/constants/now.json @@ -1,7 +1,7 @@ { - "title": "Moved projects to SourceHut", - "description": "Learning other ways of software collaboration", - "publishDate": "2025-02-15", - "publishedOn": "the 15th of February, 2025", + "title": "Migrated some JS projects to TS", + "description": "TypeScript is making some good moves recently", + "publishDate": "2025-03-13", + "publishedOn": "", "publishState": "" } diff --git a/src/constants/now.md b/src/constants/now.md index ea1fb59..a44d577 100644 --- a/src/constants/now.md +++ b/src/constants/now.md @@ -1,6 +1,5 @@ -I have moved main activities (e.g, repository, planned work, announcements/discussions) on my projects to [SourceHut](https://sourcehut.org) — a *code forge* much like GitHub, GitLab or Codeberg, but with significant differences. - -The projects are still automatically mirrored to GitHub using automatic `git push --mirror` via [SourceHut Builds](https://builds.sr.ht). - -👉 [My projects on SourceHut](https://sr.ht/~ayoayco/) +Started some migrations of JS projects to TypeScript. There are a few moves from TypeScript & node that influenced me to do this: +1. [Node's type stripping](https://nodejs.org/api/typescript.html#type-stripping) - allows execution of TypeScript files that only contains erasable TypeScript syntax. +2. [TypeScript's erasable syntax only](https://www.totaltypescript.com/erasable-syntax-only) - a flag to tell `tsc` to throw error on syntax that are not erasable (e.g., enums, namespaces, and class parameter properties) +3. [TypeScript native compiler](https://devblogs.microsoft.com/typescript/typescript-native-port/) - promises 10x faster typescript compilation diff --git a/src/pages/now/and-then/posts/2025-02-15.astro b/src/pages/now/and-then/posts/2025-02-15.astro new file mode 100644 index 0000000..ba9ac14 --- /dev/null +++ b/src/pages/now/and-then/posts/2025-02-15.astro @@ -0,0 +1,73 @@ +--- +import Layout from '../../../../layouts/Layout.astro' +import Footer from '../../../../components/Footer.astro' + +const title = `Moved projects to SourceHut` +const description = `Learning other ways of software collaboration` +let publishedOn = `the 15th of February, 2025` +const publishDate = `2025-02-15` +const publishState = `` +const content = `

I have moved main activities (e.g, repository, planned work, announcements/discussions) on my projects to SourceHut — a code forge much like GitHub, GitLab or Codeberg, but with significant differences.

+

The projects are still automatically mirrored to GitHub using automatic git push --mirror via SourceHut Builds.

+

👉 My projects on SourceHut

` + +publishedOn = publishedOn === '' ? publishDate : publishedOn +--- + + +
+

{title}

+

+ + Published on + + {publishState} + +

+ + + +
+
+
+ +