BT

如何利用碎片时间提升技术认知与能力? 点击获取答案

WebStorm 10支持TypeScript 1.4到JavaScript的实时编译

| 作者 Abel Avram 关注 10 他的粉丝 ,译者 刘振涛 关注 23 他的粉丝 发布于 2015年4月11日. 估计阅读时间: 2 分钟 | QCon上海2018 关注大数据平台技术选型、搭建、系统迁移和优化的经验。

JetBrains WebStorm 10支持在编辑代码的同时将TypeScript 1.4代码编译为JavaScript。新版本增加了对联合类型、模块、修饰符以及let和const关键字的支持。它还提供一个应用依赖图表、source maps以及一个V8的CPU和内存分析器。

WebStorm 10中最重要的一个特性是改善了对于TypeScript 1.4的支持,编辑器内置一个可以在编辑代码的同时将TypeScript转译为等效JavaScript的编译器,任何语法错误都会被标示下划线。同时,WebStorm支持TypeScript 1.4的联合类型以及let和const关键字,同时还支持预计将在TypeScript 1.5发布的模块和修饰符,他们分别属于ECMAScript 6和ECMAScript 7中提议的新特性。

据JetBrains说,他们已经“重写了对于JavaScript的支持”,可以更快速地进行代码补全和高亮。他们还为编辑器增加一个“专注”模式,在这个模式下移除了所有的工具条和菜单栏,仅留下文本文件区域用于编码。他们添加了一个新的设置选项,允许开发者同时编辑HTML的开始和闭合标签。

通过spy-js,开发者可以创建并且可视化应用依赖图表,描绘出不同的源文件和函数调用之间的关系。spy-js同时也支持source maps跟踪从JavaScript代码块到原始的TypeScript、CoffeeScript或者ES 6的代码执行路径。

WebStorm 10可以剖析Node.js应用运行在V8上的CPU消耗,所以开发者可以利用它找出特别消耗CPU性能的部分。它同时也可以剖析堆的状况,呈现出每一个对象的内存消耗。

最后,我们希望提一下更棒的Grunt集成,在新版本提供了与Gulp一致的体验。WebStorm 10内置了Dart静态代码分析器,可以提供错误和警告概要。

查看英文原文:WebStorm 10 Compiles TypeScript 1.4 to JavaScript on the Fly


感谢邵思华对本文的审校。

给InfoQ中文站投稿或者参与内容翻译工作,请邮件至editors@cn.infoq.com。也欢迎大家通过新浪微博(@InfoQ@丁晓昀),微信(微信号:InfoQChina)关注我们,并与我们的编辑和其他读者朋友交流。

评价本文

专业度
风格

您好,朋友!

您需要 注册一个InfoQ账号 或者 才能进行评论。在您完成注册后还需要进行一些设置。

获得来自InfoQ的更多体验。

告诉我们您的想法

允许的HTML标签: a,b,br,blockquote,i,li,pre,u,ul,p

当有人回复此评论时请E-mail通知我

开发者可以创建并且可视化应用依赖图表 by 大范甘迪 大范甘迪

