Skip to content

Commit

Permalink
๐Ÿ”€ Merge pull request #37 from alittlekitten/feat/feedback
Browse files Browse the repository at this point in the history
from Feat/feedback to main -> merge
alittlekitten authored Mar 23, 2022
2 parents cd2330e + 818ca14 commit d401d7e
Showing 22 changed files with 10,736 additions and 243 deletions.
31 changes: 31 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"env": {
"node": true,
"browser": true,
"es2021": true,
"jest": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:prettier/recommended"
],
"globals": { "NodeJS": true },
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["react", "@typescript-eslint", "prettier"],
"rules": {
"prettier/prettier": ["error", { "endOfLine": "auto" }],
"react/jsx-uses-react": "off",
"react/react-in-jsx-scope": "off",
"no-unused-vars": "off",
"no-undef": "warn",
"@typescript-eslint/no-unused-vars": ["warn"]
}
}
6 changes: 6 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"semi": true,
"tabWidth": 2,
"trailingComma": "es5",
"useTabs": false
}
40 changes: 32 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -13,19 +13,19 @@

**๐Ÿ‘‰ ๋ฐฐํฌ ํŽ˜์ด์ง€ : https://alittlekitten.github.io/SsocoTimer/**

**์ตœ์‹  ์—…๋ฐ์ดํŠธ ๋‚ ์งœ : `2022.03.14`**
**์ตœ์‹  ์—…๋ฐ์ดํŠธ ๋‚ ์งœ : `2022.03.24`**

**์ตœ์‹  ๋ฆด๋ฆฌ์ฆˆ ๋ฒ„์ „ : `ver 1.2.1`**
**์ตœ์‹  ๋ฆด๋ฆฌ์ฆˆ ๋ฒ„์ „ : `ver 1.3.0`**

