-
Notifications
You must be signed in to change notification settings - Fork 10
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 15815bc
Showing
44 changed files
with
7,181 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,5 @@ | ||
.git | ||
.github | ||
.vscode | ||
dist | ||
node_modules |
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,29 @@ | ||
module.exports = { | ||
root: true, | ||
env: { browser: true, es2020: true }, | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:@typescript-eslint/recommended', | ||
'plugin:react-hooks/recommended', | ||
'plugin:react/recommended', | ||
'plugin:react/jsx-runtime', | ||
], | ||
ignorePatterns: ['dist', '.eslintrc.cjs'], | ||
parser: '@typescript-eslint/parser', | ||
plugins: ['react-refresh'], | ||
rules: { | ||
'react-refresh/only-export-components': ['off', { allowConstantExport: true }], | ||
'react/prop-types': 'off', | ||
}, | ||
parserOptions: { | ||
ecmaVersion: 'latest', | ||
sourceType: 'module', | ||
project: ['../tsconfig.json', '../tsconfig.node.json'], | ||
tsconfigRootDir: './src', | ||
}, | ||
settings: { | ||
react: { | ||
version: 'detect', | ||
}, | ||
}, | ||
}; |
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,62 @@ | ||
name: Build Check | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
fail-on-error: | ||
description: 'Fail on error' | ||
required: false | ||
default: false | ||
type: boolean | ||
|
||
workflow_dispatch: | ||
inputs: | ||
fail-on-error: | ||
description: 'Fail on error' | ||
required: false | ||
default: false | ||
type: boolean | ||
|
||
jobs: | ||
build: | ||
name: Build Check | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [18] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8 | ||
|
||
- name: Setup Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'pnpm' | ||
|
||
- name: Use Dev Cache | ||
id: dev-cache | ||
uses: actions/cache@v3 | ||
env: | ||
cache-name: cache-dev | ||
with: | ||
# Path for node_modules | ||
path: "**/node_modules" | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-build-${{ env.cache-name }}- | ||
${{ runner.os }}-build- | ||
${{ runner.os }}- | ||
- if: ${{steps.dev-cache.outputs.cache-hit != 'true'}} | ||
name: Install Dependencies | ||
run: pnpm install | ||
|
||
- name: Build Check | ||
run: pnpm run build | ||
continue-on-error: ${{ !inputs.fail-on-error }} | ||
|
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,27 @@ | ||
name: Development CI/CD | ||
|
||
on: | ||
pull_request: | ||
branches: [main] | ||
types: [opened, synchronize, reopened, edited, ready_for_review] | ||
|
||
push: | ||
branches: [main] | ||
|
||
jobs: | ||
build: | ||
uses: ./.github/workflows/build.yml | ||
with: | ||
fail-on-error: true | ||
|
||
prettier: | ||
needs: build | ||
uses: ./.github/workflows/prettier.yml | ||
with: | ||
fail-on-error: true | ||
|
||
eslint: | ||
needs: build | ||
uses: ./.github/workflows/eslint.yml | ||
with: | ||
fail-on-error: true |
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,53 @@ | ||
name: Eslint Check | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
fail-on-error: | ||
description: 'Fail on error' | ||
required: false | ||
default: false | ||
type: boolean | ||
|
||
jobs: | ||
eslint: | ||
name: Eslint Check | ||
strategy: | ||
matrix: | ||
node-version: [18] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8 | ||
|
||
- name: Setup Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'pnpm' | ||
|
||
- name: Use Dev Cache | ||
id: dev-cache | ||
uses: actions/cache@v3 | ||
env: | ||
cache-name: cache-dev | ||
with: | ||
# Path for node_modules | ||
path: "**/node_modules" | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-build-${{ env.cache-name }}- | ||
${{ runner.os }}-build- | ||
${{ runner.os }}- | ||
- if: ${{steps.dev-cache.outputs.cache-hit != 'true'}} | ||
name: Install Dependencies | ||
run: pnpm install | ||
|
||
- name: Eslint Check | ||
run: pnpm lint | ||
continue-on-error: ${{ github.event.inputs.fail-on-error != 'true'}} |
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,53 @@ | ||
name: Prettier Check | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
fail-on-error: | ||
description: 'Fail on error' | ||
required: false | ||
default: false | ||
type: boolean | ||
|
||
jobs: | ||
prettier: | ||
name: Prettier Check | ||
strategy: | ||
matrix: | ||
node-version: [18] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8 | ||
|
||
- name: Setup Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'pnpm' | ||
|
||
- name: Use Dev Cache | ||
id: dev-cache | ||
uses: actions/cache@v3 | ||
env: | ||
cache-name: cache-dev | ||
with: | ||
# Path for node_modules | ||
path: "**/node_modules" | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-build-${{ env.cache-name }}- | ||
${{ runner.os }}-build- | ||
${{ runner.os }}- | ||
- if: ${{steps.dev-cache.outputs.cache-hit != 'true'}} | ||
name: Install Dependencies | ||
run: pnpm install | ||
|
||
- name: Prettier Check | ||
run: pnpm format | ||
continue-on-error: ${{ !inputs.fail-on-error }} |
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,24 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
pnpm-debug.log* | ||
lerna-debug.log* | ||
|
||
node_modules | ||
dist | ||
dist-ssr | ||
*.local | ||
|
||
# Editor directories and files | ||
.vscode/* | ||
!.vscode/extensions.json | ||
.idea | ||
.DS_Store | ||
*.suo | ||
*.ntvs* | ||
*.njsproj | ||
*.sln | ||
*.sw? |
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 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
npx 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,5 @@ | ||
.git | ||
.github | ||
.vscode | ||
dist | ||
node_modules |
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,15 @@ | ||
{ | ||
"arrowParens": "avoid", | ||
"bracketSameLine": true, | ||
"bracketSpacing": true, | ||
"endOfLine": "auto", | ||
"jsxSingleQuote": true, | ||
"printWidth": 130, | ||
"semi": true, | ||
"singleAttributePerLine": false, | ||
"singleQuote": true, | ||
"tabWidth": 3, | ||
"trailingComma": "es5", | ||
"useTabs": true, | ||
"vueIndentScriptAndStyle": true | ||
} |
Oops, something went wrong.