â§Â åæã§ãã館é·...ã
Â
ã¨ããããã§ã
ãTypeScript ãã®ãã¼ï¼ã¹ãããã¢ããï¼éå¬ï¼2018/01/27 (å) 12:30 ~ 17:30ï¼ãã¨ããã»ããã¼ãåãã«ãåå·ã«ããæ¥æ¬ãã¤ã¯ãã½ããï¼åå·æ¬ç¤¾ï¼ã«è¡ã£ã¦ãã¾ããã
- JavaScriptã使ã£ãéçºãå§ãããªãï¼TypeScriptãã¯ãããã ï½ ã¹ãããã¢ãã
- TypeScript + Angular 㧠Todo ã¢ããªãä½ã£ã¦ã¿ãã
- Microsoft Bot Framework ã¨TypeScript ã使ã£ã BOT éçº
- SharePoint Framework
ã®4ã¤ã®è©±ã ã£ãã®ã§ããã3çªç®ã®Microsoft Bot Frameworkã®è©±ã®ä¸ã§ãLUISï¼Language Understanding Intelligent Serviceï¼ã£ã¦ãããµã¼ãã¹ã®è©±ãåºã¦ãã¦æ°ã«ãªãã¾ããã
ã¡ãªã¿ã«ãSharePointã¯ãæ§ç§°ã§ã¯MOSSï¼ã¢ã¹ãMicrosoft Office SharePoint Serverï¼ã¨ãªã£ã¦ããããã§ãã
â§Â ä¸è¨ãµã¤ãæ§ã«ããã¨ãMicrosoftã®ç¬èªãµã¼ãã¹ã¿ããã§ãããÂ
ãLUISï¼Language Understanding Intelligent Servicesï¼ã¯ãã¤ã¯ãã½ãããCognitive Servicesã®ä¸é¨ã¨ãã¦æä¾ããèªç¶è¨èªè§£æãµã¼ãã¹ãLUISã§ã¯èªç¶è¨èªãç解ããããã®ã¢ãã«ï¼LUISã¢ããªï¼ãéçºè ãæ§ç¯ãããããåºã«LUISèªèº«ãå¦ç¿ãç©ãã§ãããã¨ã§ãã¦ã¼ã¶ã¼ããä½ããããã®ããï¼ã¤ã³ãã³ããæå³ï¼ã¨é¢é£ããæ å ±ï¼ã¨ã³ãã£ãã£ï¼ãåãåºããããã«ãªãã
LUISï¼èªç¶è¨èªè§£æãµã¼ãã¹ï¼ï¼Dev Basicsï¼Keyword - ï¼ IT
Â
â©Â ã»ããã¼ã§ã¯ããã¡ãã®æ¬ãåºçããã¦ãã¨ã®çªå®£ããèããã¾ãããÂ
Â
 ãããªãããªã§ãä»åã¯TypeScriptã®è©±ã§ãã
