-
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
Showing
29 changed files
with
4,009 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,10 @@ | ||
/** @type {import('typedoc').TypeDocOptions} */ | ||
module.exports = { | ||
entryPoints: ['../src'], | ||
excludeExternals: true, | ||
excludePrivate: true, | ||
excludeProtected: true, | ||
excludeInternal: true, | ||
out: '../build/typedocs', | ||
entryPointStrategy: 'expand', | ||
} |
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,3 @@ | ||
{ | ||
"extends": "next/core-web-vitals" | ||
} |
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 @@ | ||
{ | ||
$schema: 'https://docs.renovatebot.com/renovate-schema.json', | ||
extends: ['github>kitsuyui/renovate-config'], | ||
// https://github.com/renovatebot/renovate/issues/19038 | ||
// https://github.com/renovatebot/renovate/issues/21438 | ||
// TODO: remove this when renovatebot/renovate#21438 is fixed | ||
rangeStrategy: 'bump', | ||
} |
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 @@ | ||
name: Update gitignore file | ||
|
||
on: | ||
schedule: | ||
# daily at 00:00 | ||
- cron: '0 0 * * *' | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
jobs: | ||
update-gitignore: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: gitignore-in/[email protected] |
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,18 @@ | ||
name: happy-commit | ||
on: | ||
- pull_request | ||
|
||
permissions: | ||
contents: read | ||
pull-requests: write | ||
issues: write | ||
|
||
jobs: | ||
happy: | ||
runs-on: ubuntu-latest | ||
name: happy | ||
continue-on-error: true | ||
steps: | ||
- uses: kitsuyui/[email protected] | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_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,34 @@ | ||
name: Publish Website | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- basis | ||
|
||
jobs: | ||
deploy: | ||
name: Publish | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: pnpm/[email protected] | ||
with: | ||
version: 8 | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20.x | ||
|
||
- run: pnpm install | ||
|
||
- run: pnpm build | ||
|
||
- uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./out | ||
cname: gitignore.in |
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 @@ | ||
name: Spellcheck | ||
on: | ||
- pull_request | ||
permissions: | ||
contents: read | ||
jobs: | ||
check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Check spelling | ||
uses: crate-ci/typos@master | ||
# typos is a Source code spell checker | ||
# https://github.com/crate-ci/typos |
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,61 @@ | ||
name: test | ||
on: | ||
- pull_request | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
continue-on-error: true | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
node-version: [18.x, 20.x, 21.x] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: pnpm/[email protected] | ||
with: | ||
version: 8 | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: pnpm | ||
cache-dependency-path: pnpm-lock.yaml | ||
|
||
- name: Cache Next.js build | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${{ github.workspace }}/.next/cache | ||
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }} | ||
restore-keys: | | ||
${{ runner.os }}-nextjs- | ||
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}- | ||
- name: Install dependencies | ||
run: pnpm install | ||
|
||
- name: Check all | ||
run: pnpm check-all | ||
|
||
- name: Build | ||
run: pnpm build | ||
|
||
- name: E2E Test | ||
uses: cypress-io/github-action@v5 | ||
with: | ||
build: pnpm build | ||
start: pnpm start | ||
|
||
- name: Upload coverage to Codecov | ||
if: matrix.node-version == '20.x' | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
files: coverage/cobertura-coverage.xml | ||
flags: unittests | ||
name: codecov-umbrella | ||
fail_ci_if_error: false | ||
verbose: true |
Oops, something went wrong.