Skip to content

Babel with typescript issue118 #138

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Aug 13, 2020
Merged

Babel with typescript issue118 #138

merged 6 commits into from
Aug 13, 2020

Conversation

seohyun0120
Copy link
Contributor

ref #118

내용이 많지 않아 한 번에 번역해보았습니다.

리뷰 부탁드립니다 (_ _)

@bumkeyy bumkeyy requested review from bumkeyy, dvlprsh and guyeol August 12, 2020 15:16
@bumkeyy bumkeyy added this to the v2 번역 milestone Aug 12, 2020
@bumkeyy bumkeyy linked an issue Aug 12, 2020 that may be closed by this pull request

When making a modern JavaScript project, you might ask yourself what the right way to convert files from TypeScript to JavaScript.
모던 JavaScript 프로젝트를 만들 때, TypeScript에서 JavaScript로 파일을 변환하는 올바른 방법이 무엇일까 고민하게 될 것입니다.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
모던 JavaScript 프로젝트를 만들 때, TypeScript에서 JavaScript로 파일을 변환하는 올바른 방법이 무엇일까 고민하게 될 것입니다.
모던 JavaScript 프로젝트를 만들 때, TypeScript에서 JavaScript 파일로 변환하는 올바른 방법에 대해 고민할 수 있습니다.

[제안]

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

제안해주신 방법이 더 좋은 것 같아 수정했습니다 :)


A lot of the time the answer is _"it depends"_, or _"someone may have decided for you"_ depending on the project. If you are building your project with an existing framework like [tsdx](https://www.npmjs.com/package/tsdx), [Angular](https://angular.io/), [NestJS](https://nestjs.com/) or any framework mentioned in the [Getting Started](/docs/home) then this decision is handled for you.
많은 경우 그 대답은 프로젝트에 따라 _"~에 달려있다"_ 또는 _"누군가 여러분 대신 결정했을지도 모른다`_ 가 될 것입니다. 만약 [tsdx](https://www.npmjs.com/package/tsdx), [Angular](https://angular.io/), [NestJS](https://nestjs.com/)와 같은 기존 프레임워크 또는 [Getting Started](/docs/home)에 언급된 프레임워크를 사용하여 프로젝트를 만들고 있다면 결정은 여러분의 손에 달려있습니다.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
많은 경우 그 대답은 프로젝트에 따라 _"~에 달려있다"_ 또는 _"누군가 여러분 대신 결정했을지도 모른다`_ 가 될 것입니다. 만약 [tsdx](https://www.npmjs.com/package/tsdx), [Angular](https://angular.io/), [NestJS](https://nestjs.com/)와 같은 기존 프레임워크 또는 [Getting Started](/docs/home)에 언급된 프레임워크를 사용하여 프로젝트를 만들고 있다면 결정은 여러분의 손에 달려있습니다.
많은 경우 그 대답은 프로젝트에 따라 _"~에 달려있다"_ 또는 _"누군가 여러분 대신 결정했을지도 모른다`_ 가 될 것입니다. 만약 [tsdx](https://www.npmjs.com/package/tsdx), [Angular](https://angular.io/), [NestJS](https://nestjs.com/)와 같은 기존 프레임워크 또는 [Getting Started](/docs/home)에 언급된 프레임워크를 사용하여 프로젝트를 만들고 있다면 결정은 여러분 손에 달려있습니다.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

제안해주신 방법이 더 좋은 것 같아 수정했습니다 :)

@seohyun0120
Copy link
Contributor Author

몇 가지 질문이 있는데 이슈 남기긴 애매해서 PR에 코멘트 남깁니다. 🙇‍♀️

  1. 14번째 줄, heuristic 어떻게 번역해야할지? 현재는 휴로스틱으로 적었습니다.
  2. you를 번역하기 애매해서 생략하거나 여러분으로 번역했는데 괜찮을까요?
  3. 23번째 줄, hybrid approach 어떻게 번역해야할지? 현재는 복합 식 접근 방식이라고 적었는데 좀 매끄럽지않은 느낌이 있네요.