Â
Â
TypeScriptã£ã¦ï¼
TypeScript ã¯ãã¤ã¯ãã½ããã«ãã£ã¦éçºãããã¡ã³ããã³ã¹ããã¦ããããªã¼ã§ãªã¼ãã³ã½ã¼ã¹ã®ããã°ã©ãã³ã°è¨èªã§ãããTypeScriptã¯JavaScriptã«å¯¾ãã¦ãçç¥ãå¯è½ãªéçåä»ãã¨ã¯ã©ã¹ãã¼ã¹ãªãã¸ã§ã¯ãæåãå ããå³å¯ãªã¹ã¼ãã¼ã»ããã¨ãªã£ã¦ããã
TypeScriptã¯å¤§è¦æ¨¡ãªã¢ããªã±ã¼ã·ã§ã³ã®éçºã®ããã«è¨è¨ããã¦ããã
ECMAScriptã®ææ¡ã«ãªããTypeScriptã«ç¬èªã«æè¼ãããæ©è½ã¨ãã¦ãéçè¨èªè§£æãå¯è½ã«ããéçåä»ãæ©è½(使ç¨ãããã©ããã¯é¸æå¯è½)ãããã
Â
Googleã®ç¤¾å ã®æ¨æºè¨èªã«ãæ¡ç¨ãããããã§ããÂ
Â
ä»ã¯ECMAScriptè¨èªæ¨æºãå å®ãã¦ãã¦ããä¸ã®ä¸
æã®è©±ã«ãªãã¾ãããJavaScriptã¯ãè¨èªã®ä»æ§ã¨ãããã®ããã£ã¦ç¡ããããªç¶æ ã§ãã£ããããçãã好ãåæã«å®è£ ããã¦ãããããªã
ãããªãã¨ãå½ç¶ãå¾ä¸ã®äººã ãä¿å®ã¨ããããè² ããªãç¶æ³ã«ãªã£ãã¨ãã«ã絶æãå¾ ã£ã¦ããããã§ãã ï¼ã³ã¼ãã®ä¿®æ£ãä¸å¯è½ãªç¶æ ãæ½å¨çãªãã°ã®åµï¼
ããããJavaScriptãè¨è¿°ããéã®ä»æ§ãªãããæ確ã«ãã¦ããã¾ãããã£ã¦è©¦ã¿ãå§ã¾ããECMAScript ã¨ããä»æ§ãçã¾ãã¾ããã
ECMAScriptï¼ã¨ã¯ãã¹ã¯ãªããï¼ã¯ãJavaScriptã®æ¨æºã§ãããEcma Internationalã®ãã¨ã§æ¨æºåæç¶ããªã©ãè¡ããã¦ããã
Ecma Internationalã®ã»ããISO/IEC JTC 1ãããISO/IEC 16262ã¨ãã¦æ¨æºåããã¦ãããæ¥æ¬ãJIS X 3060ã¨ãã¦JISåãã¦ããã
ECMAScriptä»æ§ã¯ãEcma Internationalã«ã¦ECMA-262ã¨ããè¦æ ¼çªå·ã§æ¨æºåããã¦ãããæ¹è¨ã«ããã£ã¦ã¯ç (edition) ãæ´æ°ããã¦ããã
ç¹å®ã®çãæãå ´åã¯ãeditionåã§ã¯ãªãå¹´å·ã¤ãã®ä»æ§æ¸åã§å¼ã°ãããã¨ãæ¨å¥¨ããã¦ãããÂ
Â
ã»ES2017ãç解ãã¦ã¿ã | ãã³ã
â§Â ä¸è¨ãµã¤ãæ§ãã¾ã¨ãã¦ãã ãã£ã¦ãã¾ãã
ãã©ã¦ã¶ã§JavaScriptãå®è¡ã§ããã®ã¯ããã©ã¦ã¶ãJavaScriptã®å®è¡ã¨ã³ã¸ã³ãæè¼ãã¦ãããããªãã§ãããåãã©ã¦ã¶ã§ãã®ã¨ã³ã¸ã³ãç°ãªãããECMAScriptã®å¯¾å¿ã足並ã¿ããããããã©ãã©ã¨ãã...ã
Â
ãã©ã¦ã¶ã®ECMAScriptã®ä»æ§ã¸ã®å¯¾å¿ç¶æ³ã«ã¤ãã¦ã¯ã
â§Â ä¸è¨ãµã¤ãæ§ãåèã«ãªãããã§ãã
Â
ECMAScriptã®äºææ§ã¨ãã©ã³ã¹ãã¤ã©ãpolyfillã©ã¤ãã©ãª
å½ç¶ã®ãã¨ãªãããECMAScriptã®ãã¼ã¸ã§ã³ã®éãã«ããäºææ§ã®åé¡ããã£ãããã¾ããES6使ããããã©ãES5ã¾ã§ãã対å¿ãã¦ãªãã¨ããããããªç¶æ³ã§ããã
ãããªã¨ãã«ããã©ã³ã¹ãã¤ã©ãpolyfillã©ã¤ãã©ãªã®åºçªã§ãã
â§Â ä¸è¨ãµã¤ãæ§ã詳ããã§ããï¼ãã ãè¥å¹²ãæ§ãå 容ã«ã¯ãªã£ã¦ãã¾ããï¼
Â
ãã©ã³ã¹ãã¤ã©ã¨ãã©ã³ã¹ã³ã³ãã¤ã©ã®éããåãããªãã§ãããWikipediaã«ããã¨ã
ãã©ã³ã¹ã³ã³ãã¤ã©ï¼ä»ã«ãã©ã³ã¹ãã¤ã©ãã½ã¼ã¹ã»ãã¥ã»ã½ã¼ã¹ã³ã³ãã¤ã©ããªã©ã¨ãï¼ã¯ãããããã°ã©ãã³ã°è¨èªã§æ¸ãããããã°ã©ã ã®ã½ã¼ã¹ã³ã¼ããå ¥åã¨ãã¦åãåããå¥ã®ããã°ã©ãã³ã°è¨èªã®åçã®ã³ã¼ããç®çã³ã¼ãã¨ãã¦çæããããã種ã®ã³ã³ãã¤ã©ã§ããã
å¾æ¥ä¸è¬ã«ãã³ã³ãã¤ã©ããæ¯è¼ããã¨é«æ°´æºãªè¨èªã®ã½ã¼ã¹ã³ã¼ãããããæ¯è¼ããã¨ä½æ°´æºãªè¨èªã®ç®çã³ã¼ããã«å¤æããï¼ãã³ã³ãã¤ã«ãããï¼ãã®ã§ãã£ãã®ã«å¯¾ãããã©ã³ã¹ã³ã³ãã¤ã©ã¯åãç¨åº¦ã®ï¼æ½è±¡åã®ï¼æ°´æºã®ã³ã¼ãã«å¤æããã
ãã¨ãã°ãPascalã®ã³ã¼ããCã®ã³ã¼ãã¸ã¨å¤æãããèªå並ååã³ã³ãã¤ã©ã¯ããã°ãã°é«æ°´æºè¨èªã®å
¥åããOpenMPã®ãããªä¸¦ååã¡ã¿ãã¼ã¿ãFortranã®forall
æã®ãããªè¨èªæ§é ãå¤æããã
ãã©ã³ã¹ã³ã³ãã¤ã©ã主ããå®è£ ã¨ãã¦éçºããã¦ããè¨èªã®ä¾ã¨ãã¦ã¯Closure Compiler, Coccinelle, CoffeeScript, Dart, Haxe, TypeScript, Emscriptenãããã
ã¨ãªã£ã¦ããã®ã§ããã©ã³ã¹ãã¤ã© = ãã©ã³ã¹ã³ã³ãã¤ã© = ã½ã¼ã¹ã»ãã¥ã»ã½ã¼ã¹ã³ã³ãã¤ã© ã¨ããèªèã§è¯ããã§ãããï¼
â§Â ä¸è¨ãµã¤ãæ§ã§ããç¨èªã®åé¡ã«ã¤ãã¦åããã«ããã£ã¦ä»°ã£ã¦ã¾ãããåæã§ãã館é·ãÂ
ã¾ãããã©ã¦ã¶éã§ECMAScriptã®ä»æ§ã®å¯¾å¿ãçµ±ä¸ããã¦ããªãã®ã§ããã¾ã®ã¨ãããã©ã³ã¹ãã¤ã©ãããã¨ï¼äºææ§ã®åé¡ã®è§£æ±º => ES5ã®è¨è¿°ãã対å¿ãã¦ãªããã©ã¦ã¶ã§ãES6ã®è¨è¿°ãåä½ããããã«ãããªã©ãï¼ãå¿ è¦ã«ãªã£ã¦ããããã§ããÂ
ãã©ã³ã¹ãã¤ã©ã¨ãã¦ã¯ãBabelãªãããæåã§ããã
Â
TypeScriptã使ãã¡ãªããã¯ï¼
TypeScriptã使ãã¡ãªããã¨ãã¦ã¯ãããããããã¨æããã¾ããã
- éçåä»ãã®æ©è½
- åå®å ¨ãå®ç¾
- ãã©ã³ã¹ãã¤ã©ã®æè¼
- tsc ã³ãã³ãã§å®ç¾
ã®2ã¤ã大ãããã¨ãï¼è©³ããæ å ±ã¯ä»ã®ãµã¤ãæ§ãåèãã ãããï¼
Â
éçåä»ãæ©è½
JavaScriptã¯ãã¾ã®ã¨ãããåå®å ¨ã¨ã¯è¨ããªãç¶æ ã§ãã
ã¤ã¾ããå¤æ°ã«ã©ããªãã¼ã¿åã§ãå ¥ãããã¦ãã¾ãããæå³ããªãã³ã¼ãã£ã³ã°ããã¦ã ã¨ã©ã¼ãèµ·ããªãã¨ããï¼æ¶ï¼ã2ã¤ã®ä¾ã§è¦ã¦ã¿ãã¨ã
var itemPrice01 = 12000; var itemPrice02 = 24000; var total = itemPrice01 + itemPrice02; console.log("ãæ¯æãéé¡ã¯" + total + "åã§ãã");
var itemPrice01 = 12000; var itemPrice02 = "24000"; var total = itemPrice01 + itemPrice02; console.log("ãæ¯æãéé¡ã¯" + total + "åã§ãã");
æ®å¿µãªããã¨ã©ã¼ã¯èµ·ããªãã®ã§ã2ã¤ç®ã®çµæã¯ãè«æ±é¡ãã¨ãã§ããªããã¨ã«ãªã£ã¦ãã¾ãã¾ããï¼1ã¤ç®ã®ä¾ãçµæ§ãªéé¡ã§ãã...ãï¼
ãããä»®ã«ã10000è¡ã¨ãã®ã¹ãããæ°ã®ä¸ã§ã¨ã©ã¼ãèµ·ãã£ã¦ãã該å½ç®æãè¦ã¤ããã£ã¦è¨ããããã©ãã§ãããï¼ãã®å´åããã...æºæ¯ããåºãªãã§ããï¼æ³£ï¼ã
Â
ã³ã¼ãã£ã³ã°ãã¦ãæã«æãã¦ãï½ãã£ã¦æã£ãããã®ããªãï¼ç´ æ´ãããï¼
TypeScriptã使ãã¨ãéçåä»ãæ©è½ã¨ãããã®ãå©ç¨ã§ããã®ã§ãJavaãªã©ã®ããã«ã³ã¼ãã£ã³ã°ãã¦ããæã«ãã¼ã¿åãªã©ãééã£ã¦ããã¨ã¨ã©ã¼ãåºãã¦ãããããã«ãªãã¾ãã
ã¤ã¾ããåçåä»ãã§ããJavaScriptããéçåä»ãè¨èªã¨ãã¦æ±ããããã«ãã¦ãããããã§ãã
â§Â éçåä»ãã¨åçåä»ãã«é¢ãã¦ã¯ãä¸è¨ãµã¤ãæ§ãã¾ã¨ãã¦ãã ãã£ã¦ãã¾ããÂ
éçåä»ãè¨èª | JavaãCãC#ãVB.netãªã© |
---|---|
åçåä»ãè¨èª | JavaScriptãPHPãPythonãRubyãªã© |
Â
PHPã«ã¤ãã¦ã¯ãPHP7ã§å³å¯ãªåãã§ãã¯ã¢ã¼ããªã©ãå©ç¨ã§ããããã§ããã
Â
ãã©ã³ã¹ãã¤ã©ã®æè¼
TypeScriptã¯ãã®ã¾ã¾ã§ã¯ãã©ã¦ã¶ã解éã§ããªãããJavaScriptã«å¤æããå¿ è¦ãããã¾ããï¼ã.tsããã¡ã¤ã«ãã.jsããã¡ã¤ã«ã«å¤æï¼
tscï¼Type Script Compilerï¼ã³ãã³ãã«ãã£ã¦å®ç¾ããã¾ãã
Â
TypeScriptã®å°å ¥ã«å¿ è¦ãªãã®
TypeScriptãnpmã³ãã³ãã§ã¤ã³ã¹ãã¼ã«ããããã«Node.jsãå¿ è¦ã§ãã ï¼ä»ã«ãæ¹æ³ã¯ããã¾ãããnpmã³ãã³ãã§ã¤ã³ã¹ãã¼ã«ããã®ãç¡é£ãªããã§ããï¼
- Node.js
- npmã³ãã³ãï¼Node.jsãã¤ã³ã¹ãã¼ã«ããã°ã¤ã³ã¹ãã¼ã«ããã¾ããï¼
- typingsã³ãã³ã
æä½éãä¸è¨ã®3ã¤ãç¨æããã¦ããã°ãOKã®ããã§ããï¼typingsã³ãã³ãã«ã¤ãã¾ãã¦ã¯ãTypeScript 2.0 以éã§éæ¨å¥¨ã«ãªã£ã¦ããã¨ã...æ·æ±°ããã¦ããæãã§ãããï¼ï¼
Â
Â
Windowsã®å ´åãNode.jsã¯Nodistã§ã¤ã³ã¹ãã¼ã«ããã®ãè¯ããã§ãã
2021å¹´7æ3æ¥ï¼åï¼è¿½è¨ï¼â ãããã
ã©ãããã
⧠Nodistã¯æ´æ°ãæ¢ã¾ã£ã¦ãã¿ãããªã®ã§ãå©ç¨ããã®ã¯è³ãããªãã¿ããã§ããã
Microsoftããã®èª¬æã§ã¯ã
代æ¿ã®ãã¼ã¸ã§ã³ããã¼ã¸ã£ã¼
windows-nvm ã¯ãç¾å¨æãä¸è¬çãªãã¼ã ãã¼ã¸ã§ã³ ããã¼ã¸ã£ã¼ã§ãããæ¤è¨ãã¹ã代æ¿ããã¼ã¸ã£ã¼ãããã¤ãããã¾ãã
-
nvs (Node Version Switcher) ã¯ãã¯ãã¹ãã©ãããã©ã¼ã ã®Â
nvm
 ã®ä»£ããã§ãããVS Code ã¨ã®çµ±åãå¯è½ã§ãã -
