2019-07-01ãã1ã¶æéã®è¨äºä¸è¦§
Railsã®ããã¸ã§ã¯ãã§rakeã¿ã¹ã¯ãä½æããã¦productionã«åæ ããããã¿ã¹ã¯åé¤æ¸ã¿ãlocalç°å¢ã«åæ ãã¦ãªãã¦åé¤ããããã¡ã¤ã«æ¢ãããã¨ããäºãé »ç¹ã«ããGitã§åé¤ãããã³ããããè¦ã¤ãã¦ããå¿ è¦ããã£ãã®ã§ããããã®ã¡ã¢ åé¤ããããã¡ã¤â¦
ãããªã® function Label(props) { // label ã§è¡¨ç¤ºããè¦ç´ ã親ã³ã³ãã¼ãã³ãã§æå®ãããï¼ return ( <label htmlFor={props.htmlFor}>{ â¯â¯â¯â¯ }<label> ); } function Input(props) { return ( <> <Label htmlFor={props.id}>æ¨ã</Label> <input id={props.id} defaultValue={props.dafaultValue} /> ); } <Label /> ã³ã³ãã¼ãã³ããå¥ã«ä½ã£ã¦ããã¦ãåè¦ç´ ã¯HTMLã¿ãâ¦</label></label></label>
GitHub ã® README ã¨ãã«ãããããããããã¿ãã¿è²¼ã£ã¦ã¿ããã£ãã®ã§ãCIã®ãã¹ãã¨ã«ãã¬ãã¸è¨æ¸¬ããã£ã¦ã¿ã¾ããã Travis CI 㯠OSS (GitHub 㧠public repo ãªãOKã£ã½ã) ãªãç¡æã£ã½ãã¨ããäºã ã£ãã®ã§é¸ã³ã¾ãããã«ãã¬ãã¸ã®è¡¨ç¤ºã¯ Codecov â¦
Babel ã®ã¤ã³ã¹ãã¼ã«ã¨è¨å®ãã¡ã¤ã«ã®ä½æ $ yarn add -D @babel/core @babel/cli @babel/preset-env babel.config.js module.exports = { presets: [ [ "@babel/preset-env" ] ], }; Jest ã®ã¤ã³ã¹ãã¼ã« $ yarn add -D jest å ¬å¼ããã¥ã¡ã³ãã«ãã㨠babâ¦
å ã« JSX å 㧠ãå«ã¾ããå ´åã®ãã¹ãã®ãããã©ããæ¸ãã¦ãã¾ã£ããã©ãæ¹ã㦠JavaScript ã§ã®æ±ããã¡ã¢ã JavaScript ã§ã®åå¾ <p id="elm">æå®® ãã¡ã</p> const elm = document.getElementById('elm'); elm.innerText; // æå®® ãã¡ã elm.firstChild.nâ¦
logãtmpãã£ã¬ã¯ããªãåãé層ã«ããããã¢ããªå ¨ä½ã§æ¤ç´¢ãããæã«logãã¡ã¤ã«ã¨ãããå¼ã£ããã£ã¦ãã¦ã¦ã¶ãã®ã§æ¤ç´¢å¯¾è±¡ããé¤å¤ãããæ --ignore ãªãã·ã§ã³ã使ã $ ag -h -i --ignore-case Match case insensitively --ignore PATTERN Ignore filâ¦
ã¢ãã¯ã¢ãããä½ã£ã¦ãã¦ãæ¡ä»¶ã«ãã£ã¦è¡¨ç¤º/é表示ãåãããè¦ç´ ããããã©ã³ãã ã§è¡¨ç¤º/é表示ããããã¨æãã¾ããã ã©ã³ãã ã« 0 / 1 ãè¿ã ã±ã£ã¨æãã¤ããã®ãä»ã®JavaScriptã¨ãã§ããããã 0 || 1 ãè¿ãæ¹æ³ã Random.rand(0 .. 1) Random#raâ¦
HTMLã§æã è¦ããããã¤ã Non-Breaking Space æä¸ã§æãè¿ããããããªãèªå¥ãç¹ãæã«ä½¿ãç¹æ®æåã JavaScript 㧠ãå«ã¾ããHTMLãæ±ãæã®ãã©ãã ã³ã³ãã¼ãã³ãæ代ã®æ¨ä»ã ã¨JSXã¨ãJavaScriptå ã«HTMLãæ¸ããããããã¨â¦
React ã§ä½ã£ãã¢ããªã Jest + enzyme ã§ãã¹ããã¦ããæã«TypeError: Cannot read property 'equal' of undefinedã¨ããã¨ã©ã¼ã«ãªã£ãã®ã§ã¡ã¢ enzymeã®APIãªãã¡ã¬ã³ã¹ãè¦ãªãããããªãã¹ããæ¸ãã¦ãã¾ããã describe("App", ()=> { const app = shâ¦