![Honeycam 2022-02-26 03-44-57](https://user-images.githubusercontent.com/14370441/155770607-7f0f5346-9672-478b-9f0d-70e32ef0ab9b.gif)
![Honeycam 2022-03-24 02-10-55](https://user-images.githubusercontent.com/14370441/159756812-272b28a4-2281-4769-88fb-9e57795b6de7.gif)

- React์™€ CRA๋ฅผ ์ด์šฉํ•ด์„œ ๊ฐ„๋‹จํ•œ ์Šคํƒ‘์›Œ์น˜๋ฅผ ๋งŒ๋“ค์–ด๋ณด๋Š” ์—ฐ์Šต์šฉ ๋ ˆํฌ์ง€ํ† ๋ฆฌ์ž…๋‹ˆ๋‹ค.
- `React`์™€ `CRA`๋ฅผ ์ด์šฉํ•ด์„œ ๊ฐ„๋‹จํ•œ ์Šคํƒ‘์›Œ์น˜๋ฅผ ๋งŒ๋“ค์–ด๋ณด๋Š” ์—ฐ์Šต์šฉ ๋ ˆํฌ์ง€ํ† ๋ฆฌ์ž…๋‹ˆ๋‹ค.
- React์˜ ๊ธฐ๋ณธ์ ์ธ ๋™์ž‘ ๋ฐฉ์‹์„ ์ตํžˆ๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค.
- CSS in JS ์ค‘์—์„œ๋„ Emotion์„ ์‚ฌ์šฉํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค.
- CSS in JS ์ค‘์—์„œ๋„ `Emotion`์„ ์‚ฌ์šฉํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค.
- ํด๋ฆญ์„ ์œ ์ง€ํ•˜๋ฉด ์ ์  ๋น ๋ฅด๊ฒŒ count๊ฐ€ ๋ณ€๋™ํ•ฉ๋‹ˆ๋‹ค.
- ์ „์—ญ์—์„œ ๊ด€๋ฆฌ๊ฐ€ ํ•„์š”ํ•œ ์ƒํƒœ๋ฅผ ์ฒ˜๋ฆฌํ•˜๊ธฐ ์œ„ํ•ด Redux๋ฅผ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค.
- ํ•จ์ˆ˜ํ˜• ์ปดํฌ๋„ŒํŠธ์™€ React hooks๋ฅผ ์ ๊ทน์ ์œผ๋กœ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค.
- ๊ธฐ์กด JS ๊ธฐ๋ฐ˜์˜ ํ”„๋กœ์ ํŠธ๋ฅผ TS ๊ธฐ๋ฐ˜ ํ”„๋กœ์ ํŠธ๋กœ ๋งˆ์ด๊ทธ๋ ˆ์ด์…˜ํ–ˆ์Šต๋‹ˆ๋‹ค.
- ์ „์—ญ์—์„œ ๊ด€๋ฆฌ๊ฐ€ ํ•„์š”ํ•œ ์ƒํƒœ๋ฅผ ์ฒ˜๋ฆฌํ•˜๊ธฐ ์œ„ํ•ด `Redux`๋ฅผ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค.
- ํ•จ์ˆ˜ํ˜• ์ปดํฌ๋„ŒํŠธ์™€ `React hooks`๋ฅผ ์ ๊ทน์ ์œผ๋กœ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค.
- ๊ธฐ์กด `JavaScript` ๊ธฐ๋ฐ˜์˜ ํ”„๋กœ์ ํŠธ๋ฅผ `TypeScript` ๊ธฐ๋ฐ˜ ํ”„๋กœ์ ํŠธ๋กœ ๋งˆ์ด๊ทธ๋ ˆ์ด์…˜ํ–ˆ์Šต๋‹ˆ๋‹ค.

<br />

@@ -135,6 +135,18 @@
- [x] svg ํŒŒ์ผ ๋ถˆ๋Ÿฌ์˜ฌ ๋•Œ ์ธ์‹ํ•˜์ง€ ๋ชปํ•˜๋Š” ๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐํ•˜๊ธฐ ์œ„ํ•œ ๋ ˆํผ๋Ÿฐ์Šค ์„ค์ • ๋ณ€๊ฒฝ (react-scripts ํƒ€์ž… ์˜์กด์„ฑ ๊ฐ€์ ธ์˜ค๊ธฐ)
- [x] ๊ธฐํƒ€ ํ™˜๊ฒฝ์„ค์ • ๋ณ€๊ฒฝ ๋ฐ ๋ฉ”ํƒ€๋ฐ์ดํ„ฐ ๋ณ€๊ฒฝ

### `22.03.24` - `v1.3.0`

- [x] 12์‹œ๊ฐ„์ œ ์‹œ๊ณ„์—์„œ 12์‹œ๊ฐ€ 00์‹œ๋กœ ํ‘œ์‹œ๋˜๋Š” ์˜ค๋ฅ˜ ์ˆ˜์ • [๐Ÿ‘‰ issue ๋งํฌ](https://github.com/alittlekitten/SsocoTimer/issues/34)
- [x] - - ๋ฒ„ํŠผ ๋งˆ์šฐ์Šค ์ปค์„œ pointer๋กœ ๋ฐ”๊พธ๊ธฐ [๐Ÿ‘‰ issue ๋งํฌ](https://github.com/alittlekitten/SsocoTimer/issues/35)
- [x] craco ์ ์šฉ์„ ํ†ตํ•œ `JSX pragma` ์ œ๊ฑฐ
- [x] craco ์ ์šฉ์„ ํ†ตํ•œ ์ ˆ๋Œ€๊ฒฝ๋กœ ์„ค์ •
- [x] ํ•„์š”์—†๋Š” logo.svgํŒŒ์ผ ์‚ญ์ œ
- [x] `padStart`๋ฅผ ํ†ตํ•œ ์ฝ”๋“œ ๋ฆฌํŒฉํ† ๋ง
- [x] `eslint`, `prettier` ์ ์šฉ ๋ฐ `@typescript-eslint` ์ ์šฉ
- [x] eslint ์„ค์ •์œผ๋กœ๋ถ€ํ„ฐ ๋ฐœ๊ฒฌ๋œ ๋ฏธ๋น„ํ•œ ํƒ€์ž… ๋ฐ ์ธํ„ฐํŽ˜์ด์Šค ๊ด€๋ จ ๋ฌธ์ œ ๋ฐ ์˜ค๋ฅ˜ ํ•ด์†Œ, any type ์ œ๊ฑฐ
- [x] ์žฌ์ƒ ๋ฒ„ํŠผ๊ณผ ์ผ์‹œ์ •์ง€ ๋ฒ„ํŠผ์„ ์กฐ๊ฑด๋ถ€ ๋ Œ๋”๋ง์œผ๋กœ ํ™”๋ฉด์— ๋„์›Œ์„œ UI/UX ๊ฐœ์„ 

<br />

## ๐Ÿ— ๊ณ ๋ฏผํ•œ ์ 
@@ -243,10 +255,22 @@
- ๋‹ค๋งŒ ๊ฐ๊ฐ์˜ ๋น„์ฆˆ๋‹ˆ์Šค ๋กœ์ง ๋‹จ์œ„๋„ ๋‹ค์†Œ ํฐ ๋ถ€๋ถ„์ด ์žˆ์–ด์„œ ์กฐ๊ธˆ ๋” ์„ธ์„ธํ•˜๊ฒŒ ๋‚˜๋ˆŒ ์˜ˆ์ •์ž…๋‹ˆ๋‹ค.
- ์ถ”๊ฐ€๋กœ ์ „์—ญ store์—์„œ useSelector๋กœ ๊ฐ€์ ธ์˜ค๋Š” ์ƒํƒœ๋ฅผ ๋ž˜ํ•‘ํ•˜๋Š” ์ปค์Šคํ…€ ํ›…์„ ์ƒ์„ฑํ•ด์„œ ์‚ฌ์šฉํ•  ์˜ˆ์ •์ž…๋‹ˆ๋‹ค.

### craco ๋„์ž…

- CRA ํ™˜๊ฒฝ์—์„œ๋Š” babel์ด๋‚˜ webpack์„ ๋”ฐ๋กœ ์„ค์ •ํ•˜์ง€ ์•Š์•„๋„ ์•Œ์•„์„œ ์„ค์ •ํ•ด์ฃผ๊ธฐ ๋•Œ๋ฌธ์— ๊ต‰์žฅํžˆ ํŽธ๋ฆฌํ•ฉ๋‹ˆ๋‹ค.
- ํ•˜์ง€๋งŒ ๊ทธ๋งŒํผ ์„ธ์„ธํ•œ ์„ค์ •์„ ํ•  ์ˆ˜ ์—†๋‹ค๋Š” ๋‹จ์ ์ด ์กด์žฌํ•ฉ๋‹ˆ๋‹ค.
- eject๋ฅผ ํ•  ์ˆ˜ ์žˆ์ง€๋งŒ, eject๋ฅผ ํ•˜๊ฒŒ ๋˜๋ฉด CRA๋ฅผ ์“ด ์˜๋ฏธ๊ฐ€ ํ‡ด์ƒ‰๋  ์ˆ˜ ์žˆ๋‹ค๊ณ  ํŒ๋‹จํ•˜์˜€์Šต๋‹ˆ๋‹ค.
- babel ์˜ต์…˜ ๋ณ€๊ฒฝ ๋ฐ ์ ˆ๋Œ€๊ฒฝ๋กœ ์„ค์ • ๋ณ€๊ฒฝ์„ ์œ„ํ•ด์„œ๋Š” ์šฐํšŒํ•  ์ˆ˜ ์žˆ๋Š” ๋‹ค๋ฅธ ๋ฐฉ๋ฒ•์ด ํ•„์š”ํ–ˆ๊ณ , ๊ทธ ๋ฐฉ๋ฒ•๋“ค ์ค‘ `craco`๋ฅผ ์„ ํƒํ–ˆ์Šต๋‹ˆ๋‹ค.
- `craco`๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ babel ์„ค์ •์„ ๋ณ€๊ฒฝํ•˜์—ฌ CRA, typescript ํ™˜๊ฒฝ์—์„œ JSX Pragma๋ฅผ ์ œ๊ฑฐํ•˜๋Š” ๊ณผ์ •์„ https://ssocoit.tistory.com/257์— ์ž์„ธํžˆ ๋‚จ๊ฒจ๋‘์—ˆ์Šต๋‹ˆ๋‹ค.

<br />

## ๐ŸŽž ์›€์งค

### ver 1.3.0

![Honeycam 2022-03-24 02-10-55](https://user-images.githubusercontent.com/14370441/159756849-bb103bcf-d5dc-4ac2-ac0f-7b731aef522a.gif)

### ver 1.1.1

![Honeycam 2022-02-26 03-44-57](https://user-images.githubusercontent.com/14370441/155770559-87298367-0722-44cc-b0b2-450e0c50b77a.gif)
23 changes: 23 additions & 0 deletions craco.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
const CracoAlias = require("craco-alias");

export default {
plugins: [
{
plugin: CracoAlias,
options: {
source: "tsconfig",
baseUrl: "./src",
tsConfigPath: "./tsconfig.alias.json",
},
},
],
babel: {
presets: [
[
"@babel/preset-react",
{ runtime: "automatic", importSource: "@emotion/react" },
],
],
plugins: ["@emotion/babel-plugin"],
},
};
Loading

0 comments on commit d401d7e

Please sign in to comment.