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

大規模Angularの向こう側

OKUNOKENTARO
December 14, 2017

 大規模Angularの向こう側

Dec 14, 2017 @ng-sake #10 発表資料

OKUNOKENTARO

December 14, 2017
Tweet

More Decks by OKUNOKENTARO

Other Decks in Technology

Transcript

  1. ૯ϑΝΠϧ਺ͷ࡟ݮ w ݱࡏɺ ཁ݅ͷ෼ͷఔ౓͕࣮૷׬ྃͰɺ ͢Ͱʹ͜ͷ஗͞ w ཁ݅Λ΄΅࣮૷͖͠ΔͰ͋Ζ͏ ϓϩδΣΫ τऴ൫͸ɺ 


    ݱࡏΑ Γ਺ഒ͕͔͔࣌ؒΔͱ༧૝ w ͩͬͨΒείʔϓΛখ͞ ͘͢Δ͜ͱͰɺ 
 Ϗϧυ࣌ؒΛ͜ΕҎ্૿΍͞ͳ͍Α ͏ʹ͠Α ͏
  2. /Y w IUUQTOSXMJPOY w 7JDUPS4BWLJOࢯͷձࣾɺ "OHVMBSͷίϯαϧλϯ τͷձࣾΒ͍͠ w ͜͏͍͏໊લͷπʔϧ͔ͱࢥ͍͖΍ɺ 


    ςϯϓϨʔ τूɺ ϊ΢ϋ΢ूͱࢥͬͨ΄͏͕Α͍ w ෳ਺ΞϓϦ؅ཧͷϊ΢ϋ΢͕٧·ͬͯΔ
  3. 4DIFNBUJDT w "OHVMBS$-*Α Γ#MVFQSJOUTʹ୅Θͬͯಋೖ͞ΕͨςϯϓϨʔ τੜ੒ ͷج൫ w Α ͏΍͘ಠࣗςϯϓϨʔ τΛੜ੒Ͱ͖ΔΑ

    ͏ʹͳͬͨ w schema.json, index.tsΛطଘͷ΋ͷΛࢀߟʹෳ੡͢Ε͹࡞ΕΔ w ݱࡏӡ༻தɺ ϊ΢ϋ΢஝ੵதͳͷͰ·͍ͨͣΕ࿩͠·͢
  4. Կ͕μϝ͔ w ࠷ॳ͔ΒΞϓϦ෼ׂΛ૝ఆ͍ͯ͠ͳ͍ͱɺ 
 ్த͔Βͷ෼ׂ͸ઃܭ্͔ͳΓͭΒ͍ w ϧʔςΟ ϯά͕େ໰୊ʹͳΔ ʢ-B[ZMPBEJOHͱ4JOHMFUPOͷ໰୊ʣ 

    w "ΞϓϦ ͱ#ΞϓϦΛಉ࣌ʹىಈͯ͠ϧʔςΟ ϯάΛৼΓ෼͚͚ͨΕ͹ɺ 
 ϧʔςΟ ϯά༻ͷϋϒΞϓϦͷ࡞੒΋ඞཁ w ؅ཧίε τ͕ΞϓϦʹ૿͑Δ ʢϏϧυ͕஗͍͜ͱΑ Γ ΋खؒͳՄೳੑʣ
  5. Կ͕μϝ͔ w "OHVMBS$-*ͷXFCQBDL͕೉ղ͗ͯ͢ɺ ෦෼తϏϧυͷ࢓૊Έ͕
 ͔ͳΓߏஙͮ͠Β͍ w ng ejectͤͣʹ࣮ݱ͠Α ͏ ͱ͢Δͱݫ͍͠

    w ng ejectΛͤͣʹɺ ng ejectͯ͠ಘΒΕͨwebpack.configΛ ϕʔεʹվ଄͢Δ͜ͱ΋ߟ͕͑ͨɺ ࠓޙͷόʔδϣϯΞοϓʹ͍ͭͯߦ͚ͣ
 ෛ࠴Խ͢Δະདྷ͕ݟ͑ͨ
  6. େن໛ͷͭΒ͍ͱ͜Ζճ౴ฤ w ίʔ υͷॏෳΛͲͷΑ ͏ʹந৅Խ ɾ ڞ௨Խ͢Δ͔
 ɹˠ%%%ͷ఩ֶΛ༝དྷͱͨ͠ϞσϦϯάख๏ͷप஌ w ๲େͳϑΝΠϧ਺ΛͲ͏΍ͬͯѻ͏͔


    ɹˠಠࣗ4DIFNBUJDTʹΑΔࣗಈੜ੒ w ϝϯόʔ͕ଟ͍ϓϩδΣΫ τͰͲ͏΍ͬͯ඼࣭Λ୲อ͢Δ͔
 ɹˠ1SFUUJFS༷ສࡀɺ ୭ʹ΋จ۟͸ݴΘͤͳ͍