Skip to content

Commit a7fa732

Browse files
authored
Initial settings (#4)
ci settings aws deployment-prod yarn check-all feature added
1 parent 747af55 commit a7fa732

File tree

5,305 files changed

+82528
-889422
lines changed

Some content is hidden

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

5,305 files changed

+82528
-889422
lines changed

.github/.DS_Store

6 KB
Binary file not shown.

.github/workflows/ci.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: ci
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
push:
8+
branches:
9+
- main
10+
11+
jobs:
12+
ci:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: actions/setup-node@v4
18+
with:
19+
node-version: "20.11.1"
20+
- name: Install dependencies
21+
run: yarn install
22+
- name: Check
23+
run: yarn check-all

.github/workflows/deploy-prod.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: deploy-prod
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
deploy:
8+
name: Deploy
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v4
13+
14+
- name: Setup Node
15+
uses: actions/setup-node@v4
16+
with:
17+
node-version: "20.11.1"
18+
19+
- name: Build & Export
20+
run: |
21+
yarn install
22+
yarn build
23+
24+
- name: Deploy to S3 (Prod)
25+
env:
26+
AWS_ACCESS_KEY_ID: ${{ secrets.PROD_AWS_ACCESS_KEY_ID }}
27+
AWS_SECRET_ACCESS_KEY: ${{ secrets.PROD_AWS_SECRET_ACCESS_KEY }}
28+
AWS_REGION: ap-southeast-2
29+
run: |
30+
aws s3 sync ./dist s3://snuxi-prod --delete
31+
aws cloudfront create-invalidation --distribution-id E1J4DN1QLF4FOT --paths "/*"\

.gitignore

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
### yarn ###
16+
.yarn/*
17+
!.yarn/releases
18+
!.yarn/patches
19+
!.yarn/plugins
20+
!.yarn/sdks
21+
!.yarn/versions
22+
23+
### VisualStudioCode ###
24+
.vscode/*
25+
!.vscode/settings.json
26+
!.vscode/tasks.json
27+
!.vscode/launch.json
28+
!.vscode/extensions.json
29+
!.vscode/*.code-snippets
30+
31+
# Local History for Visual Studio Code
32+
.history/
33+
34+
# Built Visual Studio Code Extensions
35+
*.vsix
36+
37+
### VisualStudioCode Patch ###
38+
# Ignore all local history of files
39+
.history
40+
.ionide

.vscode/settings.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"editor.defaultFormatter": "biomejs.biome",
3+
"prettier.enable": false,
4+
"eslint.enable": false,
5+
"biome.enabled": true,
6+
"editor.codeActionsOnSave": {
7+
"quickfix.biome": "explicit",
8+
"source.fixAll.biome": "explicit",
9+
"source.organizeImports.biome": "explicit"
10+
}
11+
}

.yarn/releases/yarn-4.9.1.cjs

Lines changed: 948 additions & 0 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
nodeLinker: node-modules
2+
3+
yarnPath: .yarn/releases/yarn-4.9.1.cjs

biome.json

Lines changed: 249 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,249 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
3+
"vcs": {
4+
"enabled": true,
5+
"clientKind": "git",
6+
"useIgnoreFile": true
7+
},
8+
"files": {
9+
"ignoreUnknown": false,
10+
"ignore": ["dist", ".yarn", "node_modules"]
11+
},
12+
"formatter": {
13+
"enabled": true,
14+
"useEditorconfig": true,
15+
"formatWithErrors": false,
16+
"indentStyle": "space",
17+
"indentWidth": 2,
18+
"lineEnding": "lf",
19+
"lineWidth": 80,
20+
"attributePosition": "auto",
21+
"bracketSpacing": true
22+
},
23+
"organizeImports": { "enabled": true },
24+
"linter": {
25+
"enabled": true,
26+
"rules": {
27+
"recommended": false,
28+
"correctness": {
29+
"noConstAssign": "off",
30+
"noConstantCondition": "error",
31+
"noEmptyCharacterClassInRegex": "error",
32+
"noEmptyPattern": "error",
33+
"noGlobalObjectCalls": "off",
34+
"noInvalidBuiltinInstantiation": "off",
35+
"noInvalidConstructorSuper": "off",
36+
"noNonoctalDecimalEscape": "error",
37+
"noPrecisionLoss": "error",
38+
"noSelfAssign": "error",
39+
"noSetterReturn": "off",
40+
"noSwitchDeclarations": "error",
41+
"noUndeclaredVariables": "off",
42+
"noUnreachable": "off",
43+
"noUnreachableSuper": "off",
44+
"noUnsafeFinally": "error",
45+
"noUnsafeOptionalChaining": "error",
46+
"noUnusedLabels": "error",
47+
"noUnusedPrivateClassMembers": "error",
48+
"noUnusedVariables": "error",
49+
"useIsNan": "error",
50+
"useValidForDirection": "error",
51+
"useYield": "error",
52+
"useExhaustiveDependencies": "error",
53+
"useHookAtTopLevel": "error"
54+
},
55+
"complexity": {
56+
"noExtraBooleanCast": "error",
57+
"noMultipleSpacesInRegularExpressionLiterals": "error",
58+
"noUselessCatch": "error",
59+
"noWith": "off",
60+
"noUselessTypeConstraint": "error"
61+
},
62+
"suspicious": {
63+
"noAsyncPromiseExecutor": "error",
64+
"noCatchAssign": "error",
65+
"noClassAssign": "off",
66+
"noCompareNegZero": "error",
67+
"noControlCharactersInRegex": "error",
68+
"noDebugger": "error",
69+
"noDuplicateCase": "error",
70+
"noDuplicateClassMembers": "off",
71+
"noDuplicateObjectKeys": "off",
72+
"noDuplicateParameters": "off",
73+
"noEmptyBlockStatements": "error",
74+
"noFallthroughSwitchClause": "error",
75+
"noFunctionAssign": "off",
76+
"noGlobalAssign": "error",
77+
"noImportAssign": "off",
78+
"noMisleadingCharacterClass": "error",
79+
"noPrototypeBuiltins": "error",
80+
"noRedeclare": "off",
81+
"noShadowRestrictedNames": "error",
82+
"noSparseArray": "error",
83+
"noUnsafeNegation": "off",
84+
"noExplicitAny": "error",
85+
"noExtraNonNullAssertion": "error",
86+
"noMisleadingInstantiator": "error",
87+
"noUnsafeDeclarationMerging": "error",
88+
"useAwait": "error",
89+
"useGetterReturn": "off",
90+
"useNamespaceKeyword": "error",
91+
"useValidTypeof": "error",
92+
"noConsole": {
93+
"options": {
94+
"allow": ["warn", "error", "info"]
95+
},
96+
"level": "error"
97+
}
98+
},
99+
"style": {
100+
"noArguments": "error",
101+
"noNamespace": "error",
102+
"noVar": "error",
103+
"useAsConstAssertion": "error",
104+
"useConst": "error"
105+
}
106+
},
107+
"ignore": ["dist", ".yarn", "node_modules"]
108+
},
109+
"javascript": {
110+
"formatter": {
111+
"jsxQuoteStyle": "double",
112+
"quoteProperties": "asNeeded",
113+
"trailingCommas": "es5",
114+
"semicolons": "always",
115+
"arrowParentheses": "always",
116+
"bracketSameLine": false,
117+
"quoteStyle": "single",
118+
"attributePosition": "auto",
119+
"bracketSpacing": true
120+
},
121+
"globals": [
122+
"onscrollend",
123+
"onpointerleave",
124+
"oncontextrestored",
125+
"onemptied",
126+
"ongamepaddisconnected",
127+
"onkeypress",
128+
"onloadeddata",
129+
"onmouseup",
130+
"onvolumechange",
131+
"onpaste",
132+
"onstorage",
133+
"onkeyup",
134+
"onabort",
135+
"oncut",
136+
"ontransitionrun",
137+
"onafterprint",
138+
"onblur",
139+
"ondurationchange",
140+
"ontransitionstart",
141+
"oncanplaythrough",
142+
"onanimationend",
143+
"onmouseleave",
144+
"ondragleave",
145+
"onplay",
146+
"onunhandledrejection",
147+
"onbeforeprint",
148+
"oncommand",
149+
"onpointercancel",
150+
"onsubmit",
151+
"ondragstart",
152+
"onmessage",
153+
"location",
154+
"onoffline",
155+
"onappinstalled",
156+
"onwheel",
157+
"onended",
158+
"onkeydown",
159+
"onclick",
160+
"onfocus",
161+
"onscroll",
162+
"ongamepadconnected",
163+
"oncanplay",
164+
"onpointerdown",
165+
"ondeviceorientationabsolute",
166+
"onauxclick",
167+
"ondevicemotion",
168+
"onratechange",
169+
"ontransitionend",
170+
"onscrollsnapchanging",
171+
"onchange",
172+
"onselect",
173+
"onbeforeinstallprompt",
174+
"onbeforetoggle",
175+
"onmouseout",
176+
"ontimeupdate",
177+
"ondragover",
178+
"oncuechange",
179+
"ontransitioncancel",
180+
"onprogress",
181+
"onbeforeinput",
182+
"onpointerenter",
183+
"onmouseenter",
184+
"oninvalid",
185+
"onpointerout",
186+
"onpagereveal",
187+
"onpause",
188+
"onanimationstart",
189+
"onwaiting",
190+
"onscrollsnapchange",
191+
"ondeviceorientation",
192+
"onclose",
193+
"onbeforeunload",
194+
"oncancel",
195+
"onseeked",
196+
"onpointerover",
197+
"ongotpointercapture",
198+
"onloadedmetadata",
199+
"onpageshow",
200+
"onstalled",
201+
"oncontextmenu",
202+
"onreset",
203+
"ondrag",
204+
"onbeforematch",
205+
"onload",
206+
"onlostpointercapture",
207+
"onsuspend",
208+
"onselectionchange",
209+
"onpagehide",
210+
"onrejectionhandled",
211+
"onunload",
212+
"onanimationcancel",
213+
"onmousedown",
214+
"onpointerup",
215+
"onmouseover",
216+
"onformdata",
217+
"oncontentvisibilityautostatechange",
218+
"onresize",
219+
"onsearch",
220+
"ontoggle",
221+
"onpageswap",
222+
"onbeforexrselect",
223+
"onlanguagechange",
224+
"ondragenter",
225+
"onerror",
226+
"onpointermove",
227+
"onmousemove",
228+
"ondrop",
229+
"onhashchange",
230+
"onsecuritypolicyviolation",
231+
"onslotchange",
232+
"oncopy",
233+
"onanimationiteration",
234+
"ondblclick",
235+
"ondragend",
236+
"onpointerrawupdate",
237+
"onpopstate",
238+
"onplaying",
239+
"oncontextlost",
240+
"onloadstart",
241+
"onseeking",
242+
"oninput",
243+
"onmessageerror",
244+
"onselectstart",
245+
"onmousewheel",
246+
"ononline"
247+
]
248+
}
249+
}

eslint.config.js

Lines changed: 0 additions & 23 deletions
This file was deleted.

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="UTF-8" />
55
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7-
<title>23-5-team3-web</title>
7+
<title>Vite + React + TS</title>
88
</head>
99
<body>
1010
<div id="root"></div>

0 commit comments

Comments
 (0)