Upgrade to Pro — share decks privately, control downloads, hide ads and more …

KILL ALL HUMANS (動画なし版)

akameco
February 20, 2018

KILL ALL HUMANS (動画なし版)

JavaScript メタプログラミング勉強会@さくらインターネット metapro.es セクション2 → 動画あり版はこちら https://akameco.github.io/slide/20170220_metapro/assets/player/KeynoteDHTMLPlayer.html#0

akameco

February 20, 2018
Tweet

More Decks by akameco

Other Decks in Programming

Transcript

  1. 

  2. 

  3. ”KILL ALL HUMANS” • ਓؒ͸ඞͣؒҧ͑Λ൜͢ • Αͬͯɺਓ͕ؒਖ਼֬͞ΛٻΊΒΕΔ࡞ۀΛͯ͠ ͸ͳΒͳ͍ • ͦͯ͠Ұ؏ੑΛอͭͷ͸ਓؒͷ࢓ࣄͰ͸ͳ͍

    • ͔ͩΒਓؒΛഉআ͢Δͷ͕جຊతͳํ਑Ͱ͋Δ • ਓؒ͸ਓؒʹ͔͠ग़དྷͳ͍ຊ࣭ʹऔΓ૊Ή΂͖ 
  4. 

  5. 

  6. $ yarn global add jscodeshift $ git clone https://github.com/cpojer/js-codemod/ $

    jscodeshift -t js-codemod/transforms/rm-object- assign.js src 
  7. ࡞ऀ΍ओཁίϯτϦϏϡʔλʔ • Felix Kling(@fkling) astexplorer, jscodeshift (Facebook) • Christoph Nakazawa(@cpojer)

    jest Λ࡞ͬͯΔ (Facebook) • Brian Vaughn(@bvaughn) react- virtualized (Facebook) • Andrew Clark(@acdlite) recompose΍FSA (Facebook) 
  8. ࢖͏΂͖ʁ • ڈ೥ͷ10݄·Ͱ͸ kriasoft/react-starter-kit ͳͲͷε λʔ16000↑ͷϘΠϥʔϓϨʔτ͕࢖༻ • ͕ɺ@babel͕͜ΕΒͷϓϥάΠϯΛٵऩͨ͠ͷͰɺ react-starter-kitͳͲ͸ͦͪΒʹҠߦ͍ͯ͠Δɻ •

    ಉ͡Α͏ʹͦͪΒΛ࢖͑͹Α͍ͱࢥ͏(ͳ͓babelrcͰ͸ ͳ͘webpack.config.jsʹ͜ΕΒͷهड़͕͋ΔͷͰ஫ҙ) • ͡Ό͋ͳΜͰ঺հͨ͠ͷ͔ͱ͍͏ͱɺཧ༝͸ޙड़ 
  9. 

  10. 

  11. 

  12. 

  13. 

  14.