Skip to content

Commit 0404292

Browse files
Initial commit
0 parents  commit 0404292

Some content is hidden

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

59 files changed

+50434
-0
lines changed

.babelrc.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"presets": ["react-app"],
3+
"plugins": [
4+
["@babel/plugin-proposal-class-properties", { "loose": true }],
5+
[
6+
"module-resolver",
7+
{
8+
"alias": {
9+
"^react-native$": "react-native-web",
10+
"^@/(.+)": "./src/\\1"
11+
}
12+
}
13+
],
14+
"react-native-web"
15+
]
16+
}

.eslintignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
build/
2+
config/
3+
public/
4+
scripts/
5+
6+
.eslintrc.js
7+
babel.config.js
8+
jest.config.js

.eslintrc.js

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
module.exports = {
2+
extends: ["react-app", "plugin:import/typescript"],
3+
parser: "@typescript-eslint/parser",
4+
parserOptions: {
5+
tsconfigRootDir: __dirname,
6+
project: ["./tsconfig.json"],
7+
ecmaVersion: "latest",
8+
sourceType: "module",
9+
},
10+
rules: {
11+
"import/prefer-default-export": "error",
12+
"import/no-anonymous-default-export": "error",
13+
"import/order": [
14+
"error",
15+
{
16+
groups: [
17+
"builtin",
18+
"external",
19+
"internal",
20+
"parent",
21+
"sibling",
22+
"index",
23+
"object",
24+
"type",
25+
],
26+
pathGroups: [
27+
{
28+
pattern: "react",
29+
group: "builtin",
30+
position: "before",
31+
},
32+
{
33+
pattern: "@/**",
34+
group: "parent",
35+
position: "before",
36+
},
37+
],
38+
pathGroupsExcludedImportTypes: ["react"],
39+
alphabetize: {
40+
order: "asc",
41+
caseInsensitive: true,
42+
},
43+
"newlines-between": "never",
44+
},
45+
],
46+
},
47+
};

.github/dependabot.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
# Maintain dependencies for GitHub Actions
9+
- package-ecosystem: "github-actions"
10+
directory: "/"
11+
schedule:
12+
interval: "weekly"
13+
14+
- package-ecosystem: "npm" # See documentation for possible values
15+
directory: "/" # Location of package manifests
16+
schedule:
17+
interval: "weekly"

.github/workflows/ci.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
ci:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
node-version: [15.x, 16.x]
16+
17+
steps:
18+
- uses: actions/checkout@v3
19+
- name: Use Node.js ${{ matrix.node-version }}
20+
uses: actions/setup-node@v3
21+
with:
22+
node-version: ${{ matrix.node-version }}
23+
- run: yarn install --immutable
24+
- run: yarn lint
25+
- run: yarn test

.github/workflows/deploy.yml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: Deploy
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: read
11+
pages: write
12+
id-token: write
13+
14+
concurrency:
15+
group: "deploy"
16+
cancel-in-progress: false
17+
18+
jobs:
19+
build:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v3
23+
- name: Use Node.js 16
24+
uses: actions/setup-node@v3
25+
with:
26+
node-version: "16"
27+
28+
- name: Install dependencies
29+
run: yarn install --immutable
30+
31+
- name: Build
32+
run: yarn build
33+
34+
- name: Upload pages artifact
35+
uses: actions/upload-pages-artifact@v2
36+
with:
37+
path: ./build
38+
39+
- name: Upload artifacts
40+
uses: actions/upload-artifact@v3
41+
with:
42+
name: react
43+
path: ./build/
44+
45+
deploy-pages:
46+
environment:
47+
name: github-pages
48+
url: ${{ steps.deployment.outputs.page_url }}
49+
runs-on: ubuntu-latest
50+
needs: build
51+
steps:
52+
- name: Setup Pages
53+
uses: actions/configure-pages@v3
54+
- name: Deploy to Github Pages
55+
id: pages-deployment
56+
uses: actions/deploy-pages@v2
57+
58+
# Uncomment after configuring AWS credentials
59+
# deploy-s3:
60+
# runs-on: ubuntu-latest
61+
# needs: build
62+
# steps:
63+
# - uses: shallwefootball/s3-upload-action@master
64+
# name: Upload S3
65+
# id: S3
66+
# with:
67+
# aws_key_id: ${{ secrets.AWS_KEY_ID }}
68+
# aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY}}
69+
# aws_bucket: ${{ secrets.AWS_BUCKET }}
70+
# source_dir: "./build"
71+
# destination_dir: "./"

.gitignore

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# VSCode specific stuff
2+
.vscode/*
3+
!.vscode/settings.json
4+
!.vscode/tasks.json
5+
!.vscode/launch.json
6+
!.vscode/extensions.json
7+
*.code-workspace
8+
9+
# Node modules
10+
node_modules/
11+
12+
# Logs
13+
logs
14+
*.log
15+
npm-debug.log*
16+
yarn-debug.log*
17+
yarn-error.log*
18+
lerna-debug.log*
19+
.pnpm-debug.log*
20+
21+
# Optional npm cache directory
22+
.npm
23+
24+
# Yarn Integrity file
25+
.yarn-integrity
26+
.yarn/cache
27+
.yarn/unplugged
28+
.yarn/build-state.yml
29+
.yarn/install-state.gz
30+
31+
# Build folders
32+
build/
33+
34+
# Local History for Visual Studio Code
35+
.history/
36+
37+
# MacOS hidden folders
38+
.DS_Store/
39+
40+
# Environment
41+
.env

0 commit comments

Comments
 (0)