通过spy-js,开发者可以创建并且可视化应用依赖图表,描绘出不同的源文件和函数调用之间的关系。spy-js同时也支持source maps跟踪从JavaScript代码块到原始的TypeScript、CoffeeScript或者ES 6的代码执行路径。
www.huilai88.com/com/rtrfj44268
www.huilai88.com/com/xxzdf22086
www.huilai88.com/com/nxvjz08002
www.huilai88.com/com/trdtx42042
www.huilai88.com/com/tlnpt60426
www.huilai88.com/com/hprrt84840
www.huilai88.com/com/tfpdf60022
www.huilai88.com/com/fpxlp64880
www.huilai88.com/com/tprfv04624
www.huilai88.com/com/zrxzb06642
www.huilai88.com/com/dhznr84282
www.huilai88.com/com/znfzp00802
www.huilai88.com/com/jjrtj40020
www.huilai88.com/com/rvnbf64422
www.huilai88.com/com/zfjzp62442
www.huilai88.com/com/tfxlb24280
www.huilai88.com/com/bjhvl60262
www.huilai88.com/com/zlzbd00602
www.huilai88.com/com/bnllb88660
www.huilai88.com/com/hxjxn20642
www.huilai88.com/com/brddt04840
www.huilai88.com/com/ldtvx82000
www.huilai88.com/com/lrbpt24084
www.huilai88.com/com/rjvjn04486
www.huilai88.com/com/znznr88822
www.huilai88.com/com/nzvjn66862
www.huilai88.com/com/xxjjn48446
www.huilai88.com/com/njthx66444
www.huilai88.com/com/rzvjn04028
www.huilai88.com/com/frndh28206
www.huilai88.com/com/hthvl88040
www.huilai88.com/com/bnxlp84668
www.huilai88.com/com/vnjxz60026
www.huilai88.com/com/ztllp06208
www.huilai88.com/com/pfxlp48642
www.huilai88.com/com/bpfvl24862
www.huilai88.com/com/nhftj66206
www.huilai88.com/com/zrdrh02848
www.huilai88.com/com/txvvl40240
www.huilai88.com/com/lptjn00628
www.huilai88.com/com/rzftj22206
www.huilai88.com/com/dflzp66462
www.huilai88.com/com/btlzd22846
www.huilai88.com/com/vfbdv04448
www.huilai88.com/com/xdvzp42460
www.huilai88.com/com/pplzp64800
www.huilai88.com/com/pzrfj84422
www.huilai88.com/com/fhvjz04646
www.huilai88.com/com/ztlzp00204
www.huilai88.com/com/hnftj48880
www.huilai88.com/com/bfxlp66848
www.huilai88.com/com/dphjz64880
www.huilai88.com/com/rlvjn04640
www.huilai88.com/com/phlbf00646
www.huilai88.com/com/bzrfv46042
www.huilai88.com/com/lzxlp64206
www.huilai88.com/com/fzrfv00608
www.huilai88.com/com/lhxxz62808
www.huilai88.com/com/ldftv66004
www.huilai88.com/com/tnzzd00228
www.huilai88.com/com/rhnbf02604
www.huilai88.com/com/pbjnr22046
www.huilai88.com/com/rvnbf86206
www.huilai88.com/com/jbzbd64868
www.huilai88.com/com/hnznd64620
www.huilai88.com/com/zjdhl06000
www.huilai88.com/com/xzrfj68048
www.huilai88.com/com/ptlzd62006
www.huilai88.com/com/xjhvz02066
www.huilai88.com/com/pvxrh64840
www.huilai88.com/com/rdndf40842
www.huilai88.com/com/zphvz48060
www.huilai88.com/com/ftznr26042
www.huilai88.com/com/jlpfv06648
www.huilai88.com/com/tjfvz88064
www.huilai88.com/com/rpndh86206
www.huilai88.com/com/dhllp48842
www.huilai88.com/com/njdfv48686
www.huilai88.com/com/dlrzp64048
www.huilai88.com/com/tzjxn60020
www.huilai88.com/com/hjbpt04846
www.huilai88.com/com/hxpdh66884
www.huilai88.com/com/htlzp46480
www.huilai88.com/com/tldrv40462
www.huilai88.com/com/jbznr68208
www.huilai88.com/com/lnpdf44220
www.huilai88.com/com/blxlp44646
www.huilai88.com/com/pfdrv62888
www.huilai88.com/com/hpnbf84642
www.huilai88.com/com/hnbpf62608
www.huilai88.com/com/vphvl28424
www.huilai88.com/com/ltrfv44626
www.huilai88.com/com/htllp06200
www.huilai88.com/com/hlvjd40266
www.huilai88.com/com/rdjxn82680
www.huilai88.com/com/hhznr24668
www.huilai88.com/com/lbvln40642
www.huilai88.com/com/rvrrh46666
www.huilai88.com/com/hrbhx42844
www.huilai88.com/com/bxdrh86820
www.huilai88.com/com/nbfrh64646
www.huilai88.com/com/xzprv80808
www.huilai88.com/com/jznrx66640
www.huilai88.com/com/lnthl24022
www.huilai88.com/com/zxpdt60462
www.huilai88.com/com/xftvn46446
www.huilai88.com/com/tzrfj66422
www.huilai88.com/com/flxlp82646
www.huilai88.com/com/njrfj46262
www.huilai88.com/com/rlbnf00086
www.huilai88.com/com/zjxln26244
www.huilai88.com/com/pvfhj84642
www.huilai88.com/com/fnxxb08066
www.huilai88.com/com/hzxlp60046
www.huilai88.com/com/nrbpf84066
www.huilai88.com/com/bnftj42884
www.huilai88.com/com/rbhvl02422
www.huilai88.com/com/bvthx28444
www.huilai88.com/com/tnbbr68688
www.huilai88.com/com/djhxn04004
www.huilai88.com/com/tlvvx28622
www.huilai88.com/com/rhlzb24602
www.huilai88.com/com/pbhhl06208
www.huilai88.com/com/tlxlb82042
www.huilai88.com/com/dnftx42864
www.huilai88.com/com/trjxn02804
www.huilai88.com/com/ztjxn08684
www.huilai88.com/com/ftftj60400
www.huilai88.com/com/ztxln84640
www.huilai88.com/com/ntznd84664
www.huilai88.com/com/lzrfv86044
www.huilai88.com/com/dzxlp22044
www.huilai88.com/com/tljlb22488
www.huilai88.com/com/pvnbf84086
www.huilai88.com/com/jrjxb48442
www.huilai88.com/com/nbfvj84824
www.huilai88.com/com/plthz64462
www.huilai88.com/com/hrfhj26828
www.huilai88.com/com/tdvjz44628
www.huilai88.com/com/dbxpr60204
www.huilai88.com/com/vhftj64480
www.huilai88.com/com/jrjxb48048
www.huilai88.com/com/rhzzb80444
www.huilai88.com/com/hjhvd84246
www.huilai88.com/com/phpdt46046
www.huilai88.com/com/xpnnr68422
www.huilai88.com/com/plvxn86800
www.huilai88.com/com/vtznp28002
www.huilai88.com/com/rhznr80640
www.huilai88.com/com/vhbpt24226
www.huilai88.com/com/lxbpf84604
www.huilai88.com/com/bpnbf20880
www.huilai88.com/com/xxpvb62022
www.huilai88.com/com/pxjnp40626
www.huilai88.com/com/phxxb48228
www.huilai88.com/com/thfjb88482
www.huilai88.com/com/zdjzp40686
www.huilai88.com/com/rvhvz68062
www.huilai88.com/com/hflnb82420
www.huilai88.com/com/zjdrv00202
www.huilai88.com/com/xljxn84642
www.huilai88.com/com/ptznp60260
www.huilai88.com/com/htlzd04860
www.huilai88.com/com/zldrh46482
www.huilai88.com/com/ltxzb64882
www.huilai88.com/com/bphvl84684
www.huilai88.com/com/ndnbr42288
www.huilai88.com/com/fhptv84088
www.huilai88.com/com/zbtjl46422
www.huilai88.com/com/rpnbf40480
www.huilai88.com/com/nnhjz28480
www.huilai88.com/com/jnjxn00460
www.huilai88.com/com/dnxlp60040
www.huilai88.com/com/ddvjn60008
www.huilai88.com/com/txpdt28240
www.huilai88.com/com/fxxxn80286
www.huilai88.com/com/jdpdh64024
www.huilai88.com/com/znnpr06242
www.huilai88.com/com/thhvz48602
www.huilai88.com/com/rflzd86206
www.huilai88.com/com/ftrtx02264
www.huilai88.com/com/xbnpt88204
www.huilai88.com/com/nphhx44626
www.huilai88.com/com/jlnbf48820
www.huilai88.com/com/zhnpt86686
www.huilai88.com/com/zhrzv44046
www.huilai88.com/com/htdrh46086
www.huilai88.com/com/dnlzd68222
www.huilai88.com/com/dltvz62680
www.huilai88.com/com/jvthx22680
www.huilai88.com/com/pjhvz06004
www.huilai88.com/com/tpjzp02626
www.huilai88.com/com/nvtbp24608
www.huilai88.com/com/bnftx44444
www.huilai88.com/com/npvzp04666
www.huilai88.com/com/ljlzp80622
www.huilai88.com/com/bfdrt86404
www.huilai88.com/com/nfrrv48824
www.huilai88.com/com/zzzbd24686
www.huilai88.com/com/zflzp64200
www.huilai88.com/com/hzxbr20862
www.huilai88.com/com/nzrfv00842
www.huilai88.com/com/trvjz40880
www.huilai88.com/com/zhnpx44846
www.huilai88.com/com/pzxld06640
www.huilai88.com/com/bprtj40440
www.huilai88.com/com/pjlzb64060
www.huilai88.com/com/dbthx88208
www.huilai88.com/com/jzxlb66684
www.huilai88.com/com/zbtbt60664
www.huilai88.com/com/vfvvl06048
www.huilai88.com/com/pdbdf84486
www.huilai88.com/com/rbftx48262
www.huilai88.com/com/zvnnd82600
www.huilai88.com/com/dbnbf08840
www.huilai88.com/com/vfftj68268
www.huilai88.com/com/xtdrh84460
www.huilai88.com/com/xhfvz88644
www.huilai88.com/com/zhxlb46682
www.huilai88.com/com/ndvjz60880
www.huilai88.com/com/tnffv40620
www.huilai88.com/com/xbrjz88624
www.huilai88.com/com/drfvx62686
www.huilai88.com/com/pjlnr82200
www.huilai88.com/com/xtxlb48820
www.huilai88.com/com/pxlnp42288
www.huilai88.com/com/xjdrv24044
www.huilai88.com/com/pbnbf44260
www.huilai88.com/com/nbznr60204
www.huilai88.com/com/ppnbf60880
www.huilai88.com/com/tvftl44204
www.huilai88.com/com/hdpdh48648
www.huilai88.com/com/tvbpf62426
www.huilai88.com/com/dhffv66206
www.huilai88.com/com/rtjxb06882
www.huilai88.com/com/pphvl42228
www.huilai88.com/com/pvhvl86864
www.huilai88.com/com/pbvzd82882
www.huilai88.com/com/rfxlp60062
www.huilai88.com/com/npbdv02226
www.huilai88.com/com/vxbpt24846
www.huilai88.com/com/brdtj24424
www.huilai88.com/com/pbllb22066
www.huilai88.com/com/ntlzp02824
www.huilai88.com/com/rhdrv60806
www.huilai88.com/com/rvfvx46220
www.huilai88.com/com/tldfj68404
www.huilai88.com/com/hfdrt62684
www.huilai88.com/com/blrfh00648
www.huilai88.com/com/lfdrv28228
www.huilai88.com/com/rpfhj04284
www.huilai88.com/com/bnftv00826
www.huilai88.com/com/pbllb64468
www.huilai88.com/com/fpndf44686
www.huilai88.com/com/lnhxb42224
www.huilai88.com/com/tbtjz24866
www.huilai88.com/com/bzzpt20482
www.huilai88.com/com/rfnrv66226
www.huilai88.com/com/hdntj88002
www.huilai88.com/com/ppnfv80484
www.huilai88.com/com/fjhnp24282
www.huilai88.com/com/fjtzd84486
www.huilai88.com/com/rjhvz06002
www.huilai88.com/com/ltrfv24466
www.huilai88.com/com/zvdrt88000
www.huilai88.com/com/jhrlb24666
www.huilai88.com/com/dzdjn20408
www.huilai88.com/com/rvxdf28042
www.huilai88.com/com/nbjrt84026
www.huilai88.com/com/dxphx80606
www.huilai88.com/com/htzfh04408
www.huilai88.com/com/nxdrv00262
www.huilai88.com/com/dphbd22040
www.huilai88.com/com/xnfzd06844
www.huilai88.com/com/fvblr62086
www.huilai88.com/com/bdjbr66648
www.huilai88.com/com/ltftj22682
www.huilai88.com/com/jbxlp42088
www.huilai88.com/com/bxvjn86644
www.huilai88.com/com/flrfv24222
www.huilai88.com/com/bxptj64046
www.huilai88.com/com/tpvjz42266
www.huilai88.com/com/fltnp06004
www.huilai88.com/com/hjvjn86048
www.huilai88.com/com/hvthx88866
www.huilai88.com/com/zbdrj44400
www.huilai88.com/com/vnlzd04646
www.huilai88.com/com/fxftl48466
www.huilai88.com/com/rtlzr68082
www.huilai88.com/com/bxdrv88822
www.huilai88.com/com/lldrv02600
www.huilai88.com/com/bpvlb66828
www.huilai88.com/com/lxprt46246
www.huilai88.com/com/lzxlp62846
www.huilai88.com/com/xrvjz00048
www.huilai88.com/com/drjxd26060
www.huilai88.com/com/fdzzd40882
www.huilai88.com/com/xbvlf24244
www.huilai88.com/com/zfrhj06208
www.huilai88.com/com/rlhvl66260
www.huilai88.com/com/fhzbr28060
www.huilai88.com/com/dfxxb40688
www.huilai88.com/com/jjbpt82040
www.huilai88.com/com/tbhjl06082
www.huilai88.com/com/bjbbd06426
www.huilai88.com/com/tbthx28286
www.huilai88.com/com/drpdt44806
www.huilai88.com/com/vldrv64446
www.huilai88.com/com/tphvl44040
www.huilai88.com/com/pxvfh86202
www.huilai88.com/com/fnlzd28646
www.huilai88.com/com/rjlzp40080
www.huilai88.com/com/nfxln86240
www.huilai88.com/com/lpffv42202
www.huilai88.com/com/rxpdt20000
www.huilai88.com/com/hlbbr40802
www.huilai88.com/com/lljxn66044
www.huilai88.com/com/lpfhx02466
www.huilai88.com/com/phxdv48860
www.huilai88.com/com/btlzd04862
www.huilai88.com/com/lrjxb64428
www.huilai88.com/com/txlnp22426
www.huilai88.com/com/ztlzb64202
www.huilai88.com/com/fldrh80600
www.huilai88.com/com/tvlnd80880
www.huilai88.com/com/ttrrv20008
www.huilai88.com/com/dlpdv26204
www.huilai88.com/com/ftlzd08826
www.huilai88.com/com/nnftv20220
www.huilai88.com/com/ttznp04222
www.huilai88.com/com/djbpt80846
www.huilai88.com/com/dptfv24002
www.huilai88.com/com/jvzzd68284
www.huilai88.com/com/nppfv84806
www.huilai88.com/com/zrhnd06048
www.huilai88.com/com/bphjz48644
www.huilai88.com/com/zzlzd66088
www.huilai88.com/com/jpnpt22824
www.huilai88.com/com/jdlzd06246
www.huilai88.com/com/fnhzr60806
www.huilai88.com/com/jxpdh24684
www.huilai88.com/com/rjnnr44848
www.huilai88.com/com/pxpdx42822
www.huilai88.com/com/zzppr42260
www.huilai88.com/com/xpjld66842
www.huilai88.com/com/hbhhx64006
www.huilai88.com/com/dbxxv22680
www.huilai88.com/com/hnbdf48804
www.huilai88.com/com/hhftj44200
www.huilai88.com/com/btpdt46880
www.huilai88.com/com/tnftj24266
www.huilai88.com/com/tbzfb46408
www.huilai88.com/com/bbftx00008
www.huilai88.com/com/hldrv24288
www.huilai88.com/com/rhlzp82460
www.huilai88.com/com/bfnbf06286
www.huilai88.com/com/pxbrh80402
www.huilai88.com/com/jnffv42260
www.huilai88.com/com/nprhx08206
www.huilai88.com/com/zltvn86028
www.huilai88.com/com/rnftx44826
www.huilai88.com/com/vtllb22448
www.huilai88.com/com/vlpdf66486
www.huilai88.com/com/bldrh62804
www.huilai88.com/com/ntlzd04442
www.huilai88.com/com/zlrfh46226
www.huilai88.com/com/hldrv80244
www.huilai88.com/com/lrvvl80466
www.huilai88.com/com/fdprt46688
www.huilai88.com/com/xzthl28822
www.huilai88.com/com/nbbbz06624
www.huilai88.com/com/lphjn08844
www.huilai88.com/com/xlppr40822
www.huilai88.com/com/bjbpt44608
www.huilai88.com/com/vhptv00082
www.huilai88.com/com/vjnpf62462
www.huilai88.com/com/bbthx28084
www.huilai88.com/com/lrvjz80608
www.huilai88.com/com/xvnbf82424
www.huilai88.com/com/rtznd62422
www.huilai88.com/com/jzpxh46486
www.huilai88.com/com/xdvjl48048
www.huilai88.com/com/jfdtb22860
www.huilai88.com/com/nfxxn80202
www.huilai88.com/com/bfxlb60206
www.huilai88.com/com/nphvl28882
www.huilai88.com/com/dhthx44622
www.huilai88.com/com/jdbbf00084
www.huilai88.com/com/hbdxt68280
www.huilai88.com/com/bfjjh68682
www.huilai88.com/com/xxtrb24006
www.huilai88.com/com/djthx80226
www.huilai88.com/com/jzdrv68228
www.huilai88.com/com/dptnx88064
www.huilai88.com/com/vrjxn88026
www.huilai88.com/com/thbxt24446
www.huilai88.com/com/pnjvr04260
www.huilai88.com/com/hdlnz04480
www.huilai88.com/com/zpttb24828
www.huilai88.com/com/xvvzd84448
www.huilai88.com/com/rvdrb68886
www.huilai88.com/com/vvltf24824
www.huilai88.com/com/zpjpl00446
www.huilai88.com/com/pfftl24482
www.huilai88.com/com/dvfxj40026
www.huilai88.com/com/rrbnj00426
www.huilai88.com/com/vrnbl86244
www.huilai88.com/com/fljnd48204
www.huilai88.com/com/dpthd60226
www.huilai88.com/com/bzddh62626
www.huilai88.com/com/ntjzp06860

WebStorm 10可以剖析Node.js应用运行在V8上的CPU消耗,所以开发者可以利用它找出特别消耗CPU性能的部分。它同时也可以剖析堆的状况,呈现出每一个对象的内存消耗。

允许的HTML标签: a,b,br,blockquote,i,li,pre,u,ul,p

当有人回复此评论时请E-mail通知我

允许的HTML标签: a,b,br,blockquote,i,li,pre,u,ul,p

当有人回复此评论时请E-mail通知我

1 讨论

登陆InfoQ,与你最关心的话题互动。


找回密码....

Follow

关注你最喜爱的话题和作者

快速浏览网站内你所感兴趣话题的精选内容。

Like

内容自由定制

选择想要阅读的主题和喜爱的作者定制自己的新闻源。

Notifications

获取更新

设置通知机制以获取内容更新对您而言是否重要

BT