feat: Add React&Redux boilerplate#1
Conversation
dongsik-yoo
left a comment
There was a problem hiding this comment.
[01/02] 수고하셨습니다. 설정 파일 및 README 관련은 공통적인 것이 많아서 따로 작성하지 않고 es6 보일러플레이트의 리뷰를 참고하시면 되겠습니다.
jinwoo-kim-nhn/es6-boilerplate#1
- .eslintrc
- .prettierrc
- webpack.config.js
- package.json
- README.md
- example/index.html
| "@babel/env", | ||
| { | ||
| "modules": "false", | ||
| "targets": { |
There was a problem hiding this comment.
진우전임 작업한 쪽하고 스타일이 다른데 논의해서 통일하시죠.
{
"presets": [
["@babel/env", {
"modules": "umd",
"targets": {
"browsers": ["last 2 versions", "not ie <= 8"]
}
}]
],
"plugins": ["@babel/plugin-proposal-object-rest-spread"]
}| @@ -0,0 +1,37 @@ | |||
| module.exports = { | |||
There was a problem hiding this comment.
다른 보일러플레이트와 의논해서 스타일 맞추어요.
https://github.com/jinwoo-kim-nhn/es6-boilerplate/blob/540c3924a379444596f91483bd09d9d31cc712f6/.eslintrc.js
| node: true, | ||
| es6: true | ||
| }, | ||
| extends: ['tui', 'plugin:react/recommended', 'plugin:prettier/recommended'], |
There was a problem hiding this comment.
| extends: ['tui', 'plugin:react/recommended', 'plugin:prettier/recommended'], | ||
| plugins: ['react', 'prettier'], | ||
| rules: { | ||
| indent: [ |
There was a problem hiding this comment.
네. 여기도 react plugin 제외하고 ES6와 동일한데요, 논의후 수정하겠습니다.
| @@ -0,0 +1,8 @@ | |||
| { | |||
| "trailingComma": "none", | |||
There was a problem hiding this comment.
여기도 디폴트값이면 제거하고, 필요한 부분은 주석 가이드로 대체해요.
There was a problem hiding this comment.
별도의 주석 가이드가 필요한가요?
es6보일러플레이트에서 그대로 가져왔는데 이부분은 논의해서 제거하거나 필요한부분만 남기겠습니다.
| "build": "webpack --mode production", | ||
| "dev": "webpack-dev-server --open --mode development" | ||
| }, | ||
| "author": "Junghwan-Park", |
| "scripts": { | ||
| "build-dev": "webpack --mode development", | ||
| "build": "webpack --mode production", | ||
| "dev": "webpack-dev-server --open --mode development" |
| "webpack-dev-server": "^3.1.10" | ||
| }, | ||
| "dependencies": { | ||
| "@babel/polyfill": "^7.0.0", |
| @@ -0,0 +1,21 @@ | |||
| /** | |||
There was a problem hiding this comment.
파일에 배너가 있는 것은 전체적으로 일관성 맞출게요. 추후 결정되면 공유하겠습니다.
| /> | ||
| <br /> | ||
| <button type="button" className="button" onClick={this.onClickApplyButton.bind(this)}> | ||
| 적용 |
| export default combineReducers({ | ||
| greetingText, | ||
| userName | ||
| }); |
There was a problem hiding this comment.
보일러플레이트를 어디까지 제공해야 할 지가 고민이네요.
combineReducers 예제까지 제공하는 게 약간 과할 것 같긴 합니다.
| <html> | ||
| <head> | ||
| <meta charset="UTF-8"> | ||
| <title>Development</title> |
There was a problem hiding this comment.
넵.
다른 타이틀로 수정하라는 말씀이죠?
|
고생많으셨어요. js 소스에는 별 문제가 없구요, |
No description provided.