Slide 1

Slide 1 text

தن໛Ҋ݅ͷ͜ͳ͔ͨ͠ WordCamp Osaka 2018

Slide 2

Slide 2 text

෱ౡݝࡏॅʢϦϞʔτʣ ΠϯϑϥɺϓϩάϥϜ ݄·Ͱݐઃۀʹۈ຿ ݄͔ΒϑϦʔϥϯεʹ ࣗݾ঺հ

Slide 3

Slide 3 text

ࣗݾ঺հ

Slide 4

Slide 4 text

ݱࡏͷۀ຿ ϓϩάϥϜ૊ΈࠐΈ γεςϜ։ൃ αʔόߏங αʔόอक αʔόܥࣄۀ ΢Σϒ੍࡞ࣄۀ WordPress

Slide 5

Slide 5 text

தن໛Ҋ݅ͱਫฏ෼ۀɺਨ௚෼ۀ πʔϧʢ%PDLFSɺ$*ʣΛ࢖͏ͱศར ͓ޓ͍Λଚॏ͠Α͏ ࠓ೔͓఻͍͑ͨ͜͠ͱ

Slide 6

Slide 6 text

খن໛Ҋ݅ͱதن໛Ҋ݅ ΞδΣϯμ தن໛Ҋ݅ͷ໰୊఺ தن໛Ҋ݅ͷ͜ͳ͔ͨ͠ ·ͱΊ

Slide 7

Slide 7 text

খن໛Ҋ݅ͱதن໛Ҋ݅ ΞδΣϯμ தن໛Ҋ݅ͷ໰୊఺ தن໛Ҋ݅ͷ͜ͳ͔ͨ͠ ·ͱΊ

Slide 8

Slide 8 text

খن໛Ҋ݅ʹ͍ͭͯ

Slide 9

Slide 9 text

খن໛Ҋ݅ʹ͍ͭͯ

Slide 10

Slide 10 text

খن໛Ҋ݅ͷνʔϜϏϧυ σΟϨΫλʔ σβΠφʔ ίʔμʔ ΤϯδχΞʢ݉೚ʣ σβΠϯ σβΠϯΧϯϓ

Slide 11

Slide 11 text

Ͱ͸தن໛Ҋ݅ͱ͸ʁ

Slide 12

Slide 12 text

νʔϜϝϯόʔਓҎ্ ෼ۀ தن໛Ҋ݅

Slide 13

Slide 13 text

தن໛Ҋ݅ͷྫ

Slide 14

Slide 14 text

தن໛Ҋ݅ͷྫ

Slide 15

Slide 15 text

No content

Slide 16

Slide 16 text

No content

Slide 17

Slide 17 text

No content

Slide 18

Slide 18 text

தن໛Ҋ݅ྫͷνʔϜϏϧυ σΟϨΫλʔ σβΠφʔ ίʔμʔ σβΠϯ σβΠϯΧϯϓ ϓϩάϥϚʔ x 2 ςελʔ x 3 ςετґཔ ࢓༷

Slide 19

Slide 19 text

தن໛Ҋ݅ͷྫ

Slide 20

Slide 20 text

No content

Slide 21

Slide 21 text

No content

Slide 22

Slide 22 text

No content

Slide 23

Slide 23 text

No content

Slide 24

Slide 24 text

தن໛Ҋ݅ྫͷνʔϜϏϧυ σΟϨΫλʔ σβΠφʔɾίʔμʔ ϓϩάϥϚʔ x 2 ςελʔ x 3 ςετґཔ ࢓༷

Slide 25

Slide 25 text

খن໛ ৬छ͕ඃΒͳ͍ ֓Ͷ໊ҎԼ தن໛ ৬छ͕ඃΔ ֓Ͷ໊Ҏ্ খن໛WTதن໛

Slide 26

Slide 26 text

খن໛Ҋ݅Ͱ͸ผͷ৬छΛͦΕͧΕ༻ҙ ৬छͷֻ͚࣋ͪ͋ΓʢσβΠφʔ͞Μ͕ίʔσΟϯάɺσΟϨ Ϋλʔ͞Μ͕σβΠϯɺίʔσΟϯάʣ தن໛Ҋ݅Ͱ͸ಉ͡৬छͰ෼ۀ͕ൃੜ ίʔμʔ͞Μ͕ख෼͚ͯ͠ରॲ ΤϯδχΞ͕ਓ தن໛Ҋ݅ͱ෼ۀ

Slide 27

Slide 27 text

ਨ௚෼ۀͱਫฏ෼ۀ

