pubspec.yaml
Last updated
Last updated
flutter์๋ react๋ next.js ์ฒ๋ผ ํ๋ก์ ํธ์ ์์กด์ฑ์ ๊ด๋ฆฌํ๊ณ , ๋ฉํ๋ฐ์ดํฐ๋ฅผ ์ง์ ํ ์ ์๋ ํ์ผ์ด ์๋๋ฐ, ์ด ํ์ผ์ด ๋ฐ๋ก pubspec.yaml์ด๋ค.
๊ณต์๋ฌธ์์์๋ ์๋์ ๊ฐ์ด ์ค๋ช ํ๊ณ ์๋ค.
Every needs some metadata so it can specify its . Pub packages that are shared with others also need to provide some other information so users can discover them. All of this metadata goes in the package's pubspec: a file named
pubspec.yaml
that's written in the language.
์ฝ๊ฒ ์๊ฐํด์ ์ฐ๋ฆฌ๊ฐ ๊ทธ๋์ ์ฌ์ฉํ๋ package.json ๊ณผ ๋น์ทํ ์ญํ ์ ์ํํ๋ ํ์ผ์ด๋ค.
pubspec.yaml ์์ ์ฌ์ฉ๋๋ ํ๋๋ค์ ํ๋ฒ ์ดํด๋ณด์.
์์ฒ๋ผ ์์ฑ๋ yaml์ ๋ํด ํน์ ๋ช ๋ น์ด๋ฅผ ์คํํ ์๋ ์๋ค. flutter๋ pub ์ด๋ผ๋ ํจํค์ง ๋งค๋์ ๋ฅผ ์ฌ์ฉํ๋ค. (react์ npm, yarn)
pub get : pubspec.yaml์ ์์ฑ๋ ์์กด์ฑ์ ๋ค์ด๋ก๋ํ๋ค.
pub upgrade : ํจํค์ง์ ๋ฒ์ ์ ์ ๊ทธ๋ ์ด๋ํ๋ค.
pub deps : ์์กด์ฑ ๊ตฌ์กฐ๋ฅผ ํธ๋ฆฌ๋ก ๋ณด์ฌ์ค๋ค.
pub publish : ํจํค์ง๋ฅผ ๋ฐฐํฌํ๋ค.
์ ๋์ ๋ช ๋ น์ด ๋ค์ด ์๋ค.
์ถ๊ฐ์ ์ผ๋ก flutter, dart์์ ํน์ ํจํค์ง๋ฅผ ์ฌ์ฉํ๊ณ ์ถ๋ค๋ฉด, npmjs ์ ๋น์ทํ ์์ ๊ฒ์์ด ๊ฐ๋ฅํ๋ค.