Skip to content

Commit 152667e

Browse files
committed
init
1 parent 1388e98 commit 152667e

31 files changed

+11777
-2
lines changed

.editorconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
root = true
2+
3+
[**/**.{yml,ts,tsx,js,json,jsx,html}]
4+
indent_style = space
5+
indent_size = 2
6+
insert_final_newline = true

.eslintrc.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
module.exports = {
2+
extends: [
3+
'eslint:recommended',
4+
'plugin:@typescript-eslint/recommended',
5+
'plugin:prettier/recommended'
6+
],
7+
env: {
8+
node: true,
9+
mocha: true,
10+
es6: true
11+
},
12+
plugins: ['@typescript-eslint', 'prettier'],
13+
parserOptions: {
14+
parser: '@typescript-eslint/parser'
15+
}
16+
}

.gitattributes

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Fix how tsconfig.json files are displayed in GitHub's web view,
2+
# by telling it to read said files as JSON With Comments, the
3+
# JSON extension used by TypeScript.
4+
tsconfig.*.json linguist-language=JSON-with-Comments
5+
tsconfig.json linguist-language=JSON-with-Comments
6+
7+
# Also fix how Visual Studio Code configuration files are read.
8+
.vscode/*.json linguist-language=JSON-with-Comments

.github/workflows/ci.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: UI CI
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
push:
8+
branches:
9+
- main
10+
11+
jobs:
12+
lint:
13+
runs-on: ubuntu-22.04
14+
name: Lint
15+
steps:
16+
- uses: actions/checkout@v3
17+
- uses: actions/setup-node@v3
18+
with:
19+
node-version: '18'
20+
- run: yarn
21+
- run: yarn lint
22+
build:
23+
runs-on: ubuntu-22.04
24+
needs: lint
25+
name: Build
26+
steps:
27+
- uses: actions/checkout@v3
28+
- uses: actions/setup-node@v3
29+
with:
30+
node-version: '18'
31+
- run: yarn
32+
- run: yarn build
33+
test:
34+
runs-on: ubuntu-22.04
35+
needs: build
36+
name: Test
37+
steps:
38+
- uses: actions/checkout@v3
39+
- uses: actions/setup-node@v3
40+
with:
41+
node-version: '18'
42+
- run: yarn
43+
- run: yarn test

.gitignore

Lines changed: 265 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,265 @@
1+
2+
# Created by https://www.toptal.com/developers/gitignore/api/node,jetbrains+all,visualstudiocode,macos
3+
# Edit at https://www.toptal.com/developers/gitignore?templates=node,jetbrains+all,visualstudiocode,macos
4+
5+
### JetBrains+all ###
6+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
7+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
8+
9+
# User-specific stuff
10+
.idea/**/workspace.xml
11+
.idea/**/tasks.xml
12+
.idea/**/usage.statistics.xml
13+
.idea/**/dictionaries
14+
.idea/**/shelf
15+
16+
# AWS User-specific
17+
.idea/**/aws.xml
18+
19+
# Generated files
20+
.idea/**/contentModel.xml
21+
22+
# Sensitive or high-churn files
23+
.idea/**/dataSources/
24+
.idea/**/dataSources.ids
25+
.idea/**/dataSources.local.xml
26+
.idea/**/sqlDataSources.xml
27+
.idea/**/dynamic.xml
28+
.idea/**/uiDesigner.xml
29+
.idea/**/dbnavigator.xml
30+
31+
# Gradle
32+
.idea/**/gradle.xml
33+
.idea/**/libraries
34+
35+
# Gradle and Maven with auto-import
36+
# When using Gradle or Maven with auto-import, you should exclude module files,
37+
# since they will be recreated, and may cause churn. Uncomment if using
38+
# auto-import.
39+
# .idea/artifacts
40+
# .idea/compiler.xml
41+
# .idea/jarRepositories.xml
42+
# .idea/modules.xml
43+
# .idea/*.iml
44+
# .idea/modules
45+
# *.iml
46+
# *.ipr
47+
48+
# CMake
49+
cmake-build-*/
50+
51+
# Mongo Explorer plugin
52+
.idea/**/mongoSettings.xml
53+
54+
# File-based project format
55+
*.iws
56+
57+
# IntelliJ
58+
out/
59+
60+
# mpeltonen/sbt-idea plugin
61+
.idea_modules/
62+
63+
# JIRA plugin
64+
atlassian-ide-plugin.xml
65+
66+
# Cursive Clojure plugin
67+
.idea/replstate.xml
68+
69+
# Crashlytics plugin (for Android Studio and IntelliJ)
70+
com_crashlytics_export_strings.xml
71+
crashlytics.properties
72+
crashlytics-build.properties
73+
fabric.properties
74+
75+
# Editor-based Rest Client
76+
.idea/httpRequests
77+
78+
# Android studio 3.1+ serialized cache file
79+
.idea/caches/build_file_checksums.ser
80+
81+
### JetBrains+all Patch ###
82+
# Ignores the whole .idea folder and all .iml files
83+
# See https://github.com/joeblau/gitignore.io/issues/186 and https://github.com/joeblau/gitignore.io/issues/360
84+
85+
.idea/
86+
87+
# Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-249601023
88+
89+
*.iml
90+
modules.xml
91+
.idea/misc.xml
92+
*.ipr
93+
94+
# Sonarlint plugin
95+
.idea/sonarlint
96+
97+
### macOS ###
98+
# General
99+
.DS_Store
100+
.AppleDouble
101+
.LSOverride
102+
103+
# Icon must end with two \r
104+
Icon
105+
106+
# Thumbnails
107+
._*
108+
109+
# Files that might appear in the root of a volume
110+
.DocumentRevisions-V100
111+
.fseventsd
112+
.Spotlight-V100
113+
.TemporaryItems
114+
.Trashes
115+
.VolumeIcon.icns
116+
.com.apple.timemachine.donotpresent
117+
118+
# Directories potentially created on remote AFP share
119+
.AppleDB
120+
.AppleDesktop
121+
Network Trash Folder
122+
Temporary Items
123+
.apdisk
124+
125+
### Node ###
126+
# Logs
127+
logs
128+
*.log
129+
npm-debug.log*
130+
yarn-debug.log*
131+
yarn-error.log*
132+
lerna-debug.log*
133+
.pnpm-debug.log*
134+
135+
# Diagnostic reports (https://nodejs.org/api/report.html)
136+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
137+
138+
# Runtime data
139+
pids
140+
*.pid
141+
*.seed
142+
*.pid.lock
143+
144+
# Directory for instrumented libs generated by jscoverage/JSCover
145+
lib-cov
146+
147+
# Coverage directory used by tools like istanbul
148+
coverage
149+
*.lcov
150+
151+
# nyc test coverage
152+
.nyc_output
153+
154+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
155+
.grunt
156+
157+
# Bower dependency directory (https://bower.io/)
158+
bower_components
159+
160+
# node-waf configuration
161+
.lock-wscript
162+
163+
# Compiled binary addons (https://nodejs.org/api/addons.html)
164+
build/Release
165+
166+
# Dependency directories
167+
node_modules/
168+
jspm_packages/
169+
170+
# Snowpack dependency directory (https://snowpack.dev/)
171+
web_modules/
172+
173+
# TypeScript cache
174+
*.tsbuildinfo
175+
176+
# Optional npm cache directory
177+
.npm
178+
179+
# Optional eslint cache
180+
.eslintcache
181+
182+
# Microbundle cache
183+
.rpt2_cache/
184+
.rts2_cache_cjs/
185+
.rts2_cache_es/
186+
.rts2_cache_umd/
187+
188+
# Optional REPL history
189+
.node_repl_history
190+
191+
# Output of 'npm pack'
192+
*.tgz
193+
194+
# Yarn Integrity file
195+
.yarn-integrity
196+
197+
# dotenv environment variables file
198+
.env
199+
.env.test
200+
.env.production
201+
202+
# parcel-bundler cache (https://parceljs.org/)
203+
.cache
204+
.parcel-cache
205+
206+
# Next.js build output
207+
.next
208+
out
209+
210+
# Nuxt.js build / generate output
211+
.nuxt
212+
dist
213+
214+
# Gatsby files
215+
.cache/
216+
# Comment in the public line in if your project uses Gatsby and not Next.js
217+
# https://nextjs.org/blog/next-9-1#public-directory-support
218+
# public
219+
220+
# vuepress build output
221+
.vuepress/dist
222+
223+
# Serverless directories
224+
.serverless/
225+
226+
# FuseBox cache
227+
.fusebox/
228+
229+
# DynamoDB Local files
230+
.dynamodb/
231+
232+
# TernJS port file
233+
.tern-port
234+
235+
# Stores VSCode versions used for testing VSCode extensions
236+
.vscode-test
237+
238+
# yarn v2
239+
.yarn/cache
240+
.yarn/unplugged
241+
.yarn/build-state.yml
242+
.yarn/install-state.gz
243+
.pnp.*
244+
245+
### Node Patch ###
246+
# Serverless Webpack directories
247+
.webpack/
248+
249+
### VisualStudioCode ###
250+
.vscode/*
251+
!.vscode/settings.json
252+
!.vscode/tasks.json
253+
!.vscode/launch.json
254+
!.vscode/extensions.json
255+
*.code-workspace
256+
257+
# Local History for Visual Studio Code
258+
.history/
259+
260+
### VisualStudioCode Patch ###
261+
# Ignore all local history of files
262+
.history
263+
.ionide
264+
265+
# End of https://www.toptal.com/developers/gitignore/api/node,jetbrains+all,visualstudiocode,macos

.husky/.gitignore

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

.husky/commit-msg

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 --no-install commitlint --edit "$1"

.prettierrc.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
module.exports = {
2+
printWidth: 80,
3+
tabWidth: 2,
4+
singleQuote: true,
5+
quoteProps: 'as-needed',
6+
trailingComma: 'none',
7+
bracketSpacing: true,
8+
semi: false,
9+
useTabs: false,
10+
bracketSameLine: false,
11+
proseWrap: 'never'
12+
}

.vscode/settings.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"editor.formatOnSave": true,
3+
"editor.formatOnPaste": true,
4+
"[typescript]": {
5+
"editor.defaultFormatter": "esbenp.prettier-vscode"
6+
},
7+
"[typescriptreact]": {
8+
"editor.defaultFormatter": "esbenp.prettier-vscode"
9+
},
10+
"[json]": {
11+
"editor.defaultFormatter": "esbenp.prettier-vscode"
12+
},
13+
"[javascript]": {
14+
"editor.defaultFormatter": "esbenp.prettier-vscode"
15+
},
16+
"[html]": {
17+
"editor.defaultFormatter": "esbenp.prettier-vscode"
18+
}
19+
}

0 commit comments

Comments
 (0)