Skip to content

Commit e79b910

Browse files
authored
Initial commit
0 parents  commit e79b910

21 files changed

Lines changed: 6918 additions & 0 deletions

.editorconfig

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# EditorConfig helps developers define and maintain consistent
2+
# coding styles between different editors and IDEs
3+
# editorconfig.org
4+
5+
root = true
6+
7+
8+
[*]
9+
10+
# Change these settings to your own preference
11+
indent_style = space
12+
indent_size = 2
13+
14+
# We recommend you to keep these unchanged
15+
end_of_line = lf
16+
charset = utf-8
17+
trim_trailing_whitespace = true
18+
insert_final_newline = true
19+
20+
[*.md]
21+
trim_trailing_whitespace = false
22+
23+
[*.json]
24+
indent_size = 2
25+
26+
[*.{html,js,md}]
27+
block_comment_start = /**
28+
block_comment = *
29+
block_comment_end = */

.github/workflows/ci.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: App CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: actions/setup-node@v4
16+
17+
- name: Install dependencies
18+
run: yarn install
19+
20+
- name: Run tests
21+
run: yarn run test
22+
23+
- name: Upload reports
24+
run: npx codecov
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# This workflow will generate the static page under `main` subdirectory inside the `gh-pages` branch
2+
3+
# This workflow will run every time new changes were pushed to the `main` branch
4+
5+
name: App build CI/CD to main branch
6+
7+
on:
8+
push:
9+
branches: [ main ]
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
with:
18+
persist-credentials: false
19+
- uses: actions/setup-node@v4
20+
21+
- name: Install dependencies
22+
run: yarn install
23+
24+
- name: Create build files for gh-pages deploy
25+
run: yarn ghpages:build
26+
27+
# Reference: https://github.com/JamesIves/github-pages-deploy-action
28+
- name: Deploy 🚀
29+
uses: JamesIves/github-pages-deploy-action@v4.5.0
30+
with:
31+
branch: gh-pages
32+
folder: ghpages
33+
clean-exclude: pr/
34+
force: false
35+
target-folder: main
36+
token: ${{ secrets.GH_TOKEN }}

.github/workflows/pr-preview.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# This workflow will generate the static page under `pr` subdirectory inside the `gh-pages` branch
2+
3+
# This workflow will run every time there's a PR opened, reopened, synchronize, or closed
4+
5+
name: Deploy PR previews
6+
7+
on:
8+
pull_request:
9+
types:
10+
- opened
11+
- reopened
12+
- synchronize
13+
- closed
14+
15+
concurrency: preview-${{ github.ref }}
16+
17+
jobs:
18+
deploy-preview:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v4
23+
- uses: actions/setup-node@v4
24+
25+
- name: Install and Build
26+
run: |
27+
yarn install
28+
yarn ghpages:build
29+
30+
# Reference: https://github.com/rossjrw/pr-preview-action
31+
- name: Deploy preview
32+
uses: rossjrw/pr-preview-action@v1
33+
with:
34+
source-dir: ./ghpages/
35+
umbrella-dir: pr

.gitignore

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Editor directories and files
2+
.vscode/*
3+
!.vscode/extensions.json
4+
.idea
5+
.DS_Store
6+
*.suo
7+
*.ntvs*
8+
*.njsproj
9+
*.sln
10+
*.sw?
11+
12+
## npm
13+
/node_modules/
14+
/npm-debug.log
15+
16+
## testing
17+
/coverage/
18+
19+
## temp folders
20+
/.tmp/
21+
22+
# build
23+
/_site/
24+
/dist/
25+
/out-tsc/
26+
/build/
27+
ghpages
28+
dist
29+
dist-ssr
30+
*.local
31+
32+
storybook-static
33+
34+
# Logs
35+
logs
36+
*.log
37+
npm-debug.log*
38+
yarn-debug.log*
39+
yarn-error.log*

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx lint-staged

0 commit comments

Comments
 (0)