๋ณธ๋ฌธ์œผ๋กœ ๊ฑด๋„ˆ๋›ฐ๊ธฐ

"vue" ํƒœ๊ทธ๋กœ ์—ฐ๊ฒฐ๋œ 1๊ฐœ ๊ฒŒ์‹œ๋ฌผ๊ฐœ์˜ ๊ฒŒ์‹œ๋ฌผ์ด ์žˆ์Šต๋‹ˆ๋‹ค.

๋ชจ๋“  ํƒœ๊ทธ ๋ณด๊ธฐ

ยท ์•ฝ 1๋ถ„

yarn run vs npm run#

yarn run [script] [\<args>]#

  • scripts ์— ๋“ฑ๋ก๋œ ๋ช…๋ น์–ด ์‹คํ–‰
  • node_modules/.bin/์— ์œ„์น˜ํ•œ ์‹คํ–‰ ๊ฐ€๋Šฅ ํŒŒ์ผ(executable) ์‹คํ–‰
  • run ์€ ์ƒ๋žต ๊ฐ€๋Šฅํ•˜๋‹ค.

npm run-script \<command>#

  • npm run <command> ๋กœ alias
  • scripts ์— ๋“ฑ๋ก๋œ ๋ช…๋ น์–ด ์‹คํ–‰

npm exec (npx)#

  1. node_modules/.bin ์— ์œ„์น˜ํ•œ ์‹คํ–‰ ๊ฐ€๋Šฅ ํŒŒ์ผ(executable) ์‹คํ–‰
  2. remote npm package ์‹คํ–‰

nuxt ํ”„๋กœ์ ํŠธ ์ƒ์„ฑ#

yarn create nuxt-app# npx create-nuxt-app

create-nuxt-app ์„ ์‚ฌ์šฉํ•˜๋ฉด cli๋ฅผ ํ†ตํ•ด ํ”„๋กœ์ ํŠธ์— ๊ด€ํ•œ ์„ค์ •์— ๋Œ€ํ•œ ์งˆ์˜๋ฅผ ํ•œ๋‹ค .

image-20210707155912520