-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit b028dce
Showing
34 changed files
with
9,951 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"$schema": "https://unpkg.com/@changesets/config@3.0.0/schema.json", | ||
"changelog": [ | ||
"@changesets/changelog-github", | ||
{ | ||
"repo": "alanlu-dev/monorepo" | ||
} | ||
], | ||
"commit": false, | ||
"fixed": [], | ||
"linked": [], | ||
"access": "public", | ||
"baseBranch": "main", | ||
"updateInternalDependencies": "patch", | ||
"ignore": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = require('@alanlu-dev/commitlint-config') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# EditorConfig is awesome: https://EditorConfig.org | ||
|
||
# top-most EditorConfig file | ||
root = true | ||
|
||
# Matches all files | ||
[*] | ||
# Non-configurable Prettier behaviors | ||
charset = utf-8 | ||
insert_final_newline = true | ||
# Caveat: Prettier won’t trim trailing whitespace inside template strings, but your editor might. | ||
trim_trailing_whitespace = true | ||
|
||
# Configurable Prettier behaviors | ||
# (change these if your Prettier config differs) | ||
end_of_line = lf | ||
indent_style = space | ||
indent_size = 2 | ||
max_line_length = 200 | ||
|
||
[*.{md,mdx}] | ||
indent_style = tab | ||
max_line_length = off | ||
|
||
[*.{yaml,yml,conf}] | ||
indent_size = 2 | ||
|
||
# Shell scripts | ||
[*.sh] | ||
end_of_line = lf | ||
[*.{cmd,bat}] | ||
end_of_line = crlf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
module.exports = { | ||
root: true, | ||
extends: ['@alanlu-dev/base'], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* text=auto eol=lf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,119 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
paths-ignore: | ||
- 'docs/**' | ||
- '*.md' | ||
branches: | ||
- main | ||
- release/* | ||
- feat/* | ||
- fix/* | ||
- perf/* | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
env: | ||
# 7 GiB by default on GitHub, setting to 6 GiB | ||
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources | ||
NODE_OPTIONS: --max-old-space-size=6144 | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.number || github.sha }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
lint: | ||
timeout-minutes: 10 | ||
name: 'Lint' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install pnpm | ||
uses: pnpm/action-setup@v3 | ||
|
||
- name: Use Node.js 20 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: 'pnpm' | ||
|
||
- name: Install deps | ||
run: pnpm install | ||
|
||
- name: Build | ||
run: pnpm run build | ||
|
||
- name: Lint | ||
run: pnpm run lint | ||
|
||
- name: TypeCheck | ||
run: pnpm run typecheck | ||
|
||
- name: CSpell | ||
uses: streetsidesoftware/cspell-action@v6 | ||
|
||
# From https://github.com/rhysd/actionlint/blob/main/docs/usage.md#use-actionlint-on-github-actions | ||
- name: Check workflow files | ||
run: | | ||
bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash) | ||
./actionlint -color -shellcheck="" | ||
test: | ||
timeout-minutes: 20 | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
node_version: [18, 20] | ||
include: | ||
# Active LTS + other OS | ||
- os: macos-latest | ||
node_version: 20 | ||
- os: windows-latest | ||
node_version: 20 | ||
fail-fast: false | ||
|
||
name: "Build & Test: node-${{ matrix.node_version }}, ${{ matrix.os }}" | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
# Assume PRs are less than 50 commits | ||
fetch-depth: 50 | ||
|
||
- name: Get changed files | ||
id: changed-files | ||
uses: tj-actions/changed-files@20576b4b9ed46d41e2d45a2256e5e2316dde6834 # v43.0.1 | ||
with: | ||
files: | | ||
docs/** | ||
.github/** | ||
!.github/workflows/ci.yml | ||
**.md | ||
- name: Install pnpm | ||
if: steps.changed-files.outputs.only_changed != 'true' | ||
uses: pnpm/action-setup@v3 | ||
|
||
- name: Set node version to ${{ matrix.node_version }} | ||
if: steps.changed-files.outputs.only_changed != 'true' | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node_version }} | ||
cache: "pnpm" | ||
|
||
- name: Install deps | ||
if: steps.changed-files.outputs.only_changed != 'true' | ||
run: pnpm install | ||
|
||
- name: Build | ||
if: steps.changed-files.outputs.only_changed != 'true' | ||
run: pnpm run build | ||
|
||
- name: Test unit | ||
if: steps.changed-files.outputs.only_changed != 'true' | ||
run: pnpm run test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
concurrency: ${{ github.workflow }}-${{ github.ref }} | ||
|
||
permissions: {} | ||
jobs: | ||
release: | ||
name: Release | ||
permissions: | ||
contents: write # to create release (changesets/action) | ||
issues: write # to post issue comments (changesets/action) | ||
pull-requests: write # to create pull request (changesets/action) | ||
timeout-minutes: 20 | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install pnpm | ||
uses: pnpm/action-setup@v3 | ||
|
||
- name: Use Node.js 20 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: 'pnpm' | ||
|
||
- name: Install deps | ||
run: pnpm install | ||
|
||
- name: Build | ||
run: pnpm run build | ||
|
||
- name: Create Release Pull Request or Publish to npm | ||
uses: changesets/action@v1 | ||
with: | ||
version: pnpm run update:version | ||
publish: pnpm run publish | ||
commit: "chore(release): version update" | ||
title: "chore(release): version update" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Dependencies | ||
node_modules | ||
|
||
# Build files | ||
.output | ||
.nuxt | ||
.nitro | ||
.cache | ||
.virtual | ||
.turbo | ||
dist | ||
build | ||
tsx-0 | ||
node-jiti | ||
|
||
# Logs | ||
logs | ||
*.log | ||
|
||
# Miscellaneous | ||
.DS_Store | ||
.fleet | ||
.idea | ||
|
||
# Local environment files | ||
.env | ||
.env.* | ||
!.env.example |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pnpm commitlint --edit $1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pnpm lint-staged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = require('@alanlu-dev/lint-staged-config') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = require('@alanlu-dev/markdownlint-config') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
auto-install-peers=true | ||
public-hoist-pattern[]=*types* | ||
public-hoist-pattern[]=*eslint* | ||
public-hoist-pattern[]=*prettier* | ||
public-hoist-pattern[]=*stylelint* | ||
public-hoist-pattern[]=*markdownlint* | ||
public-hoist-pattern[]=*commitlint* | ||
public-hoist-pattern[]=czg | ||
public-hoist-pattern[]=lint-staged | ||
public-hoist-pattern[]=sass | ||
public-hoist-pattern[]=postcss* | ||
public-hoist-pattern[]=@alanlu-dev/* | ||
public-hoist-pattern[]=@master/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
v20.11.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Dependencies | ||
**/node_modules | ||
|
||
# Build files | ||
**/.output | ||
**/.nuxt | ||
**/.nitro | ||
**/.cache | ||
**/.virtual | ||
**/.turbo | ||
**/dist | ||
**/build | ||
**/tsx-0 | ||
**/node-jiti | ||
**/coverage | ||
|
||
# Logs | ||
**/logs | ||
**/*.log | ||
|
||
# Miscellaneous | ||
**/.DS_Store | ||
**/.fleet | ||
**/.idea | ||
pnpm-lock.yaml | ||
|
||
# Local environment files | ||
**/.env | ||
**/.env.* | ||
**/!.env.example | ||
|
||
# Markdown files | ||
**/*.md | ||
**/*.mdx | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = require('@alanlu-dev/prettier-config') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Dependencies | ||
node_modules | ||
|
||
# Build files | ||
.output | ||
.nuxt | ||
.nitro | ||
.cache | ||
.virtual | ||
.turbo | ||
dist | ||
build | ||
tsx-0 | ||
node-jiti | ||
coverage | ||
|
||
# Logs | ||
logs | ||
*.log | ||
|
||
# Miscellaneous | ||
.DS_Store | ||
.fleet | ||
.idea | ||
pnpm-lock.yaml | ||
|
||
# Local environment files | ||
.env | ||
.env.* | ||
!.env.example |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = require('@alanlu-dev/stylelint-config') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Custom Dictionary Words | ||
alanlu | ||
Anson | ||
antfu | ||
dbaeumer | ||
esbenp | ||
Giraudel | ||
Indrek | ||
indrekpaas | ||
Paas | ||
Riethmuller's |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Custom Dictionary Words | ||
abjad | ||
akar | ||
autorestart | ||
bluewood | ||
breakline | ||
datetime | ||
evenodd | ||
Fira | ||
fullname | ||
jiti | ||
multistep | ||
noborder | ||
Noto | ||
Overriden | ||
preinstall | ||
stroustrup | ||
typecheck | ||
unref | ||
wght | ||
zod's |
Oops, something went wrong.