- TypeScript part1
585 :デフォルトの名無しさん[sage]:2014/07/10(木) 14:00:16.40 ID:0b9K59t8 - 10ファイル各200行程度に分割したソースをコンパイルすると3〜5秒くらいかかる
このくらい2秒以下で終わるようにしてくれ
|
- TypeScript part1
588 :デフォルトの名無しさん[sage]:2014/07/10(木) 16:29:32.89 ID:0b9K59t8 - >>586
そういえばwatchはコンパイラじゃなくてGruntでやってたからコンパイラにやらせて計ってみる CPU2コア2スレ2.9GHzメモリ8GB
|
- TypeScript part1
589 :デフォルトの名無しさん[sage]:2014/07/10(木) 16:50:16.57 ID:0b9K59t8 - watchオプションで監視したら1秒になったthx
|
- TypeScript part1
590 :デフォルトの名無しさん[sage]:2014/07/10(木) 18:36:28.19 ID:0b9K59t8 - すまんやっぱだめだ
watchだと変更されたファイルだけコンパイルされて変更のないファイルが抜ける テストは結合する前にやれということかこれは
|
- TypeScript part1
593 :デフォルトの名無しさん[sage]:2014/07/10(木) 20:38:09.52 ID:0b9K59t8 - >>591
依存関係は親は書けても子は書けないから親の変更だと子抜きで出力されるよね? 親クラスと子クラスを別ファイルに書いて1つのファイルに出力したいときに親だけ変更すると子抜きで親だけが出力されてしまうといった具合
|
- TypeScript part1
595 :デフォルトの名無しさん[sage]:2014/07/10(木) 21:49:42.60 ID:0b9K59t8 - tscじゃなくてgrunt-typescriptのsrcとwatchオプションでやってる
tscでも試したかったけどなんでか--watchがなくてできなかった Windowsなのがいかんのか… Version 1.0.1.0 Syntax: tsc [options] [file ..] Examples: tsc hello.ts tsc --out foo.js foo.ts tsc @args.txt Options: --codepage NUMBER Specify the codepage to use when opening sourcefiles. -d, --declaration Generates corresponding .d.ts file. -h, --help Print this message. --mapRoot LOCATION Specifies the location where debugger should locate map files instead of generated locations. -m KIND, --module KIND Specify module code generation: 'commonjs' or 'amd' --noImplicitAny Warn on expressions and declarations with an implied 'any' type. --out FILE Concatenate and emit output to single file. --outDir DIRECTORY Redirect output structure to the directory. --removeComments Do not emit comments to output. --sourcemap Generates corresponding .map file. --sourceRoot LOCATION Specifies the location where debugger should locate TypeScript files instead of source locations. -t VERSION, --target VERSION Specify ECMAScript target version: 'ES3' (default), or 'ES5' -v, --version Print the compiler's version: 1.0.1.0 @<file> Insert command line options and files from a file.
|
- TypeScript part1
596 :デフォルトの名無しさん[sage]:2014/07/10(木) 22:31:07.60 ID:0b9K59t8 - テスト鯖のLinuxにインストールしたら--watchあるので窓環かな、窓だとinotify使えないし
grunt-typescriptのwatchはtscに流してるのかと思ってたけどソース見たら独自実装ぽいので ソース指定無視するのはtypescriptじゃなくてgrunt-typescriptの問題ぽいです お騒がせしました
|
- TypeScript part1
598 :デフォルトの名無しさん[sage]:2014/07/10(木) 23:36:28.23 ID:0b9K59t8 - >>597
Winで--watch使えると知れたのは救われます もっかいインストールしなおして調べてみます
|