Volta 㯠LinkedIn ãã¼ã ããã®æ°ãããã¼ã¸ã§ã³ ããã¼ã¸ã£ã¼ã§ãããé度ã®åä¸ã¨ã¯ãã¹ãã©ãããã©ã¼ã ãµãã¼ããç¹é·ã¨ãã¦æãã¦ãã¾ãã
(windows-nvm ã§ã¯ãªã) Volta ããã¼ã¸ã§ã³ ããã¼ã¸ã£ã¼ã¨ãã¦ã¤ã³ã¹ãã¼ã«ããã«ã¯ããGetting Started guideã (å ¥éã¬ã¤ã) ã®ãWindows Installationã (Windows ã¸ã®ã¤ã³ã¹ãã¼ã«) ã»ã¯ã·ã§ã³ãåç §ããã»ããã¢ããæé ã«å¾ã£ã¦ Windows ã¤ã³ã¹ãã¼ã©ã¼ããã¦ã³ãã¼ããã¦å®è¡ãã¾ãã
 éè¦
Volta ãã¤ã³ã¹ãã¼ã«ããåã«ãWindows ã³ã³ãã¥ã¼ã¿ã¼ã§ç¢ºå®ã«Â [éçºè ã¢ã¼ã] ãæå¹ã«ããå¿ è¦ãããã¾ãã
Volta ã使ç¨ãã¦è¤æ°ã®ãã¼ã¸ã§ã³ã® Node.js ã Windows ã«ã¤ã³ã¹ãã¼ã«ããæ¹æ³ã®è©³ç´°ã«ã¤ãã¦ã¯ãVolta Docs ãåç §ãã¦ãã ããã
⧠Node.jsã®ãã¼ã¸ã§ã³ç®¡çã«ã¯ã
ã®ããããã使ãã®ãè¯ãããããªããã£ã¦ãã¨ã¿ããã§ãããããã³ãã¨ã³ãçéã¯ç¸ãå¤ãããæã®æµããæ©ãã§ããª...Â
2021å¹´7æ3æ¥ï¼åï¼è¿½è¨ï¼â ããã¾ã§
Â
TypeScriptãå©ç¨ããç°å¢ã¨ãã¦ã¯
ã»ããã¼ã§ãããããããã®ããÂ
- ããã¹ãã¨ãã£ã¿ã¼ã使ããªãã
- çµ±åéçºç°å¢ã使ããªãã
- Visual Studio 2017ã¾ãã¯ãVisual Studio 2015
ã¨ãããã¨ã§ãããï¼Microsoftã¨ãã¦ã¯ããããã解çã«ãªãã¾ããªï¼
ã¾ããæ®å¿µãªããä»ã®ããã¹ãã¨ãã£ã¿ã¼ãçµ±åéçºç°å¢ã¸ã®TypeScriptã®å¯¾å¿ç¶æ³ãä¸å®å ¨ã§è³ãããªãã¨ããã®ãããã¾ãã ã
WindowsãMacãLinuxã§åãã¨ãããã¨ããããVisual Studio Codeããã¾ã®ã¨ããã¤ããªã·ã¿ããã§ãã
Â
Visual Studio Codeãã¤ã³ã¹ãã¼ã«
ã¨ãããã¨ã§ã TypeScriptãå©ç¨ããç°å¢ã«å¿ è¦ãªãã®ãé ã«ã¤ã³ã¹ãã¼ã«ãã¦ããããã¨æãã¾ããã¾ãã¯ãVisual Studio Codeãã¤ã³ã¹ãã¼ã«ã
https://code.visualstudio.com/ ã«ã¢ã¯ã»ã¹ãã¾ãã
ãDownload for Windowsããé¸æãã¾ãã使ç¨ãã¦ãOSãWindowsã§ãªãå ´åã¯ããDownloadãã¨ãã§å¤§ä¸å¤«ãã¨ã
ãã¦ã³ãã¼ããããexeãã¡ã¤ã«ï¼ãVScodeSetup-x64-x.x.x.exeãï¼ãããã«ã¯ãªãã¯ã
ã次ã¸ï¼Nï¼>ããã¯ãªãã¯ãÂ
ãåæããï¼Aï¼ãã«ãã§ãã¯ãå ¥ããã次ã¸ï¼Nï¼>ããã¯ãªãã¯ã
ã¤ã³ã¹ãã¼ã«å ãæå®ãèªåã¯ããã©ã«ãã®æå®ã§ã次ã¸ï¼Nï¼ï¼ããã¯ãªãã¯ãã¾ããã
 ãããããã©ã«ãã®æå®ã§ã次ã¸ï¼Nï¼ï¼ããã¯ãªãã¯ãã¾ããã
