å®å šæ¥æ¬èªã®ãã¥ãŒããªã¢ã«ã§ãOSS 掻åãå§ãã ð
åå¿è
ã§ãç°¡åã«åå ã§ããããã«èšèšããããæ¥æ¬èªã®ãªãŒãã³ãœãŒã¹ãããžã§ã¯ãã§ãã
ãã¥ãŒããªã¢ã«ã«æ²¿ã£ãŠãåããŠã®è²¢ç®ïŒã³ã³ããªãã¥ãŒãïŒãäœéšããŠãã ããïŒ
ããªãã®æåã®ãã«ãªã¯ãšã¹ãããåãã§ãæäŒãããŸã âïž
ãã®ãããžã§ã¯ãã¯ãGit/GitHub ã®å®è·µçãªäœ¿ãæ¹ãããªãŒãã³ãœãŒã¹ã§ã³ã©ãã¬ãŒã·ã§ã³ããäœæ³ãåŠã¶ããã®ãæ¥æ¬èªã®ãã¥ãŒããªã¢ã«ã§ãïŒ
- Git/GitHub ã®ãå®è·µçãªäœ¿ãæ¹ãåŠã³ããåå¿è
- ãªãŒãã³ãœãŒã¹ã«èå³ãããããã©ã®ããã«è²¢ç®ããã°ãããããããªã人ã
- ãããã¯ãããå€ãã®è²¢ç®ãéããŠãã³ã©ãã¬ãŒã·ã§ã³ã楜ãã¿ãªãããã¹ãã«ãé«ãããæ¹
- 1 人ã§ã¯åŠç¿ãã¥ãããGitHub ã䜿ã£ãå®éã®å ±åéçºãäœéšããããš
- 誰ããèªä¿¡ãæã£ãŠããªãŒãã³ãœãŒã¹ãããžã§ã¯ãã«è²¢ç®ããæ¹æ³ãåŠã¶ããš
- ãããŠããªãŒãã³ãœãŒã¹ã«ã«ãã£ãŒã奜ããªéçºè å士ããç¹ããæå©ããããããš
ãããããªãŒãã³ãœãŒã¹ãšã¯ââ
ãªãŒãã³ãœãŒã¹ãšã¯ïŒ
ãããããžã§ã¯ãããªãŒãã³ãœãŒã¹ã§ããæãããã¯èª°ã§ãèªç±ã«äœ¿ã£ãŠãåŠã³ãä¿®æ£ããŠãããªãã®ãããžã§ã¯ãããããªãç®çã§ãã£ãŠãé åžã§ãããšããããšãæå³ããŸãã
ã»ãšãã©ã®å ŽåããªãŒãã³ãœãŒã¹ã®ãããžã§ã¯ãã¯ã誰ã§ãèªç±ã«éçºã«åå ã§ããŸãïŒ
ãªãŒãã³ãœãŒã¹ã®ãããžã§ã¯ãã«å¯ŸããŠè²¢ç®ïŒã³ã³ããªãã¥ãŒãïŒããããšã¯ã
ä»ã®éçºè
ãšã®å
±åéçºãéããŠãèªèº«ã®ã¹ãã«ãé«ããçŽ æŽãããæ¹æ³ã§ãã
ããããªãããªãŒãã³ãœãŒã¹ã«ç¡é¢å¿ã§ãåŽåãå²ãå¿
èŠããããã©ããçåã«æã£ãŠãããªãã
ãã¡ããåç
§ããŠã¿ãŠäžããïŒãªãŒãã³ãœãŒã¹ã«ã³ã³ããªãã¥ãŒãããçç±ã¯ïŒ
ãã£ãããªãŒãã³ãœãŒã¹ãããžã§ã¯ããžã®è²¢ç®ããäœéšããŠã¿ãŸãããïŒ
ãã®ãããžã§ã¯ãã®åå è ãšããŠãContributors.json ãã¡ã€ã«ã«äžèšã®æ å ±ãè¿œèšããŸãïŒ
"name": "ããªãã®ãã³ãã«ããŒã ",
"github": "ããªãã®GitHubã¢ã«ãŠã³ãã®URL",
"favoriteColor": "ããªãã®å¥œããªã«ã©ãŒã³ãŒã",
"favoriteEmoji": "ããªãã®å¥œããªçµµæå"
å
¥åãããæ
å ±ã¯ãçµµæåã®ã¢ã€ã³ã³ãšããŠãWebãµã€ãäžã«è¡šç€ºãããŸãã
ãªã®ã§ãã³ã³ããªãã¥ãŒã¿ãŒãå¢ãããã³ã«ããµã€ãäžãè³ããã«ãªããŸãïŒ
emoji-animation.mp4
ç§ãã¡ã¯ãFirst Contributions JA ã® Web ãµã€ãããä»ãããã£ãšPOPã«ãããã§ãïŒ
ãã²ãå®éã«æãåãããŠã¿ãŠãã ãã
- å®éã«æãåãã
- ã»ããã¢ãã:
- Step 1: ãã®ãªããžããªããã©ãŒã¯
- Step 2: ããŒã«ã«ãã·ã³ãžã¯ããŒã³
- Step 3: äœæ¥çšãã©ã³ããäœæ
- Step 4: å€æŽãå ãã
- Step 5: å€æŽãã³ããã
- Step 6: å€æŽãããã·ã¥
- Step 7: ãã«ãªã¯ãšã¹ãïŒPRïŒãäœæ
- Step 8: ã¬ãã¥ãŒãšãã£ãŒãããã¯ã«å¯Ÿå¿
- Finish: ð
- ãããªãã¹ããã
- ãã®ä»ã®è²¢ç®
8 ã€ã®ç°¡åãªã¹ãããã§ããªãŒãã³ãœãŒã¹ã®ã³ã³ããªãã¥ãŒã¿ãŒã«ãªã ð
- ããå©ããå¿ èŠãªå ŽåãDiscussionsã§è³ªåããŠãã ããïŒ
- ãã®ãããžã§ã¯ãã«é¢ããæ¹åç¹ãèŠã€ããå Žåã¯ãIssuesããå ±åããŠãã ããïŒ
ã©ããªäºçŽ°ãªããšã§ãã倧æè¿ã§ã ð
- ãã GitHub ã®ã¢ã«ãŠã³ããæã£ãŠããªãå Žåã¯ãSign upããã¢ã«ãŠã³ããäœæããŠãã ããã
- ãããŠãå¿ èŠã«å¿ããŠå šãã®åå¿è åãã®GitHub Hello World ã®ãã¥ãŒããªã¢ã«ãå ã«è¡ãããšããå§ãããŸãã
- ãã¹ã¯ãŒãã®ä»£ãããšãªãã¢ã¯ã»ã¹ããŒã¯ã³ãèšå®ãããŠããªãå Žåãã¯ããŒã³ãªã©ã®ã¿ã€ãã³ã°ã§ãšã©ãŒãçããããšããããŸãã
- ãã®å Žåã¯GitHub ã¢ã¯ã»ã¹ããŒã¯ã³ã®èšå®ãåç §ããŠãã ããã
- GitHub äžã®ãããžã§ã¯ãããŒãžïŒãã®ããŒãžïŒã®å³äžã«ãã "Fork" ãã¿ã³ãã¯ãªãã¯ããŠããã®ãªããžããªããã©ãŒã¯ããŸãã
- ãããŠã"Create fork"ãã¿ã³ãã¯ãªãã¯ããŸãã
- ãRepository nameããDescriptionããCopy the
main
branch onlyããªã©ã®é ç®ã¯ããã¹ãŠåæã®ãŸãŸã§OKã§ãïŒ
- ãRepository nameããDescriptionããCopy the
Tip
ããã«ãããããªãã® GitHub ã¢ã«ãŠã³ãã«ããã®ãªããžããªã®ã³ããŒãäœæãããŸã ð
GitHub äžã§ãã¡ã€ã«ãç·šéããããšãå¯èœã§ããã
ããäžè¬çãªã¯ãŒã¯ãããŒãäœéšããããããã©ãŒã¯ãããªããžããªãããªãã®ããŒã«ã«ãã·ã³ã«ã³ããŒããŸãã
- GitHub äžã®ããã©ãŒã¯ãããªããžããªã®ããŒãžã«ç§»åããç·è²ã® "Code" ãã¿ã³ãã¯ãªãã¯ããHTTPS ã® URL ãã³ããŒããŸãã
- URL ã¯ã次ã®ããã«ãªã£ãŠããã¯ãã§ãïŒ
https://github.com/<ããªãã®ã¢ã«ãŠã³ãå>/first-contributions-ja.github.io.git
- URL ã¯ã次ã®ããã«ãªã£ãŠããã¯ãã§ãïŒ
- ã¿ãŒããã«ãéãããªããžããªãã¯ããŒã³ãããã£ã¬ã¯ããªã«ç§»åããŸãã
- äŸãã°ãã¯ããŒã³å ããã¹ã¯ãããã«æå®ããå Žåã以äžã®ã³ãã³ãã䜿çšã§ããŸãã
cd desktop
- 以äžã®ã³ãã³ãã䜿çšããŠããã©ãŒã¯ãããªããžããªãããŒã«ã«ãã·ã³ã«ã¯ããŒã³ããŸãïŒ
git clone å ã»ã©ã³ããŒããã¯ããŒã³URL
Tip
ããã«ããããªããžããªãããªãã®ããŒã«ã«ãã·ã³ã«ã³ããŒãããããŒã«ã«ç°å¢ã§äœæ¥ããããšãå¯èœã«ãªããŸãã ð»
-
次ã®ã³ãã³ãã§ããªããžããªã®ãã£ã¬ã¯ããªå ã«ç§»åããŸãïŒ
cd first-contributions-ja.github.io
-
次ã®ã³ãã³ãã§ããã®ãããžã§ã¯ãã«å¿ èŠãªããã±ãŒãžããã€ã³ã¹ããŒã«ããŸãïŒ
npm install
ã¡ã¢: npm install ãšã¯ââ
Node.jsãã€ã³ã¹ããŒã«ãããŠããç¶æ ã§ã
npm install
ã³ãã³ããå®è¡ãããšããã®ãããžã§ã¯ãã«å¿ èŠãªã©ã€ãã©ãªãäžæ¬ã§ã€ã³ã¹ããŒã«ã§ããŸãã- ããŒã«ã«ãµãŒããŒãèµ·åãããã©ãŠã¶ã§ã®è¡šç€ºã確èªããããš
npm run dev
ã³ãã³ãå®è¡åŸã衚瀺ãããURLãã¯ãªãã¯ããã°ç¢ºèªå¯èœã§ã
- ã³ãããæã«ã³ãŒãã®ãã§ãã¯ã»æŽåœ¢ãèªåã§è¡ãããš
- huskyãšããã©ã€ãã©ãªã䜿ã£ãŠå®è¡ãããŸã
- èªåã§å®è¡ãããã®ã§ãäœãã³ãã³ããå®è¡ããããäœæ¥ãããå¿ èŠã¯ãããŸãã
npm install
ã³ãã³ãã«ã€ããŠããã詳ããå 容ã¯ããã¡ããåç §ããŠã¿ãŠäžããïŒð§æ³šæ) ãããããªãã®ããŒã«ã«ãã·ã³ã«ãNode.js ãã€ã³ã¹ããŒã«ãããŠããªãå Žåã
npm install
ã³ãã³ãã§ããšã©ãŒãçºçããŸãããã®å Žåã2éãã®å¯ŸåŠæ³ããããŸãã
npm install
ã®æé ãé£ã°ãã- ãã®æé ãè¡ãããšããæäœéã®ã³ã³ããªãã¥ãŒã·ã§ã³äœéšã¯ã§ãããããé£ããå Žåã¯é£ã°ããŠããã ããŠããŸããŸããã
- ã©ã®ãããã®æ¹ãããã§ã€ãŸãããåèãŸã§ã«ç¥ãããã®ã§ããã«ãªã¯ãšã¹ãã«ã
npm install
ãããŸããããªãã£ãããšãã£ãå ±åãããŠããã ãããšå€§å€åèã«ãªããŸãã
- Node.js ãã€ã³ã¹ããŒã«ããã
- ã€ã³ã¹ããŒã«ã®æé ã«é¢ããŠã¯ã以äžã®ãµã€ããåç §ããŠã¿ãŠäžããã
- Node.js å ¬åŒãµã€ã / Node.jsã€ã³ã¹ããŒã«æ¹æ³(macOS) Progate / Node.jsã€ã³ã¹ããŒã«æ¹æ³(Windows) Progate
- Node.jsã«ã€ããŠç¥ãããå Žå㯠Node.jsãšã¯ãªã«ãïŒãªãã¿ããªäœ¿ã£ãŠããã®ãïŒ Qiita ãåç §ããŠã¿ãŠäžããã
- Web/JavaScript éçºã«èå³ãããå Žåã¯ããã®æ©äŒã«ã€ã³ã¹ããŒã«ããããšããããããããŸãð
- ããŒã«ã«ãµãŒããŒãèµ·åãããã©ãŠã¶ã§ã®è¡šç€ºã確èªããããš
- 次ã«ããããžã§ã¯ãã®
main
ãã©ã³ãããããªãã®äœæ¥ãåãé¢ãããã«ãæ°ãããã©ã³ããäœæããŠãã ããã- 次ã®ã³ãã³ãã䜿çšã§ããŸãïŒ
git switch -c <ãã©ã³ãå>
- ãã©ã³ãåã¯ãããªããããããè¡ãäœæ¥ã«é¢é£ããæå³ã®ããååãä»ããŸãã ãªã®ã§ã次ã®ããã«ãªããŸãïŒ
git switch -c add-yourname
- ð§æ³šæïŒ
yourname
ãããªãã®ãã³ãã«ããŒã ã«çœ®ãæããããšãå¿ããªãã§ãã ãã- ãã©ã³ãåã«ã¯ãã²ãããªã挢åã空çœã¯äœ¿ãããåè§è±æ°åã§å
¥åããŠãã ãã
- â: ããã®ã¡ã²ããè»éã¡ã²ããOgino Chihiro
- äŸïŒ
git switch -c add-oginochihiroâš
- 次ã®ã³ãã³ãã䜿çšã§ããŸãïŒ
Tip
ããã«ããããããžã§ã¯ãã®main
ãªããžããªã«çŽæ¥åœ±é¿ãäžããããšãªããå€æŽãå ããæºåãæŽããŸãã ðµ
- äœæ¥ãéå§ãããããVSCode ãªã©ã®ã奜ããªã³ãŒããšãã£ã¿ã§ãã¯ããŒã³ãããã©ã«ããéããŸãã
- å€æŽãå ããåã«ãåã®ã¹ãããã§äœæãããã©ã³ãã§äœæ¥ããããšã確èªããŠãã ããïŒ
- 次ã®ã³ãã³ãã§ãçŸåšã®ãã©ã³ãã確èªã§ããŸãïŒ
git status
- ããã§ã¯ Contributors.json ãã¡ã€ã«ã«å€æŽãå ããŸãã
- Contributors.json ãã¡ã€ã«ã®ããªã¹ãã®æ«å°Ÿãã«ã以äžã®ã³ãŒããã³ããŒããŠè²Œãä»ããŸãã
, { "name": "ããªãã®ãã³ãã«ããŒã ", "github": "ããªãã®GitHubã¢ã«ãŠã³ãã®URL", "favoriteColor": "ããªãã®å¥œããªã«ã©ãŒã³ãŒã", "favoriteEmoji": "ããªãã®å¥œããªçµµæå" }
- ãããŠã貌ãä»ããããã¹ãã®äžèº«ããããªãç¬èªã®å
容ã«çœ®ãæããŸãã
- ðš 次ã®ãµã€ããåèã«ããŠã¿ãŠãã ããïŒçµµæåäžèŠ§ãåè²å€§èŸå žãæ¥æ¬ã®äŒçµ±è²
- äŸãã°ãå šãŠçœ®ãæããã以äžã®ããã«ãªããŸãïŒ
<!-- å€æŽåŸ --> ~~ }, { "name": "oginochihiro", "github": "https://github.com/first-contributions-ja", "favoriteColor": "#ffffff", "favoriteEmoji": "ð" } ]
- åã³ã¿ãŒããã«ã«ç§»åãã以äžã®ã³ãã³ãã䜿çšããŠãå€æŽãããŒã«ã«ãªããžããªã«ã³ãããããŸãã
yourname
ãããªãã®ãã³ãã«ããŒã ã«çœ®ãæããããšãå¿ããªãã§ãã ããã
git add . git commit -m "yournameãã³ã³ããªãã¥ãŒã¿ãŒã«è¿œå "
Tip
ããã«ãããããªãã Contributors.json ãã¡ã€ã«ã«å ããå€æŽããèšé²ãããŸã ð
- ãã©ãŒã¯ãããªã¢ãŒããªããžããªã«å€æŽãããã·ã¥ããŸãïŒ
git push origin HEAD
Tip
ããã«ãããå ã»ã©ã®ã³ãããïŒããŒã«ã«ã§ã®å€æŽå 容ïŒããGitHubäžã®ããªãã®ãªã¢ãŒããªããžããªã«åæ ãããŸã ðŸ
- GitHub äžã®ããã©ãŒã¯ãããªã¢ãŒããªããžããªã®ããŒãžïŒ
https://github.com/ããªãã®ã¢ã«ãŠã³ã/first-contributions-ja.github.io
ïŒã«ç§»åããŸãã - äžéšã«è¡šç€ºãããŠãã"Compare & pull request" ãã¿ã³ãã¯ãªãã¯ããŸãã
- ãããŠã以äžã®ããšã確èªãããã"Create pull request" ãã¿ã³ãã¯ãªãã¯ããŸãã
- 念ã®ãããããªãã®ãªããžããªã®
add-yourname
ãã©ã³ããããfirst-contributions-jsã®main
ãã©ã³ãã«åãã£ãŠããããšã確èªããŠãã ããïŒ - âšã¿ã€ãã«ã¯åæå ¥åã®ãŸãŸã§ãdescription ã¯ç©ºæ¬ã§OKã§ãïŒ
- 念ã®ãããããªãã®ãªããžããªã®
Tip
ããã«ãããããªãããã©ãŒã¯ããŠè¡ã£ãå€æŽãããã©ãŒã¯å ã®ãªããžããªã«åæ ãããããã«ãªã¯ãšã¹ãããŸã ð
ãããžã§ã¯ãã®ã¡ã³ãããŒã«ãã£ãŠãããªãã® PR ãã¬ãã¥ãŒïŒç¢ºèªïŒãããŸãã
- ã¬ãã¥ã¢ãŒã PR ã«å¯ŸããŠå€æŽãæ±ããã®ã¯ããæ®éã®ããšã§ãããããããèµ·ãã£ãŠããããããäºã ãšèããŠä¿®æ£ãå ããŠãã ããã
- ãã®å Žåãå ã»ã©ãšåãäœæ¥çšãã©ã³ãã«æ»ããèŠæ±ãããä¿®æ£ãè¡ã£ãããåãããã«å€æŽãã³ãããããŠããã·ã¥ããã ãã§ãã
- PR ã¯æ°ããããã·ã¥ã«ãã£ãŠãèªåçã«æŽæ°ãããŸãã
ã»ãšãã©ã®å Žå㯠24 æé以å ã«ã¬ãã¥ãŒããŸãããæ°æ¥ã®é ããçºçããããšããããŸããæ°é·ã«ãåŸ ã¡ãã ãã â
- ãã«ãªã¯ãšã¹ããæ¿èªããããšãããªããå ããå€æŽã¯ã¡ã€ã³ãããžã§ã¯ãã«ããŒãžãããŸãã
ãç²ãæ§ã§ãïŒ
ãã㊠First Contributions JA ã«ãæéãšåŽåãå²ããŠè²¢ç®ããŠããã ãããããšãããããŸãïŒïŒ
Important
ãããã®ãããžã§ã¯ãã圹ã«ç«ã€ãšæã£ãå Žåã¯ãããŒãžã®äžéšãã âstar ãã¿ã³ãæŒããŠãã ããïŒ
ãŸãããã®ãããžã§ã¯ããåºããããã«ããã©ãã¯ãŒãç¥ãåãã«å
±æããŠãã ããïŒ
ããªãã¯ããªãŒãã³ãœãŒã¹ã®ãããžã§ã¯ãã«è²¢ç®ããæ¹æ³ãåŠã³ãŸããïŒ
- è¡ã£ãäœæ¥ãæ¯ãè¿ã£ãŠãç¥èãå®çãããŠãã ããã
- ããªãã¯ã³ã³ããªãã¥ãŒã¿ãŒãšããŠããäœéšãããæšæºçãªã¯ãŒã¯ãããŒïŒããã¥ã¡ã³ããèªã â ãã©ãŒã¯ â å€æŽãå ãã â ãã«ãªã¯ãšã¹ãïŒãå®äºãããšããã§ãïŒ
- First Contributions JA ã¯ããªãŒãã³ãœãŒã¹ã§éå¶ã»éçºãããŠãããããžã§ã¯ããªã®ã§ãäžèšã®ãã¥ãŒããªã¢ã«ãšã¯å¥ã®åœ¢ã§è²¢ç®ããããšãã§ããŸãã
- Discussionsã«ãŠããã®ãããžã§ã¯ãã«é¢ããææ³ãèãããŠãã ãã ð
- ããèå³ãããã°ããã®ä»ã®è²¢ç®ã確èªããŠãã ããã
- ä»ã®ãªãŒãã³ãœãŒã¹ãããžã§ã¯ãã«ããè²¢ç®ããŠã¿ãŠãã ããïŒ
- GitHub äžã®åå¿è åãã®ãããã¯(first-contributionsãgood-first-issueïŒããã§ãã¯ããŠã¿ãŠãã ããïŒ
- è²¢ç®ããããªããžããªãããã°ããgood first issueããšããã©ãã«ã®ã€ããã€ã·ã¥ãŒãæ¢ããŠãã ããã
- ããã¯äžè¬çã«ãç¹å®ã®ãããžã§ã¯ãããªãŒãã³ãœãŒã¹èªäœã«æ £ããŠããªãåå¿è åãã®ã€ã·ã¥ãŒã§ããããšãè¡šããŸãïŒ
ããå€ãã®è²¢ç®ããããæ¹ã¯ãè²¢ç®ã¬ã€ãã©ã€ã³ãåç
§ããŠãã ããïŒ
ã³ãŒãã®è¿œå ããã°ã®ä¿®æ£ãããã¥ã¡ã³ãã®æ¹åãªã©ãã©ããªäºçŽ°ãªè²¢ç®ã倧æè¿ã§ã ð€
ãã®ãããžã§ã¯ãã¯ãMIT LICENSEã®äžã§ã©ã€ã»ã³ã¹ãããŠããŸãã
ãã®ãããžã§ã¯ãã¯ãfirst-contributionsãContribute-To-This-Projectãªã©ã®ã
åå¿è
åãã«èšèšãããçŽ æŽããããªãŒãã³ãœãŒã¹ãããžã§ã¯ããã圱é¿ãåããŠããŸãã