Skip to content

Translate 3 files to ko - out, outDir, outFile #41

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 7 commits into from
Feb 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions docs/tsconfig/ko/options/out.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
display: "Out"
oneline: "Deprecated setting. Use `outFile` instead."
---

대신에 [outFile](#outFile) 을 사용하세요.

`out` 옵션은 예측 불가능하거나 일관되지 않은 방식으로 최종 파일 위치를 계산합니다.
이 옵션은 이전 버전과의 호환성을 위해 유지될 뿐 사용을 권장하지 않습니다.
39 changes: 39 additions & 0 deletions docs/tsconfig/ko/options/outDir.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
display: "Out Dir"
oneline: "Specify an output folder for all emitted files."
---

만일 지정하면, `.js` (이 외에도 `.d.ts`, `.js.map`, 등.) 파일이 지정한 디렉터리로 배출됩니다.
원본 파일의 디렉터리 구조는 보존됩니다; 계산된 루트가 예상과 다를 경우 [rootDir](#rootDir) 을 보세요.

만일 지정하지 않으면, `.js` 파일은 `.ts` 파일이 생성된 곳과 동일한 디렉터리에 생성됩니다:

```sh
$ tsc

example
├── index.js
└── index.ts
```

다음과 같이 `tsconfig.json` 을 작성할 경우:

```json tsconfig
{
"compilerOptions": {
"outDir": "dist"
}
}
```

이러한 설정으로 `tsc`를 실행하면 파일이 지정한 `dist` 폴더로 이동합니다:

```sh
$ tsc

example
├── dist
│ └── index.js
├── index.ts
└── tsconfig.json
```
11 changes: 11 additions & 0 deletions docs/tsconfig/ko/options/outFile.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
display: "Out File"
oneline: "Specify a file that bundles all outputs into one JavaScript file. If `declaration` is true, also designates a file that bundles all .d.ts output."
---

만일 지정하면, 모든 _전역_ (비모듈) 파일이 지정된 단일 출력 파일에 연결됩니다.

만일 `module` 이 `system` 또는 `amd` 일 경우, 모든 모듈 파일도 모든 전역 컨텐츠 뒤에 이 파일에 연결됩니다.

참고: `outFile` 은 `module` 이 `None` 이거나, `System`, `AMD` 가 아니면 _사용할 수 없습니다_.
이 옵션은 bundle CommonJS 또는 ES6 모듈에 _사용할 수 없습니다_.