Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: update #758

Merged
merged 9 commits into from
Feb 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
],
"commit": false,
"fixed": [],
"ignore": ["blog", "@tszhong0411/emails"],
"ignore": ["blog", "@tszhong0411/emails", "@tszhong0411/mdx"],
"linked": [],
"updateInternalDependencies": "patch"
}
5 changes: 5 additions & 0 deletions .changeset/many-turtles-work.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@tszhong0411/eslint-config": patch
---

update deps and readme
5 changes: 5 additions & 0 deletions .changeset/metal-buckets-divide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@tszhong0411/eslint-config": patch
---

update ignorePatterns
6 changes: 6 additions & 0 deletions .changeset/poor-beans-end.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@tszhong0411/tailwind-config": patch
"@tszhong0411/ui": patch
---

update ui
5 changes: 5 additions & 0 deletions .changeset/smart-dots-develop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@tszhong0411/utils": patch
---

refactor
5 changes: 5 additions & 0 deletions .changeset/tough-buttons-turn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@tszhong0411/eslint-config": patch
---

turn off a react rule
File renamed without changes.
22 changes: 0 additions & 22 deletions .github/lighthouse.yml

This file was deleted.

128 changes: 0 additions & 128 deletions .github/workflows/ci.yml

This file was deleted.

35 changes: 35 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Lint

on:
pull_request:
types: [opened, synchronize]

jobs:
lint:
name: Lint
timeout-minutes: 60
runs-on: ubuntu-latest
permissions: write-all

steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8

- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 18

- name: Install dependencies
run: pnpm install