Slide 28

Slide 28 text

νʔϜϝϯόʔ͕ҧ͏৬ۀͷ৔߹ ਨ௚෼ۀ ಉ͡৬छͷ෼ۀ ਫฏ෼ۀ ਨ௚෼ۀͱਫฏ෼ۀ σΟϨΫλʔ σβΠφʔ ίʔμʔ ΤϯδχΞʢ݉೚ʣ ϓϩάϥϚʔ x 2

Slide 29

Slide 29 text

খن໛Ҋ݅ ਨ௚෼ۀͷΈ தن໛Ҋ݅ ਫฏ෼ۀ͋Γ খن໛WTதن໛

Slide 30

Slide 30 text

খن໛Ҋ݅ͱதن໛Ҋ݅ ΞδΣϯμ தن໛Ҋ݅ͷ໰୊఺ தن໛Ҋ݅ͷ͜ͳ͔ͨ͠ ·ͱΊ

Slide 31

Slide 31 text

தن໛Ҋ݅Ͱͷ໰୊఺

Slide 32

Slide 32 text

͓ޓ͍ͷྖҬ͕ҟͳΔ ΍Δ΂͖λεΫ͕͸͖ͬΓ͍ͯ͠Δ িಥ͠ʹ͍͘ ਨ௚෼ۀͰ͸ ͓ޓ͍Λଚॏ͠Α͏Ͷʂ

Slide 33

Slide 33 text

͓ޓ͍ͷྖҬ͕ॏෳ͢Δ ίʔυϨϕϧͰিಥ͢Δ όάमਖ਼ͷᐆດʹͳΔˡόάͷݪҼ͸ʜʁ ਫฏ෼ۀͰ͸ ͜ͷόά͸Կ͕ݪҼʁ

Slide 34

Slide 34 text

͓ޓ͍ͷྖҬ͕ॏෳ͢Δ ίʔυϨϕϧͰিಥ͢Δ όάमਖ਼ͷᐆດʹͳΔˡόάͷݪҼ͸ʜʁ όάͷ੹೚Λ௥ٻ࢝͠ΊΔ ਫฏ෼ۀͰ͸ όάຒΊͨͷ୭΍ͶΜʂ > git blame

Slide 35

Slide 35 text

͋Δ৔ॴͷίʔυ͕ଞਓͷίʔυΛഁյ͢Δ $44ͷ่յ ʮͱΓ͋͑ͣJNQPSUBOUʯ ਓͷ$44ׂ͕ΓࠐΜͰ͘Δ ίʔσΟϯάن໿ΛकΒͳ͍ ໊ࢦ͠ͷόάใࠂ িಥίʔυϨϕϧͰͷিಥ margin: 0; important! position: relative; important font-size: 1.2em; important! if (is_single()) return TRUE; else return false;

Slide 36

Slide 36 text

͋Δ৔ॴͷίʔυ͕ଞਓͷίʔυΛഁյ͢Δ $44ͷ่յ ʮͱΓ͋͑ͣJNQPSUBOUʯ ਓͷ$44ׂ͕ΓࠐΜͰ͘Δ ίʔσΟϯάن໿ΛकΒͳ͍ ໊ࢦ͠ͷόάใࠂ িಥίʔυϨϕϧͰͷিಥ ϘέʂΧεʂ ϘέʂΧεʂ

Slide 37

Slide 37 text

λεΫʮʢ୲౰ᓎҪʣ໰͍߹ΘͤϑΥʔϜ಺༰मਖ਼ʯ λεΫ̎ʮʢ୲౰ͻΖ͸͘ʣ໰͍߹ΘͤϑΥʔϜͷ$47ग़ྗʯ িಥλεΫ෼୲

Slide 38

Slide 38 text

λεΫʮʢ୲౰ᓎҪʣ໰͍߹ΘͤϑΥʔϜ಺༰मਖ਼ʯ λεΫ̎ʮʢ୲౰ͻΖ͸͘ʣ໰͍߹ΘͤϑΥʔϜͷ$47ग़ྗʯ मਖ਼͕িಥ͢Δʂ িಥλεΫ෼୲ PMԿͯ͠ΜͶΜʂ

Slide 39

Slide 39 text

ݱ৔͕Ԍ্ʜ

Slide 40

Slide 40 text

ਨ௚෼ۀͷͱ͖͸িಥ͠ʹ͍͘ ਫฏ෼ۀ͢Δͱޮ཰͕Լ͕Δ ਓਓ㱠ਓ Ԍ্͠΍͍͢ݪҼ