ãããããã©ã«ãã®æå®ã§ã次ã¸ï¼Nï¼>ããã¯ãªãã¯ãã¾ããã
ãã¤ã³ã¹ãã¼ã«ï¼Iï¼ããã¯ãªãã¯ã
ã¤ã³ã¹ãã¼ã«ãéå§ããã¾ãã
ãå®äºï¼Fï¼ããã¯ãªãã¯ã
Visual Studio Codeãã¤ã³ã¹ãã¼ã«ããã¾ããã
Â
Nodistã®ã¤ã³ã¹ãã¼ã«
2021å¹´7æ3æ¥ï¼åï¼è¿½è¨ã®é¨åã«æ¸ããã®ã§ãããã©ããããNodistããå©ç¨ããã®ã¯è³ãããªãã®ã§ããNodistãã¯ã¤ã³ã¹ãã¼ã«ããã
⧠Microsoftããã説æãã¦ããããã«ãNode.jsã®ãã¼ã¸ã§ã³ç®¡çã«ã¯ã
ã®ããããã使ãããã«ããã»ããè¯ãã§ãã
ãªã®ã§ã以éã®ãNodistãã¤ã³ã¹ãã¼ã«é¨åã®è¨äºã¯ç¡è¦ãã¦ãã ããã
Â
èªåã¯ä»¥åã«ã¤ã³ã¹ãã¼ã«ãã¦ãã¾ã£ã¦ããã®ã§ã
â§Â ä¸è¨ãµã¤ãæ§ãåèã«ã¤ã³ã¹ãã¼ã«ãã¦ã¿ã¦ãã ããã
qiita.comshiyoh.hatenablog.com
â§Â ä¸è¨ãµã¤ãæ§ãåèã«ãªãã¨æããã¾ãã
Â
Â
ã¤ã³ã¹ãã¼ã«ãã§ãããããã¼ã¸ã§ã³ã®ç¢ºèªããã¦ã¿ã¦ã
nodist -v
ãã¼ã¸ã§ã³ã表示ããã¦ããã°OKã§ããÂ
Â
Node.jsã®ã¤ã³ã¹ãã¼ã«
ãã¡ããå²æããã¦ããã ãã¾ãããNodistã®ã¤ã³ã¹ãã¼ã«ã®ã¨ããã§ç´¹ä»ããã¦ããã ããåèãµã¤ãæ§ã®æé ã§è¡ãããã¨ãÂ
ãã¼ã¸ã§ã³ã表示ãããã°ã¤ã³ã¹ãã¼ã«ã§ãã¦ã¾ãã
node -v
npm -v
è¥å¹²ãNode.jsã®ãã¼ã¸ã§ã³ãæ§ãæ°ãããã®ã§ã
â§Â ãã¡ãã®ãµã¤ãæ§ãåèã«ãNode.jsã®ææ°çãã¤ã³ã¹ãã¼ã«ãããã¨ãã¦ã
nodist selfupdate
ããï¼ã§ããªããï½ã
â§Â ä¸è¨ãµã¤ãæ§ãåèã«ãnodistä¾åãã¡ã¤ã«ã®ã¢ãããã¼ãã試ãã¦ã¿ãã
nodist update
 ããï¼ã§ããªããï½ã
