File tree 2 files changed +13
-0
lines changed
2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -156,6 +156,18 @@ $ cat tsconfig.json
156
156
#@end
157
157
// }
158
158
159
+ == 試しにコンパイルしてみる
160
+
161
+ tsconfig.json の作成ができたら、後はコンパイルするだけです。
162
+ コンパイルの方法はtsconfig.json があれば、どんな環境でも@<code>{--project}オプションを使うだけです。
163
+ それ以外のオプションについてはtsconfig.json にすべて記述されています。
164
+ 具体的に、@<code>{tsc -p ./}または@<code>{tsc -p ./tsconfig.json }とします。
165
+
166
+ tsconfig.json ではない名前のファイルを使って、プロジェクト内に複数のビルド構成を作ることもできます。
167
+ しかし、その場合エディタ・IDE側がその設定をうまくハンドリングしてくれない場合が多いため、基本的には努力して1 プロジェクト1tsconfig.json にするようにしましょう。
168
+
169
+ gulpやgruntなどのタスクランナーを使う場合でも、tsconfig.json を用意し@<code>{--project}オプションのみでコンパイルが通せる環境を維持するのがよいでしょう。
170
+
159
171
#@# TODO 各オプションの細かい解説は@<chapref>{learning-tsc}を参照してください
160
172
#@# TODO allowJsについてどこかに書きたい
161
173
Original file line number Diff line number Diff line change 5
5
abstract
6
6
enum
7
7
const enum
8
+ decorator
8
9
// }
9
10
10
11
#@# prh:disable
You can’t perform that action at this time.
0 commit comments