Slide 41

Slide 41 text

খن໛Ҋ݅ͱதن໛Ҋ݅ ΞδΣϯμ தن໛Ҋ݅ͷ໰୊఺ தن໛Ҋ݅ͷ͜ͳ͔ͨ͠ ·ͱΊ

Slide 42

Slide 42 text

ղܾͷྫ

Slide 43

Slide 43 text

ίʔσΟϯάʹϧʔϧΛઃ͚Δ ίʔυن໿ ໋໊نଇΛ࡞Δ ࣾ಺ΨΠυϥΠϯ #&. ڭՊॻʢϦʔμϒϧίʔυ·͡ͰΦεεϝʣ িಥίʔυϨϕϧ if (is_single()) return TRUE; else return false; margin: 0; important! position: relative; important font-size: 1.2em; important!

Slide 44

Slide 44 text

No content

Slide 45

Slide 45 text

πʔϧΛ࢖ͬͨن໿४ڌ

Slide 46

Slide 46 text

No content

Slide 47

Slide 47 text

͓ޓ͍Λิ͍߹͑ΔνʔϜ࡞Γ όάΛ଀ΜͰਓΛ଀·ͣ HJUCMBNFʢ੹ΊΔʣͱHJUBOOPUBUFʢ٭஫ʣ ʮ୭͕ͳͥ͜ͷόάΛຒΊࠐΜ͔ͩʯΛ໌Β͔ʹ͢Δ͕ɺνʔ Ϝ಺Ͱઈରʹ੹Ίͳ͍ʢ৑ஊ͸0,ɻͨͩ͠৑ஊͰ༗Δ͜ͱΛ ໌Β͔ʹͯ͠όάΛຒΊͨ͜ͱΛ੹Ίͳ͍ʣ িಥλεΫ෼୲ιϑτͷղܾ

Slide 48

Slide 48 text

ίʔσΟϯάن໿ͷಋೖ ΈΜͳͷ؀ڥͰಉ͡Α͏ʹಈ͘͜ͱͷಋೖʢ΂͖౳ੑʣ ࣗಈςετ؀ڥͷಋೖ িಥλεΫ෼୲ϋʔυղܾ

Slide 49

Slide 49 text

΂͖౳ੑ ႈ౳ੑ

Slide 50

Slide 50 text

%PDLFSͷಋೖʢ7BHSBOUʣ 8PSE1SFTTͷ৔߹ɺσʔλϕʔεͷಉظγεςϜಋೖ ΂͖౳ੑͷ֬อ

Slide 51

Slide 51 text

։ൃ؀ڥ

Slide 52

Slide 52 text

ϩʔΧϧ։ൃ؀ڥ ຊ൪αʔό ։ൃαʔό MAMP Vagrantʢڞ༻ʣ Vagrantʢݸผʣ Docker ΂͖౳ੑͳ͠ ΂͖౳ੑͳ͠ ΂͖౳ੑͳ͠ ΂͖౳ੑ͋Γ ΂͖౳ੑ͋Γ ೉қ౓: ௿ ೉қ౓: த ೉қ౓: த ೉қ౓: ߴ ೉қ౓: ߴ Πέͯͳ͍ ͪΐͬͱָ͍͠ ָ͍͠ ָ͍͠ ΊͬͪΌָ͍͠ʂ

Slide 53

Slide 53 text

ϩʔΧϧ։ൃ؀ڥ ຊ൪αʔό ։ൃαʔό MAMP Vagrantʢڞ༻ʣ Vagrantʢݸผʣ Docker ΂͖౳ੑͳ͠ ΂͖౳ੑͳ͠ ΂͖౳ੑͳ͠ ΂͖౳ੑ͋Γ ΂͖౳ੑ͋Γ ೉қ౓: ௿ ೉қ౓: த ೉қ౓: த ೉қ౓: ߴ ೉қ౓: ߴ Πέͯͳ͍ ͪΐͬͱָ͍͠ ָ͍͠ ָ͍͠ ΊͬͪΌָ͍͠ʂ DockerೖΕͯΈΑ͏ʂ

Slide 54

Slide 54 text