## Babel for transpiling, `tsc` for types
## 트랜스파일링은 Babel, 타입은 `tsc`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
## 트랜스파일링은 Babel, 타입은 `tsc`
## 트랜스파일링은 Babel, 타입은 `tsc` (Babel for transpiling, `tsc` for types)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

추가했습니다.


#### Type Checking and d.ts file generation
#### 타입 검사와 d.ts 파일 생성
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
#### 타입 검사와 d.ts 파일 생성
#### 타입 검사와 d.ts 파일 생성 (Type Checking and d.ts file generation)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

추가했습니다.


By using babel's support for TypeScript, you get the ability to work with existing build pipelines and are more likely to have a faster JS emit time because Babel does not type check your code.
Babel의 TypeScript 지원을 사용하면 기존 빌드 파이프라인으로 작업할 수 있고 Babel이 코드 타입을 검사하지 않기 때문에 JS 출력 시간이 더 빨라질 가능성이 높습니다.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Babel의 TypeScript 지원을 사용하면 기존 빌드 파이프라인으로 작업할 수 있고 Babel이 코드 타입을 검사하지 않기 때문에 JS 출력 시간이 더 빨라질 가능성이 높습니다.
Babel은 TypeScript를 지원하기 때문에, 기존 빌드 파이프라인으로 작업할 수 있고 Babel이 코드 타입을 검사하지 않기 때문에 JS 출력 시간이 더 빨라질 수 있습니다.

[제안]

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

제안해주신 방법이 더 좋은 것 같아 수정했습니다 :)

Copy link
Member

@bumkeyy bumkeyy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다 👍

@bumkeyy
Copy link
Member

bumkeyy commented Aug 12, 2020

몇 가지 질문이 있는데 이슈 남기긴 애매해서 PR에 코멘트 남깁니다. 🙇‍♀️

  1. 14번째 줄, heuristic 어떻게 번역해야할지? 현재는 휴로스틱으로 적었습니다.
  2. you를 번역하기 애매해서 생략하거나 여러분으로 번역했는데 괜찮을까요?
  3. 23번째 줄, hybrid approach 어떻게 번역해야할지? 현재는 복합 식 접근 방식이라고 적었는데 좀 매끄럽지않은 느낌이 있네요.
  1. 휴리스틱도 나쁘지 않은 것 같은데 의역해서 직관적인 방법은 어떨까요?
  2. 저 맥락에서는 괜찮은 것 같아요 :)
  3. 복합 접근 방식 은 어떤가요?

@guyeol @dvlprsh

@seohyun0120
Copy link
Contributor Author

몇 가지 질문이 있는데 이슈 남기긴 애매해서 PR에 코멘트 남깁니다. 🙇‍♀️

  1. 14번째 줄, heuristic 어떻게 번역해야할지? 현재는 휴로스틱으로 적었습니다.
  2. you를 번역하기 애매해서 생략하거나 여러분으로 번역했는데 괜찮을까요?
  3. 23번째 줄, hybrid approach 어떻게 번역해야할지? 현재는 복합 식 접근 방식이라고 적었는데 좀 매끄럽지않은 느낌이 있네요.
  1. 휴리스틱도 나쁘지 않은 것 같은데 의역해서 직관적인 방법은 어떨까요?
  2. 저 맥락에서는 괜찮은 것 같아요 :)
  3. 복합 접근 방식 은 어떤가요?

@guyeol @dvlprsh

  1. 직관적인 방법 좋은 것 같아요. 두 분 의견도 들어보고 반영하겠습니다.
  2. 🆗
  3. 복합 접근 방식으로 수정했습니다 :)

@dvlprsh
Copy link
Member

dvlprsh commented Aug 12, 2020

@seohyun0120 @bumkeyy

  1. 휴리스틱도 나쁘지 않은 것 같은데 의역해서 직관적인 방법은 어떨까요?

직관적인 방법 좋습니다 👍

Copy link
Member

@dvlprsh dvlprsh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다 👍 👍

