Skip to content

Commit 686f810

Browse files
committed
feat: initial commit
1 parent a2a9320 commit 686f810

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+59751
-0
lines changed

.czrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"path": "cz-conventional-changelog"
3+
}

.editorconfig

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
root = true
2+
3+
[*]
4+
# !Non-configurable Prettier behaviors
5+
charset = utf-8
6+
insert_final_newline = true
7+
# Caveat: Prettier won’t trim trailing whitespace inside template strings, but your editor might.
8+
trim_trailing_whitespace = true
9+
# Configurable Prettier behaviors
10+
indent_style = tab
11+
indent_size = 4
12+
# Unix-style newlines with a newline ending every file
13+
end_of_line = lf
14+
max_line_length = 120
15+
16+
[pnpm-lock.yaml]
17+
max_line_length = unset
18+
19+
[*.py]
20+
indent_style = space
21+
indent_size = 4
22+
23+
[*.{json,yml,yaml,md,markdown}]
24+
indent_style = space
25+
indent_size = 2
26+
27+
[*.{md,markdown}]
28+
trim_trailing_whitespace = false

.gitattributes

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
* text=auto eol=lf
2+
*.html diff=html
3+
*.xhtml diff=html
4+
*.css diff=css
5+
*.md diff=markdown
6+
7+
*.rs diff=rust
8+
*.py diff=python
9+
*.rb diff=ruby
10+
*.php diff=php
11+
*.ex diff=elixir
12+
*.java diff=java
13+
*.kt diff=kotlin
14+
15+
*.tex diff=tex
16+
*.bib diff=bibtex
17+
*.pdf diff=pdf
18+
*.png diff=exif
19+
*.jpg diff=exif
20+
*.jpeg diff=exif
21+
*.gif diff=exif
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
name: Lint and Test
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- master
8+
pull_request:
9+
types:
10+
- opened
11+
- synchronize
12+
- reopened
13+
14+
# https://typicode.github.io/husky/how-to.html#ci-server-and-docker
15+
env:
16+
HUSKY: 0
17+
18+
jobs:
19+
lint:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v4
23+
- uses: pnpm/action-setup@v3
24+
with:
25+
version: 9
26+
- uses: actions/setup-node@v4
27+
with:
28+
node-version: 'lts/*'
29+
cache: 'pnpm'
30+
- name: Install Dependencies
31+
run: pnpm install --frozen-lockfile
32+
- name: Linting
33+
run: pnpm run ci:lint
34+
unit-tests:
35+
runs-on: ubuntu-latest
36+
steps:
37+
- uses: actions/checkout@v4
38+
- uses: pnpm/action-setup@v3
39+
with:
40+
version: 9
41+
- uses: actions/setup-node@v4
42+
with:
43+
node-version: 'lts/*'
44+
cache: 'pnpm'
45+
- name: Install Dependencies
46+
run: pnpm install --frozen-lockfile
47+
- name: Unit Testing
48+
run: pnpm run ci:test:unit
49+
e2e-tests:
50+
timeout-minutes: 15
51+
runs-on: ubuntu-latest
52+
steps:
53+
- uses: actions/checkout@v4
54+
- uses: pnpm/action-setup@v3
55+
with:
56+
version: 9
57+
- uses: actions/setup-node@v4
58+
with:
59+
node-version: 'lts/*'
60+
cache: 'pnpm'
61+
- name: Install Dependencies
62+
run: pnpm install --frozen-lockfile
63+
- name: Install Playwright Browsers
64+
run: pnpm exec playwright install --with-deps
65+
- name: Ensure Report Directory
66+
run: mkdir -p playwright-report
67+
- name: Run Playwright Tests
68+
run: pnpm run ci:test:e2e
69+
- uses: actions/upload-artifact@v4
70+
if: ${{ !cancelled() }}
71+
with:
72+
name: playwright-report
73+
path: playwright-report/
74+
retention-days: 7

.gitignore

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
node_modules
2+
**/node_modules/
3+
4+
/playwright-report/
5+
/playwright/.cache/
6+
/blob-report/
7+
**/test-results/**
8+
.nyc_output/
9+
coverage
10+
*.lcov
11+
12+
storybook-static
13+
*storybook.log
14+
15+
**/.yarn/**
16+
**/.pnp.*
17+
.cache/
18+
.*cache
19+
*.local
20+
.tmp
21+
*.tgz
22+
23+
# Logs
24+
logs
25+
*.log
26+
npm-debug.log*
27+
yarn-debug.log*
28+
yarn-error.log*
29+
pnpm-debug.log*
30+
lerna-debug.log*
31+
32+
# Editor directories and files
33+
.vscode/*
34+
!.vscode/extensions.json
35+
.idea
36+
.DS_Store
37+
*.suo
38+
*.ntvs*
39+
*.njsproj
40+
*.sln
41+
*.sw?
42+

.husky/commit-msg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pnpm dlx commitlint --edit $1

.husky/post-checkout

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pnpm install

.husky/post-merge

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pnpm install

.husky/post-rebase

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pnpm install

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pnpm run lint-staged

0 commit comments

Comments
 (0)