- name: Build packages
run: pnpm build --filter=./packages/*

- name: Check
run: pnpm check
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,8 @@ yarn-error.log*
.DS_Store
*.pem

# Dist
# Build outputs
.next/
out/
build
dist
3 changes: 2 additions & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
pnpm lint-staged
pnpm check
pnpm --filter=blog generate-posts
4 changes: 4 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Misc
.changeset/*.md
pnpm-lock.yaml
pnpm-workspace.yaml
1 change: 0 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"editorconfig.editorconfig",
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"prisma.prisma",
"bradlc.vscode-tailwindcss",
"unifiedjs.vscode-mdx"
]
Expand Down
9 changes: 7 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,17 @@
],

"files.associations": {
".env*": "properties"
".env*": "properties",
"*.css": "tailwindcss"
},

"tailwindCSS.experimental.classRegex": [
["cva\\(([^)]*)\\)", "[\"'`]([^\"'`]*).*?[\"'`]"],
["cn\\(([^)]*)\\)", "[\"'`]([^\"'`]*).*?[\"'`]"],
"className\\: '([^']*)'"
]
],

"typescript.enablePromptUseWorkspaceTsdk": true,
"typescript.preferences.preferTypeOnlyAutoImports": true,
"typescript.tsdk": "node_modules/typescript/lib"
}
40 changes: 26 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
<p align="center">
<img src="https://honghong.me/images/projects/blog/cover.png">
<img alt="" src="https://honghong.me/images/projects/blog/cover.png">
</p>

[![GitHub](https://img.shields.io/github/license/tszhong0411/honghong.me)](https://github.com/tszhong0411/honghong.me/blob/main/LICENSE)
[![codecov](https://codecov.io/gh/tszhong0411/honghong.me/branch/main/graph/badge.svg)](https://codecov.io/gh/tszhong0411/honghong.me)
[![CodeFactor](https://www.codefactor.io/repository/github/tszhong0411/honghong.me/badge)](https://www.codefactor.io/repository/github/tszhong0411/honghong.me)
[![CI](https://github.com/tszhong0411/honghong.me/actions/workflows/ci.yml/badge.svg)](https://github.com/tszhong0411/honghong.me/actions/workflows/ci.yml)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/tszhong0411/honghong.me/blob/main/CONTRIBUTING.md)
![GitHub top language](https://img.shields.io/github/languages/top/tszhong0411/honghong.me)
![GitHub repo size](https://img.shields.io/github/repo-size/tszhong0411/honghong.me)
<h1 align="center">
honghong.me
</h1>

<p align="center">
<a aria-label="Framework" href="https://nextjs.org">
<img alt="" src="https://img.shields.io/badge/Next.js-000000.svg?style=for-the-badge&logo=Next.js&labelColor=000">
</a>
<img alt="" src="https://img.shields.io/github/languages/top/tszhong0411/honghong.me?style=for-the-badge&labelColor=000
">
<a aria-label="License" href="https://github.com/tszhong0411/honghong.me/blob/main/LICENSE">
<img alt="" src="https://img.shields.io/github/license/tszhong0411/honghong.me?style=for-the-badge&labelColor=000">
</a>
</p>

Welcome to the monorepo of my personal blog! This repository houses the code for my blog, where I share my thoughts, projects, and insights. Feel free to explore and get inspired.

Expand All @@ -20,7 +27,7 @@ Welcome to the monorepo of my personal blog! This repository houses the code for
- 🌈 Radix UI - accessible UI components
- 🛡 Strict TypeScript and ESLint configuration
- 📱 Responsive design
- 🌗 Dark mode
- 🌗 Light / Dark mode
- 📈 SEO optimized with meta tags and JSON-LD
- 📰 RSS feed
- 🗺 Sitemap
Expand All @@ -29,18 +36,15 @@ Welcome to the monorepo of my personal blog! This repository houses the code for
- 🔎 Blog post search
- 📖 Table of contents for blog posts
- 📷 Image zoom - zoom in on images in blog posts
- 📝 Code syntax highlighting - for code blocks in blog posts
- 📝 Code syntax highlighting - using Shiki
- 🎨 Animation - using Framer Motion
- 🤖 GitHub Actions for CI/CD
- 🏠 LightHouse score of nearly 100
- 🧪 Vitest - unit and integration tests
- 🎭 Playwright - end-to-end tests
- ☂️ Codecov - code coverage
- 🔨 Husky & Lint Staged - lint and format code before committing
- ✅ Conventional commit lint - make sure commit messages follow the conventional commit format
- 🔒 NextAuth.js - authentication
- 💄 Prettier - code formatting
- ◮ Prisma - ORM
- 〰️ Drizzle - ORM
- 👷🏻‍♂️ t3-env - validate environment variables before building

## 🔨 Requirements
Expand Down Expand Up @@ -80,6 +84,10 @@ The app will become available at `http://localhost:3000`.

This project has been possible thanks to the wonderful open-source community. Special thanks to [Timothy](https://www.timlrx.com/) for the [Tailwind nextjs starter blog template](https://github.com/timlrx/tailwind-nextjs-starter-blog).

## ✍🏻 Author

- [@tszhong0411](https://github.com/tszhong0411)

## ✨ Contributors

Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
Expand All @@ -102,6 +110,10 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d

This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!

## 🪪 License

This project is open source and available under the [MIT License](LICENSE).

<hr>
<p align="center">
Made with ❤️ in Hong Kong
Expand Down
2 changes: 0 additions & 2 deletions apps/web/.eslintignore

This file was deleted.

11 changes: 0 additions & 11 deletions apps/web/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,5 @@
"@tszhong0411/eslint-config",
"plugin:turbo/recommended"
],
"overrides": [
{
"files": ["./src/tests/!(e2e)/**/*.test.{ts,tsx}"],
"extends": ["plugin:testing-library/react"],
"plugins": ["testing-library"]
},
{
"files": ["./src/tests/e2e/**/*.test.{ts,tsx}"],
"extends": ["plugin:playwright/recommended"]
}
],
"root": true
}
16 changes: 0 additions & 16 deletions apps/web/.gitignore

This file was deleted.

2 changes: 0 additions & 2 deletions apps/web/.prettierignore

This file was deleted.

Loading
Loading