Skip to content

Commit 1344cc1

Browse files
committed
chore(release): 1.0.0
0 parents  commit 1344cc1

Some content is hidden

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

46 files changed

+8518
-0
lines changed

.eslintrc.json

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"es2021": true
5+
},
6+
"extends": ["plugin:react/recommended", "airbnb", "plugin:react-hooks/recommended", "plugin:prettier/recommended"],
7+
"parser": "@typescript-eslint/parser",
8+
"parserOptions": {
9+
"ecmaFeatures": {
10+
"jsx": true
11+
}
12+
},
13+
"overrides": [
14+
{
15+
"files": ["*.ts", "*.tsx"],
16+
"parserOptions": {
17+
"project": ["./tsconfig.json", "./cypress/tsconfig.json"]
18+
}
19+
}
20+
],
21+
"settings": {
22+
"import/resolver": {
23+
"typescript": {}
24+
}
25+
},
26+
"plugins": ["react", "@typescript-eslint"],
27+
"rules": {
28+
"import/no-extraneous-dependencies": [
29+
2,
30+
{
31+
"devDependencies": true
32+
}
33+
],
34+
"react/jsx-filename-extension": [1, { "extensions": [".tsx", ".ts"] }],
35+
"prettier/prettier": [2, { "usePrettierrc": true }],
36+
"react/require-default-props": 0,
37+
"react/prop-types": 0,
38+
"react/react-in-jsx-scope": 0,
39+
"react/jsx-props-no-spreading": [1, { "exceptions": ["Component", "svg"] }],
40+
"arrow-parens": 0,
41+
"no-undef": 0,
42+
"no-console": 1,
43+
"no-plusplus": [
44+
2,
45+
{
46+
"allowForLoopAfterthoughts": true
47+
}
48+
],
49+
"@typescript-eslint/no-shadow": 0,
50+
"no-shadow": 0,
51+
"react-hooks/rules-of-hooks": 2,
52+
"react-hooks/exhaustive-deps": 1
53+
}
54+
}

.github/dependabot.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: 'npm' # See documentation for possible values
9+
directory: '/' # Location of package manifests
10+
schedule:
11+
interval: 'weekly'

.github/workflows/codeql-analysis.yml

+67
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
name: 'CodeQL'
13+
14+
on:
15+
push:
16+
branches: [main]
17+
pull_request:
18+
# The branches below must be a subset of the branches above
19+
branches: [main]
20+
schedule:
21+
- cron: '33 8 * * 4'
22+
23+
jobs:
24+
analyze:
25+
name: Analyze
26+
runs-on: ubuntu-latest
27+
28+
strategy:
29+
fail-fast: false
30+
matrix:
31+
language: ['javascript']
32+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
33+
# Learn more:
34+
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
35+
36+
steps:
37+
- name: Checkout repository
38+
uses: actions/checkout@v2
39+
40+
# Initializes the CodeQL tools for scanning.
41+
- name: Initialize CodeQL
42+
uses: github/codeql-action/init@v1
43+
with:
44+
languages: ${{ matrix.language }}
45+
# If you wish to specify custom queries, you can do so here or in a config file.
46+
# By default, queries listed here will override any specified in a config file.
47+
# Prefix the list here with "+" to use these queries and those in the config file.
48+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
49+
50+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
51+
# If this step fails, then you should remove it and run the build manually (see below)
52+
- name: Autobuild
53+
uses: github/codeql-action/autobuild@v1
54+
55+
# ℹ️ Command-line programs to run using the OS shell.
56+
# 📚 https://git.io/JvXDl
57+
58+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
59+
# and modify them (or add more) to build your code if your project
60+
# uses a compiled language
61+
62+
#- run: |
63+
# make bootstrap
64+
# make release
65+
66+
- name: Perform CodeQL Analysis
67+
uses: github/codeql-action/analyze@v1

.github/workflows/tests.yml

