Skip to content

Commit e5ce37c

Browse files
committed
wip 전체 실습코드 작성중
1 parent 7eafbd8 commit e5ce37c

File tree

12 files changed

+869
-994
lines changed

12 files changed

+869
-994
lines changed

.eslintrc.js

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

README.md

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,26 @@
22

33
"프론트엔드 개발 환경의 이해" 강의 자료입니다.
44

5-
폴더는 다음과 같이 구성되어 있습니다.
5+
블로그 연재물 "[프론트엔드 개발 환경의 이해](http://jeonghwan-kim.github.io/series/2019/12/09/frontend-dev-env-npm.html)"를 읽어보시기 바랍니다.
6+
7+
## 폴더 구성
68

79
- src: 프론트엔드 소스
810
- server: API 서버 코드
9-
- resource: 강의 진행에 필요한 리소스(이미지)
11+
- resource: 강의 진행에 필요한 리소스(이미지, 코드, 리액트 코드 )
1012

11-
블로그 연재물 "[프론트엔드 개발 환경의 이해](http://jeonghwan-kim.github.io/series/2019/12/09/frontend-dev-env-npm.html)"를 읽어보시기 바랍니다.
13+
## 브랜치 목록
1214

1315
강의 진행에 따라 적절한 브랜치로 이동합니다.
1416

15-
브랜치 목록
16-
- 2.webpack/2.entry-output
17+
- 1-webpack/1-entry: 웹팩 엔트리/아웃풋 실습
18+
- 1-webpack/2-loader: 웹팩 로더 실습
19+
- 1-webpack/3-plugin: 웹팩 플러그인 실습
20+
- 2-babel/1-babel: 바벨 실습
21+
- 3-lint/1-eslint: 린트 실습
22+
- 3-lint/2-prettier: 프리티어 실습
23+
- 4-webpack/1-dev-server: 웹팩 개발 서버 실습
24+
- 4-webpack/2-hot: 웹팩 핫로딩 실습
25+
- 4-webpack/3-optimazation: 웹팩 최적화 실습
26+
-
27+
- master: 최종 결과물

babel.config.js

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,14 @@
1-
const presets = [
2-
[
3-
"@babel/env",
4-
{
1+
module.exports = {
2+
presets: [
3+
['@babel/preset-env', {
54
targets: {
6-
edge: "17",
7-
firefox: "60",
8-
chrome: "67",
9-
safari: "11.1",
10-
ie: "11",
5+
chrome: '79',
6+
ie: '11', // npm i regenerator-runtime 필요함
117
},
12-
useBuiltIns: "usage",
13-
},
8+
useBuiltIns: 'usage', // 폴리필 사용 방식 지정
9+
corejs: { // 폴리필 버전 지정
10+
version: 2
11+
}
12+
}],
1413
],
15-
];
16-
17-
module.exports = {
18-
presets
19-
};
14+
};

mocks/api/history/GET.json

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,4 @@
11
[
2-
{
3-
"keyword": "검색기록2",
4-
"date": "12.03"
5-
},
6-
{
7-
"keyword": "검색기록1",
8-
"date": "12.02"
9-
},
10-
{
11-
"keyword": "검색기록0",
12-
"date": "12.01"
13-
}
2+
{ "keyword": "검색이력 1", "date": "2019-12-02" },
3+
{ "keyword": "검색이력 2", "date": "2019-12-01" }
144
]

mocks/api/keywords/GET.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[
2+
{ "keyword": "이탈리아" },
3+
{ "keyword": "세프의요리" },
4+
{ "keyword": "제철" },
5+
{ "keyword": "홈파티 " }
6+
]

mocks/api/search/GET.json

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
[{
2-
"id": 1,
3-
"name": "[버거] 치즈버거처럼 생긴 새우버거",
4-
"image": "https://images.unsplash.com/photo-1547584370-2cc98b8b8dc8?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=800&q=60"
5-
}, {
6-
"id": 2,
7-
"name": "[샐러드] 맛있는 색깔의 콥셀러드",
8-
"image": "https://images.unsplash.com/photo-1512621776951-a57141f2eefd?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=800&q=60"
9-
}, {
10-
"id": 3,
11-
"name": "[피자] 썸네일 주소가 잘못된 상품",
12-
"image": "http://foo.bar/image.jpg"
13-
}]
1+
[
2+
{
3+
"id": 1,
4+
"name": "[햅버거] 수제버거",
5+
"image": "https://images.unsplash.com/photo-1549611016-3a70d82b5040?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1432&q=80"
6+
},
7+
{
8+
"id": 2,
9+
"name": "[키친르쎌] 이탈리아 파티 세트 3~4인분",
10+
"image": "https://cdn.bmf.kr/_data/product/H503E/300d931e3b8252ed628b6a3c2f56936b.jpg"
11+
}
12+
]

0 commit comments

Comments
 (0)