Pro Yearly is on sale from $80 to $50! »

意外に知らないnpmと便利なCLI

 意外に知らないnpmと便利なCLI

Ehime.js #2の資料です。
https://ehimejs.connpass.com/event/153511/

E9ce07196f470caff07053e98a88fa9e?s=128

Toshihisa Tomatsu

November 19, 2019
Tweet

Transcript

  1. ҙ֎ʹ஌Βͳ͍OQNͱศརͳ$-* &IJNFKT 5PTIJIJTB5PNBUTV

  2. ֎দढ़ঘ 5PTIJIJTB5PNBUTV  αΠϘ΢ζגࣜձࣾ ϑϩϯτΤϯυΤΩεύʔτνʔϜ ౦ژˠѪඤ &IJNFKT !UPTIJUPNB !UPTIJ@@UPNB 2

  3. OQN

  4. OQNͱ͸ʁ OQN /PEF1BDLBHF.BOBHFS 
 +BWB4DSJQUͷύοέʔδϚωʔδϟʔ ϨδετϦ IUUQTXXXOQNKTDPN  OQNͷ$-* IUUQTHJUIVCDPNOQNDMJ

     ੈքͷ୭͔͕࡞ͬͨศརͳύοέʔδΛOQN ϨδετϦ ʹஔ͍ͯɺ OQNͷ$-* OQNJOTUBMM ͰΈΜͳ͕ར༻Ͱ͖Δ
  5. OQNͱ͸ʁ OQN /PEF1BDLBHF.BOBHFS 
 +BWB4DSJQUͷύοέʔδϚωʔδϟʔ ϨδετϦ IUUQTXXXOQNKTDPN  OQNͷ$-* IUUQTHJUIVCDPNOQNDMJ

     ੈքͷ୭͔͕࡞ͬͨศརͳύοέʔδΛOQN ϨδετϦ ʹஔ͍ͯɺ OQNͷ$-* OQNJOTUBMM ͰΈΜͳ͕ར༻Ͱ͖Δ ύοέʔδ
  6. None
  7. None
  8. None
  9. OQNͱ͸ʁ ࠶ܝ OQN /PEF1BDLBHF.BOBHFS 
 +BWB4DSJQUͷύοέʔδϚωʔδϟʔ OQNKTDPN IUUQTXXXOQNKTDPN  ύοέʔδϨδετϦ

    IUUQTEPDTOQNKTDPNNJTDSFHJTUSZ  OQNͷ$-* IUUQTHJUIVCDPNOQNDMJ  ੈքͷ୭͔͕࡞ͬͨศརͳύοέʔδΛOQN ϨδετϦ ʹஔ͍ͯɺOQNͷ $-* OQNJOTUBMM ͰΈΜͳ͕ར༻Ͱ͖Δ
  10. OQNೖͬͯΔʁ /PEFKT͕Πϯετʔϧ͞Ε͍ͯΕ͹ɺࣗಈͰOQN΋ೖͬͯ͘Δ OQNŠWFSTJPO
  ZBSOͰ΋$-*ͰͰ͖Δ͜ͱ͸جຊతʹಉ͡

  11. ·ͣ࠷ॳʹ΍Δ͜ͱ ϓϩδΣΫτͷQBDLBHFKTPOΛ࡞੒ OQNͷ؅ཧϑΝΠϧ OQNJOJU OQNJOJUZͰ࣭໰ΛলུՄೳ

  12. ύοέʔδͷΠϯετʔϧ OQNJOTUBMMQBDLBHFOBNFPSOQNJ 1 σϑΥϧτ EFQFOEFODJFT %EFW%FQFOEFODJFT HάϩʔόϧʹΠϯετʔϧ͞ΕΔ όʔδϣϯࢦఆQBDLBHFOBNF!WFSTJPO

  13. ύοέʔδΛΠϯετʔϧ͢Δͱ QBDLBHFKTPOͱQBDLBHFMPDLKTPO͕ߋ৽͞ΕΔ QBDLBHFMPDLKTPO΋ؚΊͯίϛοτ͢Δ Πϯετʔϧ͍ͯ͠ΔύοέʔδͷґଘόʔδϣϯͳͲΛ؅ཧͯ͠ ͘ΕΔ ϓϩδΣΫτશମͰڞ༗͢Δ΋ͷ

  14. OQNJOTUBMMͱOQNDJ OQNJOTUBMM ৽͘͠ύοέʔδΛΠϯετʔϧ͢Δ৔߹ʹར༻ QBDLBHFMPDLKTPO͕มߋ͞ΕΔ OQNDJ DMFBOJOTUBMM  ϓϩδΣΫτΛDMPOFͨ͠ޙ΍QBDLBHFKTPOͷ಺༰ΛϩʔΧϧʹ൓ө͢Δ৔߹ QBDLBHFMPDLKTPO͸มߋ͞Εͳ͍

  15. OQNJOTUBMMͱOQNDJ OQNJOTUBMM ৽͘͠ύοέʔδΛΠϯετʔϧ͢Δ৔߹ʹར༻ QBDLBHFMPDLKTPO͕มߋ͞ΕΔ OQNDJ DMFBOJOTUBMM  ϓϩδΣΫτΛDMPOFͨ͠ޙ΍QBDLBHFKTPOͷߋ৽Λ൓ө͢Δ৔߹ QBDLBHFMPDLKTPO͸มߋ͞Εͳ͍ SNSGOPEF@NPEVMFTOQNJOTUBMM

    OQNDJ
  16. Πϯετʔϧͨ͠ύοέʔδͷҰཡ OQNMJTU OQNMJTUŠEFQUI ϩʔΧϧΠϯετʔϧͨ͠ύοέʔδͷҰཡ

  17. Πϯετʔϧͨ͠ύοέʔδΛ࢖͏ ྫ QSFUUJFS QSFUUJFSJOEFYKT
 ˠDPNNBOEOPUGPVOEQSFUUJFS OPEF@NPEVMFTCJOQSFUUJFSJOEFYKT

  18. Πϯετʔϧͨ͠ύοέʔδΛ࢖͏ ྫ QSFUUJFS QSFUUJFSJOEFYKT
 ˠDPNNBOEOPUGPVOEQSFUUJFS OPEF@NPEVMFTCJOQSFUUJFSJOEFYKT ໘౗

  19. OQNTDSJQUT QBDLBHFKTPOͷTDSJQUTͰొ࿥ OQNSVOTDSJQUOBNF TUBSU΍UFTUͳͲ͸SVOΛলུͰ͖Δ ྫ OQNSVOGPSNBUDIFDL

  20. ෳ਺ͷOQNTDSJQUTΛ࣮ߦ͍ͨ͠ OQNSVOBMM IUUQTXXXOQNKTDPNQBDLBHFOQNSVOBMM ෳ਺ͷOQNTDSJQUTΛॱ࣍ɺฒྻͰ࣮ߦͰ͖ͯศར OQNSVOMJOUOQNSVOCVJMEOQNUFTUKT OQNSVOBMMMJOUCVJMEUFTUKT

  21. ϩʔΧϧʹΠϯετʔϧͤͣʹɺखݩͰࢼ͍ͨ͠ OQYQBDLBHFOBNF ྫ OQYQSFUUJFSJOEFYKTŠXSJUF ϩʔΧϧʹΠϯετʔϧࡁΈˠͦΕΛར༻
 Πϯετʔϧ͞Εͯͳ͍ˠҰ࣌తʹΠϯετʔϧͯ͠ར༻ OQNTDSJQUTʹίϚϯυΛॻ͘ඞཁ͕ͳ͍ͷͰศར

  22. ύοέʔδͷΞϯΠϯετʔϧ OQNVOJOTUBMMQBDLBHFOBNF BMJBTFTSFNPWF SN S VO

  23. ύοέʔδͷΞοϓσʔτνΣοΫ Ξοϓσʔτ͕ඞཁͳ΋ͷΛνΣοΫ͠Α͏ OQNPVUEBUFE

  24. TFNWFS ηϚϯςΟοΫόʔδϣχϯά IUUQTTFNWFSPSHMBOHKB όʔδϣϯ൪߸ͷ෇͚ํͷ࢓༷ ྫ FTMJOU! .BKPS .JOPS 1BUDI

  25. IUUQTTFNWFSOQNKTDPN

  26. ύοέʔδͷΞοϓσʔτ OQNVQEBUF શͯͷϥΠϒϥϦ OQNVQEBUFQBDLBHFOBNF ݸผʹࢦఆ΋Մೳ ্͕Δόʔδϣϯ͸TFNWFSΛߟྀͨ͠࠷৽ͷ΋ͷ

  27. ύοέʔδͷΞοϓσʔτ OQNVQEBUF શͯͷϥΠϒϥϦ OQNVQEBUFQBDLBHFOBNF ݸผʹࢦఆ΋Մೳ ্͕Δόʔδϣϯ͸TFNWFSΛߟྀͨ͠࠷৽ͷ΋ͷ ·ΊʹϥΠϒϥϦΞοϓσʔτΛ΍Δͷ͸େม

  28. None
  29. None
  30. None
  31. ଞʹ΋͍Ζ͍Ζ OQNMJOL QPTUJOTUBMM OQNQVCMJTI FUD

  32. 5)"/,:06