ä»æ¹ããªãã®ã§ããã¼ã¸ã§ã³ãæå®ãã¦Node.jsãã¤ã³ã¹ãã¼ã«ãï¼èªåã®å ´åã¯ããnodist stableãã³ãã³ããå®è¡ã§ããªãã£ãã§ããï¼
æ¨å¥¨çã®ãã¼ã¸ã§ã³ã¯ã
https://nodejs.org/ja/ ã§ç¢ºèªã§ãã¾ããï¼ãnodist distãã³ãã³ãã§ãã¤ã³ã¹ãã¼ã«å¯è½ãªNode.jsã®ãã¼ã¸ã§ã³ä¸è¦§ã確èªã§ãã¾ããï¼
nodist 8.9.4
ã¤ã³ã¹ãã¼ã«ãããã¨ãèªåã§ææ°çã®Node.jsã«åãæ¿ãã£ã¦ããããã§ããã¤ã³ã¹ãã¼ã«ããã¦ããNode.jsã®ä¸è¦§ã確èªã
nodist
â§Â npmã¯ææ°ã«ãªã£ã¦ããªã...Â
â§Â ä¸è¨ãµã¤ãæ§ãåèã«ããã¾é¸æããã¦ããNode.jsã®ãã¼ã¸ã§ã³ã«åãnpmãã¤ã³ã¹ãã¼ã«ã
nodist npm match
Â
TypeScriptã®ã¤ã³ã¹ãã¼ã«
ãããããTypeScriptã®ã¤ã³ã¹ãã¼ã«ã§ããÂ
npm install -g typescript
typingsãã¤ã³ã¹ãã¼ã«ã
npm install -g typings
â§Â éæ¨å¥¨ã£ã¦ãªã£ã¦ã¾ãã...ã
ãããããã¼ã¸ã§ã³ã確èªãããã®ã§ãã¤ã³ã¹ãã¼ã«ããããã¨ã
Â
tapings ã«ã¤ãã¦ã¯ãÂ
â§Â ä¸è¨ãµã¤ãæ§ãåèã«ãªãããã§ãã
Â
â§Â ä¸è¨ãµã¤ãæ§ã«ããã¨ãTypeScriptã®ãã¼ã¸ã§ã³ã2.0以éã®å ´åã¯ãtsdãtypingsã¨ãã«æ©è½ããªãããã§ãï¼æ¶ï¼
Â
TypeScriptå©ç¨ã®æºå
é©å½ãªå ´æã«ããã¸ã§ã¯ãç¨ã®ãã©ã«ããä½æãã¾ãã
mkdir C:\Users\Toshinobu\Desktop\typeScriptTest
ãã£ã¬ã¯ããªã®ç§»åãÂ
cd C:\Users\Toshinobu\Desktop\typeScriptTest
TypeScriptã®è¨å®ãã¡ã¤ã«ãä½æãÂ
tsc --init
ä¾åã©ã¤ãã©ãªã®ç®¡çç¨ãã¡ã¤ã«ãä½æã ï¼ä½ã£ã¦ããã¦ãªãã§ãããTypeScript 2.0以éã¯ãtypingsãæ©è½ããªããããªã®ã§ä¸è¦ã®ããã§ããï¼
typings init
ã³ãã³ããå®è¡ãããã¨ããã¡ã¤ã«ãä½æããã¾ãã
Â
TypeScriptã§Hello Worldã®è¡¨ç¤ºã試ãã¦ã¿ã
ã¡ãã£ã¨æéã®é¢ä¿ä¸ãããããã§ãããã«ãªãã®ã§ãã¨ããããã¯ã"Hello World"ã®ã®æååã表示ãã¦ã¿ããã¨æãã¾ãã
é©å½ãªå ´æã«ãã.tsããã¡ã¤ã«ãä½æãã¾ããä»åã¯ãè¨å®ãã¡ã¤ã«ã¨åããã©ã«ãå ã«ä½æãã¾ããã
ãã£ãããªãã§ãVisual Studio Codeã®ã»ãã§ãããã¡ã¤ã«ï¼Fï¼ã>ããã©ã«ãã¼ãéãï¼Fï¼...ããé¸æã
ããã»ã©ä½æãããã©ã«ããé¸æã
ï¼èªåã®å ´åã§ãã¨ããC:Â¥UsersÂ¥ToshinobuÂ¥DesktopÂ¥typeScriptTestãã«ãªãã¾ããï¼
ä¸è¨ã®ã¢ã¤ã³ã³ãã¯ãªãã¯ãããæ°ãããã¡ã¤ã«ããä½æãã¾ãã
ä»åã¯ããhello.tsãã¨ãããã¡ã¤ã«ãä½æããã¡ã¤ã«ã«è¨è¿°ãä¿åãÂ
let msg = "Hello World"; console.log(msg);
ç¶ãã¦ãtsãã¡ã¤ã«ããjsãã¡ã¤ã«ãä½æãã¾ãã
ãã¿ã¹ã¯ï¼Tï¼ã>ãã¿ã¹ã¯ã®å®è¡ï¼Bï¼...ããé¸æã
ãtsc ãã«ã - tsconfig.jsonããé¸æã
ãhello.jsããã¡ã¤ã«ãä½æããã¾ããã
Â
å®éã«jsãã¡ã¤ã«ãå®è¡ãã¦ã¿ã¾ããããããã°ã以å¤ã§åããæ¹æ³ãåããããã¨ãããããããããã°ãã§èµ·åã
 ã®ã¢ã¤ã³ã³ãã¯ãªãã¯ãã¾ãã
 ãã¿ã³ãã¯ãªãã¯ãã¾ãã