* Is your build output mostly the same as your source input files? Use `tsc`
* Do you need a build pipeline with multiple potential outputs? Use `babel` for transpiling and `tsc` for type checking
* 빌드 출력 결과와 소스 입력 파일이 거의 비슷한가요? `tsc`를 사용하세요.
* 잠재 산출 결과물을 내는 빌드 파이프라인이 필요하신가요? `babel`로 트랜스파일링 (transpling)을 하고, `tsc`로 타입을 검사하세요.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* 잠재 산출 결과물을 내는 빌드 파이프라인이 필요하신가요? `babel`로 트랜스파일링 (transpling)을 하고, `tsc`로 타입을 검사하세요.
* 여러 잠재적인 결과물을 내는 빌드 파이프라인이 필요하신가요? `babel`로 트랜스파일링 하고, `tsc`로 타입을 검사하세요.

multiple 이란 단어를 명시적으로 번역해 주는 게 좋은 것 같은데 어떤가요?
추가로 transpiling 은 익숙한 용어이기 때문에 굳이 원어를 안 써도 될 거 같기도 합니다!

Copy link
Contributor Author

@seohyun0120 seohyun0120 Aug 13, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

제안해주신 방법이 더 좋은 것 같아 수정했습니다 :)
transpling은 원어 지웠습니다~

@guyeol
Copy link
Member

guyeol commented Aug 13, 2020

휴리스틱 or 직관적인 방법 둘 다 좋아보입니다 편하신대로 하시면 될 거 같아요 👍

@seohyun0120
Copy link
Contributor Author

휴리스틱 or 직관적인 방법 둘 다 좋아보입니다 편하신대로 하시면 될 거 같아요 👍

직관적인 방법으로 수정했습니다 :)
@bumkeyy @dvlprsh @guyeol

@dvlprsh dvlprsh merged commit 47d1a86 into typescript-kr:master Aug 13, 2020
@seohyun0120 seohyun0120 deleted the babel-with-typescript-issue118 branch August 13, 2020 14:41
@dvlprsh
Copy link
Member

dvlprsh commented Aug 13, 2020

@all-contributors please add @seohyun0120 for translation

@allcontributors
Copy link
Contributor

@dvlprsh

I've put up a pull request to add @seohyun0120! 🎉

dvlprsh pushed a commit that referenced this pull request Aug 15, 2020
* 1차 번역

* 원문 삭제, 더 매끄럽게 번역

* 맞춤법 수정

* Babel with typescript issue118 (#138)

* 영어 1차 번역

* 원문 삭제, 더 매끄러운 번역체로 수정

* 매끄러운  번역체로 추가 수정

* 1차 수정

* 2차 수정

* 3차 수정

* docs: add seohyun0120 as a contributor (#140)

* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>

* 1차 번역

* 원문 삭제, 더 매끄럽게 번역

* 맞춤법 수정

* ts twoslash가 제대로 작동하지 않는 문제 수정 (twoslash 삭제)

* 2차 수정

* contributors 정보 수정

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
bumkeyy pushed a commit that referenced this pull request Aug 18, 2020
* translate TS for JS Programmers(Defining Types)

* Literal types issue115 (#139)

* 1차 번역

* 원문 삭제, 더 매끄럽게 번역

* 맞춤법 수정

* Babel with typescript issue118 (#138)

* 영어 1차 번역

* 원문 삭제, 더 매끄러운 번역체로 수정

* 매끄러운  번역체로 추가 수정

* 1차 수정

* 2차 수정

* 3차 수정

* docs: add seohyun0120 as a contributor (#140)

* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>

* 1차 번역

* 원문 삭제, 더 매끄럽게 번역

* 맞춤법 수정

* ts twoslash가 제대로 작동하지 않는 문제 수정 (twoslash 삭제)

* 2차 수정

* contributors 정보 수정

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>

* specify node version to 12.18.2

* npm audit

* translate TS for JS Programmers(Defining Types)

* 리뷰에 따라 내용 수정

* fix push conflict

Co-authored-by: Seohyun Yoon <[email protected]>
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
Co-authored-by: YeonJuan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Babel with TypeScript 번역
4 participants