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

Lerna による明示的疎結合アーキテクチャ

Lerna による明示的疎結合アーキテクチャ

Gotanda.js #9 in adish で発表した資料
https://gotandajs.connpass.com/event/66262/

Pine Mizune

October 06, 2017
Tweet

More Decks by Pine Mizune

Other Decks in Programming

Transcript

  1. ࣗݾ঺հ v (JU)VC !QJOF v 5XJUUFS!QJOF v ޷͖ͳݴޠ +BWB4DSJQU v

    /FYUCFBU $P -UE JO ޒ൓ా v ֆจࣈδΣωϨʔλʔ "VUIPS
  2. ໨࣍ -FSOB ͷ֓ཁͱɺΞʔΩςΫνϟྫΛ࿩͠·͢ v -FSOB ͱ͸ v -FSOB ͷಈ࡞ݪཧ v

    -FSOB ʹΑΔ໌ࣔతૄ݁߹ΞʔΩςΫνϟ v ΞʔΩςΫνϟྫͷ঺հ
  3. -FSOB ͱ͸ -FSOB ͸ #BCFMͷ࡞ऀʹΑΔ NPOPSFQP ࢧԉπʔϧͰ͢ ෳ਺ύοέʔδΛ୯ҰϨϙδτϦͰ؅ཧ ྫ#BCFMͷϨϙδτϦߏ଄ QBDLBHFT

    MFSOBKTPO QBDLBHFKTPO CBCFMDMJ CBCFMDPSF TSD UFTU QBDLBHFKTPO CBCFM ܭ ݸͷύοέʔδ ݱࡏ
  4. -FSOB ͷಈ࡞ݪཧ -FSOB ͸γϯϘϦοΫͰϓϩδΣΫτ಺ґଘΛղܾ͠·͢ QLH QLH QLH OPEF@NPEVMFT !QSPK QBDLBHFT

    QLH NPOSFQP ಺͸γϯϘϦοΫϦϯΫ ֎෦ύοέʔδ͸௚઀Πϯετʔϧ QLH FYUQLH
  5. -FSOB ίϚϯυྫ $ lerna bootstrap ґଘղܾ࣮ߦ $ lerna run test

    શύοέʔδͷίϚϯυ࣮ߦ $ lerna run --scope @proj/pkg1 build ಛఆύοέʔδͷίϚϯυ࣮ߦ
  6. -FSOB ʹΑΔ໌ࣔతૄ݁߹ΞʔΩςΫνϟ -FSOB ʹΑΔΞʔΩςΫνϟͷϝϦοτɾσϝϦοτ v ϝϦοτ Ø ϨΠϠؒͷґଘ͕໌ࣔతʹͳΔ Ø ϨΠϠ͝ͱʹґଘ͕࣋ͯΔ

    Ø ϨΠϠ͝ͱʹςετ͕ॻ͚Δ ςετϑϨʔϜϫʔΫͷࠞࡏ΋༰қ v σϝϦοτ Ø ύοέʔδ਺ͷංେԽɺݟ௨͠ͷѱԽ Ø ಉҰϥΠϒϥϦͷෳ਺όʔδϣϯ΁ͷґଘͷൃੜ ڞ௨ґଘΛϧʔτύοέʔδͰ࣋ͭ͜ͱͰ͋Δఔ౓ղܾՄ
  7. &YQSFTT΁ͷద༻ྫ $POUSPMMFS 3FQPTJUPSZ .PEFMʹ෼͚Δྫ QBDLBHFT MFSOBKTPO BQQ DPOGJH HPUBOEBKTBQJ NPEFMT

    FOW SFQPT QBDLBHFKTPO $POUSPMMFS 3FQPTJUPSZ .PEFM ιʔείʔυIUUQTHJUIVCDPNQJOFHPUBOEBKTBQJTBNQMF
  8. ·ͱΊ -FSOB ͸ NPOPSFQP ࢧԉπʔϧͰ͢ v -FSOB ͸ #BCFM౳ͷେن໛ϥΠϒϥϦͰར༻ v

    -FSOB ΛϓϩμΫτʹదԠ͢Δ͜ͱ΋Մೳ v ૄ݁߹ɺ͔ͭ໌ࣔతʹϓϩμΫτΛߏ੒Մೳ v ΞʔΩςΫνϟΛߟ͑Δͱ͖ͷύʔπͱͯ͠