Home - ChoDragon9/posts GitHub Wiki



์‹ ํ˜ธ๋“ฑ ๋ชจ๋ธ

  • ๋…น์ƒ‰: ์ •์ƒ ๊ถค๋„๋ฅผ ๋”ฐ๋ฅธ๋‹ค. ๊ฒฝ๋กœ๋ฅผ ๋งŽ์ด ์ˆ˜์ •ํ•˜์ง€ ์•Š์•„๋„ ๊ธฐ๋Œ€์น˜๋ฅผ ์ถฉ์กฑํ•  ๊ฐ€๋Šฅ์„ฑ์ด ํฌ๋‹ค.
  • ๋…ธ๋ž€์ƒ‰: ์•ฝ์†ํ•œ ๋‚ ์งœ์™€ ๊ธฐํƒ€ ๊ธฐ๋Œ€์น˜๋ฅผ ๋งž์ถ”๋ ค๋ฉด ์ฆ‰๊ฐ์ ์ด๊ณ ๋„ ์ƒ๋‹นํ•œ ๊ฒฝ๋กœ ์ˆ˜์ •์ด ํ•„์š”ํ•˜๋‹ค.
  • ๋นจ๊ฐ„์ƒ‰: ๊ถค๋„๋ฅผ ๋ฒ—์–ด๋‚ฌ๋‹ค. ์ผ์ •์„ ๋†“์ณค๊ฑฐ๋‚˜, ๊ทน๋‹จ์ ์ธ ์กฐ์น˜๋ฅผ ์ทจํ•˜์ง€ ์•Š์œผ๋ฉด ๊ณง ๋†“์นœ๋‹ค. ์ตœ์†Œํ•œ ๊ณ„ํš ์žฌ์ˆ˜๋ฆฝ์ด ํ•„์š”ํ•˜๋‹ค.

GIT

  • PR ๋จธ์ง€ ์ปค๋ฐ‹ Revert: git revert <Hash> -m 1
  • ํ˜„์žฌ ๋ธŒ๋žœ์น˜: git symbolic-ref --short HEAD
  • pull: git pull origin "$(git symbolic-ref --short HEAD)"
  • alias
    • ์กฐํšŒ: git config --get-regexp --global alias
    • ์„ค์ •: git config --global alias.co checkout
  • pull upstream: git config --global alias.puc "pull upstream develop"
  • sparse-checkout

IDE

  • VSCode ๋‹จ์ถ•ํ‚ค
    • ๋‹จ์ถ•ํ‚ค ์„ค์ •: command + K
  • Intellij ๋‹จ์ถ•ํ‚ค
    • ์ฝ”๋“œ ์ •๋ฆฌ : option + command + L
    • multi cursor : shift + option(alt) + click
    • ํ…Œ์Šคํฌ ์ž๋™ ์‹คํ–‰ : control + R
    • ์ฝ”๋“œ ๊ตฌ์กฐ ํ‘œํ˜„ : command + 7
    • ์ตœ๊ทผ ์‚ฌ์šฉ ํŒŒ์ผ : command + E
  • ์›น์Šคํ†ฐ ๋ฉ€ํ‹ฐ ์„ ํƒ
    • Keymap => Add or Remove Caret
  • Live Template: ๋ฐ˜๋ณต๋˜๋Š” ํƒ€์ดํ•‘์„ ํƒฌํ”Œ๋ฆฟํ™”
  • ๋Œ€์†Œ๋ฌธ์ž ๋ณ€๊ฒฝ: Command + Shift + U
  • ๋™์ผํ•œ ๋ฌธ์ž ๋‹ค์ค‘ ์„ ํƒ: Control + G
  • Intellij ํ™•์žฅ์ž ์•ˆ์—ด๋ฆด ๋•Œ
  • TypeScript์˜ types ์ถ”์ ์•ˆ๋  ๋•Œ
    • WebStorm > Preferences > Languages & Frameworks > TypeScript > [x] TypeScript Language Service
  • 2019.3 ๋ฒ„์ „๋ถ€ํ„ฐ Nullish Coalescing operator ์‚ฌ์šฉ๊ฐ€๋Šฅ
  • yarn : Languages and Frameworks | Node.js and NPM ์—์„œ yarn ์„ค์ • ๊ฐ€๋Šฅ
  • [Webstorm] Auto import ์‹œ, alias ์„ค์ •
rootpath/config.js
System.config({
    "paths": {
        "~/*": "./src/*"
    }
});
  • [Webstorm] Auto import ์‹œ, single quote๋กœ ์ฝ๊ธฐ
    • Preferences > Editor > Code Style > JavaScript > Punctuation
      • [double] => [single] ๋กœ ๋ณ€๊ฒฝ
  • [Webstorm] ์ปค๋ฐ‹์ฐฝ ๋ชจ๋‹ฌ๋กœ ๋ณ€๊ฒฝํ•˜๊ธฐ: ์ปค๋ฐ‹ ๋Œ€ํ™”์ƒ์ž๋กœ ์ „ํ™˜ํ•ด์„œ ์‚ฌ์šฉ

์†Œ์†Œํ•œํŒ

  • ๋งฅ๋ถ์—์„œ ์•Œ๋ฆผ ๋ฐœ์ƒ ์•ˆ๋  ๋•Œ: ์•Œ๋ฆผ ์„ผํ„ฐ์—์„œ "๋””์Šคํ”Œ๋ ˆ์ด๋ฅผ ๋ฏธ๋Ÿฌ๋งํ•˜๊ฑฐ๋‚˜ ๊ณต์œ ํ•  ๋•Œ" ์˜ต์…˜ ํ™œ์„ฑํ™”
  • upsert: Update์™€ Insert
  • npm ci: npm install ๊ณผ ๋น„์Šท
  • PR Template: ์ €์žฅ์†Œ์— pull_request_template.md ํŒŒ์ผ ํฌํ•จ
  • ์ •์  ํŽ˜์ด์ง€ ๊ฐœ๋ฐœ(SPA x) : Webpack ์‚ฌ์šฉ. entry์— ๊ฐ ํŽ˜์ด์ง€์˜ js๋ฅผ ์ •์˜.
  • WebDriver screenshot
  • package-lock.json
  • href = Hypertext Reference
  • eslint-disable-line
  • Pull Request์—์„œ develop๊ณผ conflict ๋ฐœ์ƒ์‹œ feature ๋ธŒ๋žœ์น˜์™€ ๋จธ์ง€๋ฅผ ํ•˜์ง€ ์•Š๋Š” ๊ฒƒ์ด ์ข‹์Œ : feature์— ๋จธ์ง€์‹œ conflict์˜ ์ •์ƒ๋™์ž‘์„ ๋ณด์žฅ ํ•  ์ˆ˜ ์—†์Œ.
  • placeholder content
  • ADID
    • ๊ฐœ์ธ์„ ์‹๋ณ„ํ•˜์ง€ ์•Š๊ณ  ๋งž์ถคํ˜• ๊ด‘๊ณ  ์„œ๋น„์Šค๋ฅผ ์ œ๊ณตํ•  ์ˆ˜ ์žˆ๋„๋ก ๋ถ€์—ฌํ•˜๋Š” '๊ด‘๊ณ  ์‹๋ณ„์ž'
    • Android : GAID(Google Advertising ID), IOS : IDFA(IDentifier For Advertisers)
  • XAMPP ํŒŒ์ผ ์„œ๋ฒ„ ์„ค์ •์„ ์œ„ํ•œ php.ini ์ˆ˜์ •
    • upload_max_filesize=2M => upload_max_filesize=4096M
โš ๏ธ **GitHub.com Fallback** โš ๏ธ