Skip to content

Commit

Permalink
change all
Browse files Browse the repository at this point in the history
  • Loading branch information
fiqgant committed Jul 6, 2024
1 parent fbdbe34 commit 351ec1c
Show file tree
Hide file tree
Showing 830 changed files with 41,170 additions and 44,639 deletions.
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
24 changes: 24 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"access": "public",
"baseBranch": "main",
"changelog": [
"@changesets/changelog-github",
{
"repo": "tszhong0411/honghong.me"
}
],
"commit": false,
"fixed": [],
"ignore": [
"@tszhong0411/db",
"@tszhong0411/docs",
"@tszhong0411/emails",
"@tszhong0411/env",
"@tszhong0411/mdx",
"@tszhong0411/shared",
"@tszhong0411/web"
],
"linked": [],
"updateInternalDependencies": "patch"
}
20 changes: 20 additions & 0 deletions .commitlintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import fs from 'node:fs/promises'

const getDirectories = async (source) => {
const directories = await fs.readdir(source, { withFileTypes: true })

return directories.filter((dirent) => dirent.isDirectory()).map((dirent) => dirent.name)
}

const apps = await getDirectories(`${import.meta.dirname}/apps`)
const packages = await getDirectories(`${import.meta.dirname}/packages`)

const scopes = [...apps, ...packages]

/** @type {import('cz-git').UserConfig} */
export default {
extends: ['@commitlint/config-conventional'],
rules: {
'scope-enum': [2, 'always', ['root', 'release', ...scopes]]
}
}
31 changes: 31 additions & 0 deletions .cspell.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json",
"dictionaries": ["libraries", "project-words", "names"],
"dictionaryDefinitions": [
{
"description": "A list of libraries",
"name": "libraries",
"path": "./.cspell/libraries.txt"
},
{
"description": "A list of project specific words",
"name": "project-words",
"path": "./.cspell/project-words.txt"
},
{
"description": "A list of names (e.g. people, services, etc.)",
"name": "names",
"path": "./.cspell/names.txt"
}
],
"enableFiletypes": ["github-actions-workflow", "shellscript", "tailwindcss"],
"files": [
"**/*.{js,cjs,mjs,jsx,ts,cts,mts,tsx,md,mdx,json,yml,yaml,svg,webmanifest}",
"**/.*.{js,cjs,mjs,jsx,ts,cts,mts,tsx,md,mdx,json,yml,yaml,svg,webmanifest}",
".*/**/*.{js,cjs,mjs,jsx,ts,cts,mts,tsx,md,mdx,json,yml,yaml,svg,webmanifest}"
],
"ignorePaths": ["pnpm-lock.yaml", "CHANGELOG.md"],
"import": ["@cspell/dict-software-terms", "@cspell/dict-npm", "@cspell/dict-fullstack"],
"useGitignore": true,
"version": "0.2"
}
35 changes: 35 additions & 0 deletions .cspell/libraries.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
astro
autosize
bradlc
cmdk
cobe
commitlintrc
contentlayer
corepack
dbaeumer
esbenp
fuma
fumadocs
jiti
knip
libsql
lightningcss
mdast
nextra
normy
nuxt
paralleldrive
rehype
rmiz
shadcn
shiki
shikijs
sonarjs
sonner
tinycolor2
tiptap
tsup
turso
unifiedjs
vfile
zustand
40 changes: 40 additions & 0 deletions .cspell/names.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
aceternity
airpods
anishde
antfu
bentogrids
calcom
cleanmymac
cleanshot
delba
duarte
goodnotes
googleusercontent
gstatic
jahir
joshwcomeau
karabiner
keka
keychron
leerob
lightroom
linktree
macbook
maximeheckel
motrix
mounty
nikolovlazar
orbstack
peduarte
photoshop
pixelsnap
planetscale
raycast
samuelkraft
tableplus
theodorusclarence
umami
visualstudiocode
vocs
wakatime
zenorocha
18 changes: 18 additions & 0 deletions .cspell/project-words.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
autoincrement
callees
customizer
ependencies
honghong
innerhtml
lcov
lockb
nextdotjs
nocheck
nodedotjs
nosniff
postpublish
sameorigin
simulately
techstack
tszhong
unzoom
15 changes: 15 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.json]
insert_final_newline = false

[*.md]
trim_trailing_whitespace = false
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

17 changes: 0 additions & 17 deletions .eslintrc.js

This file was deleted.

3 changes: 3 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
github: fiqgant
ko_fi: fiqgant
custom: ['https://paypal.me/fiqgant', 'https://www.buymeacoffee.com/fiqgant']
36 changes: 36 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
name: 🐛 Bug report
about: Report a bug or issue with the application
labels: bug
---

### Description:

<!-- Detailed explanation of the problem -->

### Steps to Reproduce:

1.
2.
3.

### Expected Behavior:

<!-- What you expected to happen -->

### Actual Behavior:

<!-- What actually happened -->

### Screenshots/Logs:

<!-- If applicable, attach screenshots or logs to help explain the issue -->

### Environment:

- **Operating System:** <!-- e.g., Windows 10, macOS Catalina, Linux Ubuntu 20.04 -->
- **Browser (if applicable):** <!-- e.g., Chrome, Firefox, Safari -->

### Additional Information:

<!-- Any additional context or information about the issue -->
38 changes: 38 additions & 0 deletions .github/actions/check-setup/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Check setup

runs:
using: 'composite'
steps:
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
run_install: false

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- name: Setup pnpm cache
uses: actions/cache@v4
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
shell: bash
run: pnpm install

- name: Create .env.local file
shell: bash
run: |
echo "DATABASE_URL=http://127.0.0.1:8080" >> .env.local
echo "DATABASE_AUTH_TOKEN=no-need-for-local-development" >> .env.local
echo "RESEND_API_KEY=re_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" >> .env.local
72 changes: 0 additions & 72 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

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

on:
pull_request:

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Check setup
uses: ./.github/actions/check-setup

- name: Build the app
run: pnpm build:apps

- name: Check
run: pnpm check
Loading

0 comments on commit 351ec1c

Please sign in to comment.