+112
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
name: Tests
2+
3+
on: [push]
4+
5+
jobs:
6+
perf:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout
10+
uses: actions/checkout@v2
11+
12+
- name: Caches
13+
uses: actions/cache@v2
14+
id: yarn-build-cache
15+
with:
16+
path: |
17+
.next/cache
18+
node_modules
19+
~/.cache/Cypress
20+
build
21+
key: ${{ runner.os }}-node_modules-build-${{ hashFiles('**/yarn.lock') }}
22+
restore-keys: |
23+
${{ runner.os }}-node_modules-build-
24+
25+
- name: Node12
26+
uses: actions/setup-node@v2
27+
with:
28+
node-version: '12'
29+
30+
- name: Install
31+
run: npm install && npm install -g @lhci/cli@0.7.x
32+
33+
- name: Lhci
34+
run: lhci autorun
35+
env:
36+
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }}
37+
coverage:
38+
runs-on: ubuntu-latest
39+
steps:
40+
- name: Checkout
41+
uses: actions/checkout@v2
42+
43+
- name: Caches
44+
uses: actions/cache@v2
45+
id: yarn-build-cache
46+
with:
47+
path: |
48+
.next/cache
49+
node_modules
50+
~/.cache/Cypress
51+
build
52+
key: ${{ runner.os }}-node_modules-build-${{ hashFiles('**/yarn.lock') }}
53+
restore-keys: |
54+
${{ runner.os }}-node_modules-build-
55+
56+
- name: Node12
57+
uses: actions/setup-node@v2
58+
with:
59+
node-version: '12'
60+
61+
- name: Install
62+
run: yarn install
63+
64+
- name: Jest
65+
run: yarn coverage
66+
67+
- name: Store Artifact
68+
uses: actions/upload-artifact@v2
69+
with:
70+
name: coverage
71+
path: coverage
72+
e2e:
73+
runs-on: ubuntu-latest
74+
steps:
75+
- name: Checkout
76+
uses: actions/checkout@v2
77+
78+
- name: Caches
79+
uses: actions/cache@v2
80+
id: yarn-build-cache
81+
with:
82+
path: |
83+
.next/cache
84+
node_modules
85+
~/.cache/Cypress
86+
build
87+
key: ${{ runner.os }}-node_modules-build-${{ hashFiles('**/yarn.lock') }}
88+
restore-keys: |
89+
${{ runner.os }}-node_modules-build-
90+
91+
- name: Node12
92+
uses: actions/setup-node@v2
93+
with:
94+
node-version: '12'
95+
96+
- name: Install
97+
run: yarn install
98+
99+
- name: Cypress run
100+
uses: cypress-io/github-action@v2
101+
with:
102+
build: yarn build
103+
install: false
104+
start: yarn start
105+
wait-on: 'http://localhost:3000'
106+
wait-on-timeout: 120
107+
108+
- name: Store Artifact
109+
uses: actions/upload-artifact@v2
110+
with:
111+
name: video
112+
path: cypress/videos

.gitignore

+66
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
# General
3+
.DS_Store
4+
.AppleDouble
5+
.LSOverride
6+
7+
# Icon must end with two \r
8+
Icon
9+
10+
# Thumbnails
11+
._*
12+
13+
# Files that might appear in the root of a volume
14+
.DocumentRevisions-V100
15+
.fseventsd
16+
.Spotlight-V100
17+
.TemporaryItems
18+
.Trashes
19+
.VolumeIcon.icns
20+
.com.apple.timemachine.donotpresent
21+
22+
# Directories potentially created on remote AFP share
23+
.AppleDB
24+
.AppleDesktop
25+
Network Trash Folder
26+
Temporary Items
27+
.apdisk
28+
29+
# dependencies
30+
node_modules
31+
.pnp
32+
.pnp.js
33+
34+
# testing
35+
coverage
36+
cypress/videos
37+
cypress/screenshots
38+
cypress/fixtures
39+
40+
# next.js
41+
.next/
42+
out/
43+
44+
# production
45+
build
46+
47+
# misc
48+
.DS_Store
49+
*.pem
50+
51+
# debug
52+
npm-debug.log*
53+
yarn-debug.log*
54+
yarn-error.log*
55+
56+
# local env files
57+
.env.local
58+
.env.development.local
59+
.env.test.local
60+
.env.production.local
61+
62+
# vercel
63+
.vercel
64+
65+
# vscode
66+
*.code-workspace

.husky/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/commit-msg

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
yarn commitlint --edit $1

.husky/pre-commit

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
yarn lint

.prettierignore

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Ignore artifacts:
2+
coverage
3+
cypress/videos
4+
cypress/screenshots
5+
cypress/fixtures
6+
.next

.prettierrc.json

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"trailingComma": "all",
3+
"printWidth": 120,
4+
"tabWidth": 2,
5+
"singleQuote": true,
6+
"arrowParens": "avoid"
7+
}

.vscode/settings.json

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"editor.formatOnSave": true,
3+
"editor.codeActionsOnSave": {
4+
"source.fixAll.eslint": true
5+
},
6+
"css.validate": false,
7+
"editor.quickSuggestions": {
8+
"strings": true
9+
},
10+
"tailwindCSS.includeLanguages": { "typescriptreact": "html" }
11+
}

LICENSE

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Copyright (c) 2012-2021 Scott Chacon and others
2+
3+
Permission is hereby granted, free of charge, to any person obtaining
4+
a copy of this software and associated documentation files (the
5+
"Software"), to deal in the Software without restriction, including
6+
without limitation the rights to use, copy, modify, merge, publish,
7+
distribute, sublicense, and/or sell copies of the Software, and to
8+
permit persons to whom the Software is furnished to do so, subject to
9+
the following conditions:
10+
11+
The above copyright notice and this permission notice shall be
12+
included in all copies or substantial portions of the Software.
13+
14+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

0 commit comments

Comments
 (0)