Skip to content

Commit 98aef76

Browse files
authored
Merge pull request #13 from tutorial-sejong/develop
Develop
2 parents f6260ad + 0dac55f commit 98aef76

Some content is hidden

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

48 files changed

+1425
-232
lines changed

.eslintrc.cjs

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,25 @@ module.exports = {
99
ignorePatterns: ['dist', '.eslintrc.cjs'],
1010
parser: '@typescript-eslint/parser',
1111
plugins: ['react-refresh'],
12-
rules: {
13-
'react-refresh/only-export-components': [
14-
'warn',
15-
{ allowConstantExport: true },
12+
"rules": {
13+
"@typescript-eslint/naming-convention": [
14+
"warn",
15+
// 변수명
16+
{
17+
"selector": "variable",
18+
"format": ["camelCase", "PascalCase"]
19+
},
20+
// 함수명
21+
{
22+
"selector": "function",
23+
"format": ["camelCase", "PascalCase"]
24+
},
1625
],
26+
"quotes": ["error", "single"],
27+
"semi": ["error", "always"],
28+
"no-duplicate-imports": "error",
29+
"no-console": ["warn", { "allow": ["warn", "error", "info"] }],
30+
"no-unused-vars": "warn",
31+
"no-multiple-empty-lines": "error"
1732
},
1833
}

.github/workflow/deploy.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: CI/CD Pipeline
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v2
15+
16+
- name: Set up Node.js
17+
uses: actions/setup-node@v2
18+
with:
19+
node-version: '16'
20+
21+
- name: Install dependencies
22+
run: npm install
23+
24+
- name: Build project
25+
run: npm run build
26+
27+
- name: Prepare deployment package
28+
run: |
29+
mkdir -p build/deployment
30+
cp -r dist/* build/deployment/
31+
32+
- name: Deploy to Home Server
33+
uses: appleboy/scp-action@v0.0.1
34+
with:
35+
host: ${{ secrets.SSH_HOST }}
36+
username: ${{ secrets.SSH_USER }}
37+
key: ${{ secrets.SSH_PRIVATE_KEY }}
38+
source: "build/deployment/*"
39+
target: "/home/anhye0n/web/tutorial_sejong/frontend/dist"
40+
41+
- name: Restart Nginx
42+
uses: appleboy/ssh-action@master
43+
with:
44+
host: ${{ secrets.SSH_HOST }}
45+
username: ${{ secrets.SSH_USER }}
46+
key: ${{ secrets.SSH_PRIVATE_KEY }}
47+
script: |
48+
sudo systemctl restart nginx

.prettierrc

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"arrowParens": "avoid",
3+
"bracketSpacing": false,
4+
"endOfLine": "auto",
5+
"htmlWhitespaceSensitivity": "css",
6+
"jsxBracketSameLine": false,
7+
"jsxSingleQuote": true,
8+
"printWidth": 80,
9+
"proseWrap": "preserve",
10+
"quoteProps": "consistent",
11+
"semi": true,
12+
"singleQuote": true,
13+
"tabWidth": 2,
14+
"trailingComma": "all",
15+
"useTabs": false,
16+
"vueIndentScriptAndStyle": true,
17+
"requirePragma": false,
18+
"insertPragma": false
19+
}

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>Vite + React + TS</title>
7+
<title>수강신청</title>
88
</head>
99
<body>
1010
<div id="root"></div>

0 commit comments

Comments
 (0)