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

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

.editorconfig

+28
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

+21
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

.github/workflows/lint-and-test.yml

+74
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

+42
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

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pnpm dlx commitlint --edit $1

.husky/post-checkout

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pnpm install

.husky/post-merge

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pnpm install

.husky/post-rebase

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pnpm install

.husky/pre-commit

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pnpm run lint-staged

.husky/pre-push

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
git diff HEAD --quiet && pnpm run test:staged

.prettierignore

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
node_modules
2+
/playwright-report/
3+
/playwright/.cache/
4+
/blob-report/
5+
**/test-results/
6+
cypress
7+
coverage
8+
dist
9+
build
10+
public
11+
12+
*.local
13+
.*cache
14+
*.config.js
15+
*.config.cjs
16+
*.config.mjs
17+
18+
.git
19+
.changeset
20+
.astro
21+
.vscode
22+
.next
23+
.husky
24+
.DS_Store
25+
26+
package-lock.json
27+
pnpm-lock.yaml
28+
yarn.lock
29+

.prettierrc.yaml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
tabWidth: 4
3+
useTabs: true
4+
semi: true
5+
singleQuote: true
6+
trailingComma: es5
7+
printWidth: 100
8+
plugins:
9+
- prettier-plugin-tailwindcss
10+
- prettier-plugin-organize-attributes
11+
overrides:
12+
- files:
13+
- 'package.json'
14+
options:
15+
useTabs: false
16+
tabWidth: 4
17+
- files:
18+
- '*.{md,json,yml,yaml}'
19+
options:
20+
useTabs: false
21+
tabWidth: 2
22+
- files:
23+
- '*.css'
24+
- '*.scss'
25+
- '*.less'
26+
- '*.styl'
27+
options:
28+
singleQuote: false

.storybook/main.ts

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import type { StorybookConfig } from '@storybook/react-vite';
2+
3+
const config: StorybookConfig = {
4+
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
5+
addons: [
6+
'@storybook/addon-onboarding',
7+
'@storybook/addon-essentials',
8+
'@chromatic-com/storybook',
9+
'@storybook/addon-interactions',
10+
],
11+
framework: {
12+
name: '@storybook/react-vite',
13+
options: {},
14+
},
15+
};
16+
export default config;

.storybook/preview.ts

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import type { Preview } from '@storybook/react';
2+
3+
const preview: Preview = {
4+
parameters: {
5+
controls: {
6+
matchers: {
7+
color: /(background|color)$/i,
8+
date: /Date$/i,
9+
},
10+
},
11+
},
12+
};
13+
14+
export default preview;

.stylelintignore

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
node_modules
2+
bin
3+
dist
4+
build
5+
*.*
6+
!*.vue
7+
!*.css
8+
!*.scss

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
# pinescript-cheatsheet
2+
23
Pine Script Cheatsheet

commitlint.config.mjs

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
export default {
2+
extends: [
3+
'@commitlint/config-conventional',
4+
],
5+
};

dist/assets/index-DmjT2C51.css

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)