ããããã° ã³ã³ã½ã¼ã«ãã«ãHello Worldãã¨è¡¨ç¤ºããã¾ããã
Â
ãï½ããã¡ãã£ã¨èª¿ã¹ãããªãã£ãã§ãããæéã®ããã¨ãã«èª¿ã¹ã¦ããããã§ããã
ä»åã¯ãã®ã¸ãã§ãÂ
Â
2018å¹´2æ4æ¥ï¼æ¥ï¼è¿½è¨ï¼
ã»ããã¼ã§ç»å£ãã¦ãã ãã£ãæ¹ã ã®ã¹ã©ã¤ããå ±æãã¦ããã ããã®ã§ãæ²è¼ããã¦ããã ãã¾ãã
Â
TypeScriptã§éçºãå§ããã«ã¤ãã¦ãªã©ç´¹ä»ãã¦ããã¦ãã¾ãÂ
â§Â  ãTypeScriptå®è·µãã¹ã¿ã¼ãã®èè ã®æ¹ã§ãããããããã§åã¦ã°ãæ¸ç±ãããããã®ã§ããæ®å¿µãªããè² ãã¦ãã¾ã£ãã®ã§ããããã§ããæ¸ç±ã®å 容ãæ°ã«ãªãã¾ããã
Â
Â
TypeScriptã¨Angularã®çµã¿åããã§TODOã¢ããªã®ä½ãæ¹ãç´¹ä»ãã¦ããã¦ãã¾ã
â§Â TypeScriptã¨Angularï¼ããããAngular 4ãããªããã¨ï¼ãçµã¿åãããTODOã¢ããªã®ä½ãæ¹ãç´¹ä»ãã¦ããã¦ã¾ããAngularã®æ¦å¿µã¨ãã説æãã¦ããã¦ãã¾ãã
Â
â§Â Angularã¨TypeScriptã«ã¤ãã¦ã¯ãä¸è¨ãµã¤ãæ§ãåèã«ãªãããã§ãã
Â
Â
Microsoft Bot Serviceã¨TypeScriptã使ã£ãéçºã«ã¤ãã¦ç´¹ä»ãã¦ããã¦ã¾ã
â§Â å人çã«ã»ããã¼ã§ä¸çªé¢ç½ãã£ãå 容ã§ããBOTã£ã¦ä½ï¼ã¨ããã¨ãããããå¿ ãããBOT = AI ã常ã«æãç«ã¤ããã§ãªãï¼BOT â AIï¼ã£ã¦ããç¹ãç®ããã¦ãã³ã§ããã
ãã®è¬æ¼ã§ãELIZAï¼ã¤ã©ã¤ã¶ï¼ãã£ã¦ããåå¨ãåãã¦ç¥ãã¾ããã
ELIZAï¼ã¤ã©ã¤ã¶ï¼ã¯åæã®ç´ æ´ãªèªç¶è¨èªå¦çããã°ã©ã ã®1ã¤ã§ããã対話åï¼ã¤ã³ã¿ã©ã¯ãã£ãï¼ã§ããããé³å£°ã«ããä¼è©±ãããã·ã¹ãã ã§ã¯ãªãã
ã¹ã¯ãªãã (script) ã¸ã®ã¦ã¼ã¶ã¼ã®å¿çãå¦çããå½¢ã§åä½ããã¹ã¯ãªããã¨ãã¦ã¯DOCTORã¨ããæ¥è«è ä¸å¿çæ³ã®ã»ã©ãã¹ãã®ã·ãã¥ã¬ã¼ã·ã§ã³ãæãããç¥ããã¦ããã人éã®æèãææ ã«ã¤ãã¦ã»ã¨ãã©ä½ã®æ å ±ãæã£ã¦ããªãããDOCTORã¯é©ãã»ã©äººéã£ã½ã対話ããããã¨ããã£ãã
MITã®ã¸ã§ã»ãã»ã¯ã¤ã¼ã³ãã¦ã ã1964å¹´ãã1966å¹´ã«ããã¦ELIZAãæ¸ãä¸ããããããã人工ç¡è³ï¼chatterbotãããã¯chatbotã¨å¼ã°ããä¼è©±ããããããã¯ãããã¹ãããããªã©ã®ã³ã³ãã¥ã¼ã¿ããã°ã©ã ã§ãã人工ç¥è½ããªããã人工é è³ãããæ´¾çããèªå¥ï¼ã®èµ·æºã¨ãªã£ãã½ããã¦ã§ã¢ã§ããã
Â
Â
SharedPoint Frameworkã«ã¤ãã¦ç´¹ä»ãã¦ããã¦ã¾ãÂ
â§Â  SharePointã¨ããåå¨ãåãã¦ç¥ãã¾ããããããã®ãã¬ã¼ã ã¯ã¼ã¯ã¨ãããã¨ã®ããã§ããã¾ã ãããªãæ°ãããµã¼ãã¹ã¿ããã§ãããããã©ãã©ãéçºãé²ãã§ããããã§ãã
Â
Â