Skip to content

Commit

Permalink
Merge pull request #8 from Garodden/feature/front
Browse files Browse the repository at this point in the history
Feat: 프론트 빌드환경 설정
  • Loading branch information
lth01 authored Apr 26, 2024
2 parents b3b0773 + 3c5eb29 commit 4baf131
Show file tree
Hide file tree
Showing 42 changed files with 8,513 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/front/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
module.exports = {
root: true,
env: { browser: true, es2020: true },
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:react/jsx-runtime',
'plugin:react-hooks/recommended',
],
ignorePatterns: ['dist', '.eslintrc.cjs'],
parserOptions: { ecmaVersion: 'latest', sourceType: 'module' },
settings: { react: { version: '18.2' } },
plugins: ['react-refresh'],
rules: {
'react/jsx-no-target-blank': 'off',
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
],
},
}
24 changes: 24 additions & 0 deletions src/front/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
14 changes: 14 additions & 0 deletions src/front/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# 1inked-1n Front

## 사전 준비사항
로컬 환경에 node.js v20.11를 설치해주세요

## 프론트 프로젝트 로컬에서 빌드하는 방법
현재 터미널의 디렉토리 위치를 src/front로 맞춰주세요!

> npm install
> npm run dev
터미널에 나오는 http://localhost:5173 주소로 접속해주세요.

그다음부터는 실시간으로 수정하시면 됩니다!
17 changes: 17 additions & 0 deletions src/front/components.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"$schema": "https://ui.shadcn.com/schema.json",
"style": "default",
"rsc": false,
"tsx": false,
"tailwind": {
"config": "tailwind.config.js",
"css": "src/index.css",
"baseColor": "slate",
"cssVariables": true,
"prefix": ""
},
"aliases": {
"components": "@/components",
"utils": "@/lib/utils"
}
}
13 changes: 13 additions & 0 deletions src/front/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.jsx"></script>
</body>
</html>
10 changes: 10 additions & 0 deletions src/front/jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": [
"./src/*"
]
}
}
}
Loading

0 comments on commit 4baf131

Please sign in to comment.