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

Legacy development meets webpack

Yu I.
May 23, 2017

Legacy development meets webpack

5 月 23 日のヒカ☆ラボで登壇させて頂いた時のスライドです。一休.com レストランの web フロントエンドにビルドパイプラインを導入した経験をご紹介します。

VBScript meets Vue.js (関連スライド):
https://speakerdeck.com/simezi/vbscript-meets-vue-dot-js-20nian-yue-sifalsechu-hui-i

ヒカ☆ラボイベント詳細:
https://career.levtech.jp/hikalab/event/detail/92/

Yu I.

May 23, 2017
Tweet

More Decks by Yu I.

Other Decks in Technology

Transcript

  1. ࣗݾ঺հ Ҵඌ ༡ • Web ϑϩϯτΤϯυɾΤϯδχΞ • 2016 ೥ 10

    ݄ೖࣾ • Ұٳ.com Ϩετϥϯ ॴଐ • Web ϑϩϯτΤϯυج൫վળ୲౰ • ू٬ (ച্վળ) ϓϩδΣΫτνʔϜ
  2. ⸻ Web ϑϩϯτΤϯυͷٕज़ελοΫ (Before) ίʔυϕʔε: • JavaScript • (500 ϑΝΠϧɺ7

    ສεςοϓ) • CSS • (700 ϑΝΠϧɺ35 ສεςοϓ) • Classic ASP • (VBScript + HTMLɺ4000 ϑΝΠϧɺ90 ສεςοϓ) • จࣈίʔυ͸ Shift_JIS +
  3. ⸻ ϏϧυύΠϓϥΠϯͷಋೖͱ݁Ռ webpack Λ࠾༻ I’ve found Gulp and Grunt to

    be unnecessary abstractions. npm scripts are plenty powerful and often easier to live with. Why I Left Gulp and Grunt for npm Scripts https://medium.freecodecamp.com/why-i-left-gulp-and-grunt-for-npm-scripts-3d6853dd22b8 • npm scripts ͱ webpack ͷബ͍ߏ੒ • ݱ࣌఺ͰͷओྲྀϏϧτπʔϧ • Twitter ΋࠾༻ͯͨؒ͠͠ҧ͍ͳ͍ͬ͠ΐ • webpack on twitter.com https://alunny.com/articles/webpack-on-twitter-com/
  4. ⸻ ϏϧυύΠϓϥΠϯͷಋೖͱ݁Ռ ઌΛݟਾ͑ͨϑϩϯτΤϯυٕज़ελοΫ • JavaScript: Babel + ES.Next • CSS:

    PostCSS + cssnext • Web Components Λݟਾ͑ͨίϯϙʔωϯτ୯Ґ ͷϑΝΠϧߏ੒
  5. WHY

  6. ⸻ ϏϧυύΠϓϥΠϯͷಋೖͱ݁Ռ σβΠφʹ͸ CSS ϓϦϓϩηοα΋ϏϧυύΠϓϥΠϯ΋ະ ஌ͱͷૺ۰ ⸻ • Sass ΍

    LESS ͷ׆༻ܦݧͷͳ͍؀ڥ • CSS ϓϦϓϩηοαͬͯͳΜ͔ͩྑ͘෼͔Βͳ͍ • BEM ౳ͷ CSS ΞʔΩςΫνϟ΋ศརͦ͏͚ͩͲ… • CSS ॻ͖͍͚ͨͩͳͷʹϏϧυ͕ඞཁ…
  7. ⸻ ϏϧυύΠϓϥΠϯͷಋೖͱ݁Ռ ΤϯδχΞਞʹϏϧυύΠϓϥΠϯͷ։ൃऀϝϦοτ͕఻Θ͍ͬͯͳ͍ ⸻ • ASP ͱάϩʔόϧԚછ JS ࣮૷͔ΒɺϞδϡʔϧੑΛ࣮࣋ͬͨ૷΁ ͷίϯςΩετεΠον͕ਐ·ͳ͍ɻ

    • ES.Next ͸ษڧத͔ͩΒਖ਼͍͠ॻ͖ํ͕෼͔Βͳ͍ɻ • ΤίγεςϜͷͳ͍ ASP ͔Βɺ͍͖ͳΓύοέʔδ؅ཧ΍ npm ͷ ࿩Λͯ͠΋఻ΘΒͳ͍ɻ • ௿Ϩϕϧͳந৅Խ͔࣋ͨ͠ͳ͍ ASP ίʔυϕʔε͔Β͸ɺந৅౓ ͷߴ͍એݴతͳσʔλόΠϯσΟϯά͸Πϝʔδ͕༙͔ͳ͍ɻ
  8. ⸻ ϏϧυύΠϓϥΠϯͷಋೖͱ݁Ռ ϏϧυύΠϓϥΠϯ΁ͷϩοΫΠϯͷ݁Ռ • σβΠφ/ΤϯδχΞਞ͕ɺঃʑʹϞμϯͳςΩετ ΤσΟλ΁Ҡߦ • UI Ҋ݅Ͱ Vue.js

    ͷ࠾༻͕ਐߦத • ES.Next ͷ async/await ʹΑΔγϯϓϧͳίʔσΟ ϯάɺ࣮૷ͷϞδϡʔϧԽͳͲ͕ɺঃʑʹਐߦத
  9. ⸻ Web ϑϩϯτΤϯυͷٕज़ελοΫ (After) ίʔυϕʔε: • JavaScript ES.Next • (120

    ϑΝΠϧɺ3 ສεςοϓ) • CSS cssnext • (100 ϑΝΠϧɺ4 ສεςοϓ) • Classic ASP CTO ͕ϦϓϨʔεத! • ٕज़తෛ࠴ͱ޲͖߹͏https://speakerdeck.com/naoya/ji-shu-de-fu-zhai-toxiang-kihe-u • จࣈίʔυ͸ Shift_JIS UTF-8