ਨ௚෼ۀͱਫฏ෼ۀͱ։ൃ؀ڥ ਨ௚෼ߦࣄ͸ႈ౳ੑʹͩ͜ΘΒͳͯ͘0, ͦΕͧΕͷ৬छ͕ಠࣗͷ։ൃ؀ڥͰ0, ։ൃ༻Ϩϯλϧαʔόɺ9".11ɺ.".1ɺ 7BHSBOUɺ%PDLFS ςετΛߦ͑Δ؀ڥͮ͘Γ શൠతʹΤϯδχΞʢϑϩϯτΤϯδχΞɺαʔό αΠυΤϯδχΞʣͷαϙʔτ͕ඞਢ ΤϯδχΞνʔϜ͕αϙʔτ͢Δҙࣝ %PDLFSಋೖ࣌ͷ஫ҙ఺

Slide 55

Slide 55 text

$* $JSDMF$* ϓϥΠϕʔτϦϙδτϦ΋੍࣌ؒݶ෇͖ແྉ %PDLFSαϙʔτ %PDLFSΛऔΓೖΕ͍ͯΕ͹ͦͷ··࢖͑Δ ࣗಈςετ؀ڥ

Slide 56

Slide 56 text

։ൃ؀ڥ

Slide 57

Slide 57 text

No content

Slide 58

Slide 58 text

$JSDMF$*Λ࢖ͬͨྫ

Slide 59

Slide 59 text

ςετͱ εΫϦʔϯγϣοτ

Slide 60

Slide 60 text

1)1Ͱಈ͘ςετπʔϧ ࣗવݴޠͬΆ͘ςετ͕ॻ ͚Δ 8PSE1SFTTͱ૬ੑ͕ྑ͍ γφϦΦ͝ͱʹεΫγϣશ ࣗಈՄೳ #FIBU

Slide 61

Slide 61 text

εΫγϣΊͬͪΌ͍͍Ͱ͢ ࣮֬ͳ֬ೝ ػೳมߋ ඦฉ͸Ұݟʹ͔ͣ͠ εΫϦʔϯγϣοτ

Slide 62

Slide 62 text

ඇΤϯδχΞʹ΋ॻ͍ͯ΄͍͠ σΟϨΫλʔ ςελʔ ͕ͩ೉͍͠ #FIBU ͜Μͳͷແཧʂ

Slide 63

Slide 63 text

σϞ

Slide 64

Slide 64 text

No content

Slide 65

Slide 65 text

No content

Slide 66

Slide 66 text

No content

Slide 67

Slide 67 text

Ҋ݅ͷσΟϨΫλʔ͞Μ޲͚ʹ ϑΥʔΧε ୅உੑඇΤϯδχΞ όʔδϣϯΞοϓ࣌ʹ֬ೝΛ ؆ུԽ ςετπʔϧΛ࡞ͬͯΈͯ

Slide 68

Slide 68 text

খن໛Ҋ݅ͱதن໛Ҋ݅ ΞδΣϯμ தن໛Ҋ݅ͷ໰୊఺ தن໛Ҋ݅ͷ͜ͳ͔ͨ͠ ·ͱΊ

Slide 69

Slide 69 text

·ͱΊ

Slide 70

Slide 70 text

ਫฏ෼ۀ͢Δͱதن໛ தن໛͸িಥ͢Δ ϋʔυʢπʔϧʣͱιϑτʢਓؒؔ܎ʣͰղܾ͠Α͏ શମΛ௨ͯ͠

Slide 71

Slide 71 text

ྑ͍งғؾͮ͘Γ ίʔσΟϯάن໿ɺίʔσΟϯάϧʔϧͷࡦఆ $*ͷઃఆपΓ λεΫͷׂΓৼΓ σΟϨΫλʔͷิࠤɺٞࣄ࿥ ΢ΣϒܥϓϩδΣΫτϚωʔδϟͷ࢓ࣄ

Slide 72

Slide 72 text

͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠ ࠙਌ձɺίϯτϦϏϡʔλʔσΠʹ΋ࢀՃ͠·͢ͷ Ͱɺ͓ؾܰʹ੠͔͚͍ͯͩ͘͞ʂͥͻʂ

Slide 73

Slide 73 text

εΩοϓ

Slide 74

Slide 74 text

ίʔσΟϯάɺϓϩάϥϜ෦෼ͷ੹೚ऀͷબఆ ໊শɺϦʔυΤϯδχΞɺϓϩδΣΫτϚωʔδϟɺϦʔμʔ ϝϯόʔਤͷ࡞੒ ϝϯόʔਤΛ࡞੒͢Δ͜ͱͰҙࣝ෇͚͕௙Δ ͨͩ͠੹೚ڥքΛ໌֬ʹͤͣɺ౿Έೖͬͯ΋ॿ͚߹͏νʔϜʹɻ શମΛ௨ͯ͠