๋ณธ๋ฌธ์œผ๋กœ ๋ฐ”๋กœ๊ฐ€๊ธฐ

1. vue cli ์„ค์น˜ ํ›„ vue ๋ช…๋ น์–ด ์ ‘๊ทผ ๋ถˆ๊ฐ€๋Šฅ

vue : ์ด ์‹œ์Šคํ…œ์—์„œ ์Šคํฌ๋ฆฝํŠธ๋ฅผ ์‹คํ–‰ํ•  ์ˆ˜ ์—†์œผ๋ฏ€๋กœ C:\User\user\AppData\Roaming\npm\vue.ps

 

npm install -g @vue/cli
vue create my-project

vue-cli๋ฅผ ์„ค์น˜ ํ›„ vue๋ฅผ ์ ‘๊ทผํ•  ์ˆ˜ ์—†์—ˆ๋‹ค.

์ด๋Š” PowerShell์—์„œ ์•…์˜์ ์ธ ์Šคํฌ๋ฆฝํŠธ๋ฅผ ์‹คํ–‰์„ ๋ฐฉ์ง€ํ•˜๊ธฐ ์œ„ํ•œ ์„ค์ •๋•Œ๋ฌธ์ด๋‹ค. PowerShell execution policies๋Š” ๋‹ค์Œ๊ณผ ๊ฐ™์ด ๋ถ„๋ฅ˜ํ•œ๋‹ค. 

 

AllSigned: ๋ชจ๋“  ์Šคํฌ๋ฆฝํŠธ์™€ ๊ตฌ์„ฑ ํŒŒ์ผ์— ์‹ ๋ขฐํ•  ์ˆ˜ ์žˆ๋Š” ๋ฐœํ–‰์ž์˜ ์„œ๋ช…์ด ์กด์žฌํ•  ๊ฒฝ์šฐ ์‹คํ–‰ ๊ฐ€๋Šฅํ•˜๋‹ค.
Bypass: ๊ฒฝ๊ณ ๋‚˜ ์•ˆ๋‚ด ์—†์ด ์–ด๋–ค ๊ฒƒ๋„ ์‹คํ–‰ ๊ฐ€๋Šฅํ•˜๋‹ค.
Default: Windows ํด๋ผ์ด์–ธํŠธ๋Š” Restricted, Windows ์„œ๋ฒ„๋Š” RemoteSigned์ด ๊ธฐ๋ณธ์œผ๋กœ ์„ค์ •๋œ๋‹ค.
RemoteSigned: ์ธํ„ฐ๋„ท์—์„œ ๋‹ค์šด๋ฐ›์€ ์Šคํฌ๋ฆฝํŠธ๋Š” ์‹คํ–‰ํ•˜์ง€ ์•Š๊ณ , ๋กœ์ปฌ์˜ ์Šคํฌ๋ฆฝํŠธ๋งŒ ๋””์ง€ํ„ธ ์„œ๋ช… ์—†์ด ์‹คํ–‰ ๊ฐ€๋Šฅํ•˜๋‹ค.
Restricted: ์Šคํฌ๋ฆฝํŠธ๋ฅผ ํ—ˆ์šฉํ•˜์ง€ ์•Š๋Š”๋‹ค. ์Šคํฌ๋ฆฝํŠธ ํŒŒ์ผ๋“ค์˜ ์‹คํ–‰์„ ๋ง‰๋Š”๋‹ค. ex) .ps1xml, .psm1, .ps1
Undefined: ์ •์˜๋˜์ง€ ์•Š์€ ๊ฒฝ์šฐ Default ์‹คํ–‰์ •์ฑ… ๋”ฐ๋ฅธ๋‹ค.
Unrestricted: ์„œ๋ช…๋˜์ง€ ์•Š์€ ์Šคํฌ๋ฆฝํŠธ ์‹คํ–‰ ๊ฐ€๋Šฅํ•˜๋‹ค. ๊ฒฝ๊ณ ๋Š” ํ•ด์ค€๋‹ค.

 

PowerShell execution policies์˜ ์ž์„ธํ•œ ์‚ฌํ•ญ์€ ์•„๋ž˜ ๋งํฌ๋ฅผ ์ฒจ๋ถ€ํ•œ๋‹ค.

https://www.sqlshack.com/choosing-and-setting-a-powershell-execution-policy/

 

Choosing and Setting a PowerShell Execution Policy

The PowerShell execution policy was developed with a vision to be friendly to administrators, and at the same time, be accessible to end users. More than the former, the latter goal was a little challenging to pull off, considering that convenience is, mor

www.sqlshack.com

 

ํ•ด๊ฒฐ๋ฐฉ๋ฒ•

$ get-executionpolicy
// ํ˜„์žฌ executionpolicy ์ƒํƒœ ํ™•์ธ

$ set-executionpolicy remotesigned
// unrestricted๋ณด๋‹ค ์ƒ๋Œ€์ ์œผ๋กœ ์•ˆ์ „ํ•œ remotesigned์œผ๋กœ ๋ฐ”๊ฟ”์ค€๋‹ค.

์ฐธ๊ณ ๋กœ ๊ด€๋ฆฌ์ž ๊ถŒํ•œ์œผ๋กœ ์‹คํ–‰ํ•œ PowerShell์—์„œ ๋ช…๋ น์–ด๋ฅผ ์ž…๋ ฅํ•ด์•ผ ํ•œ๋‹ค.

 

2. vue init๊ณผ vue create์˜ ์ฐจ์ด

vue init์œผ๋กœ ์ƒ์„ฑํ•˜๋Š” ๋ฐฉ๋ฒ•์€ vulnerablilites์ด ๋งŽ๋‹ค. 

vue create๋Š” ์‹ฌํ”Œํ•˜๊ณ  ๋ฐ”๋ฒจ, ํƒ€์ž…์Šคํฌ๋ฆฝํŠธ, PWA๋“ฑ ์˜ต์…˜์„ ์ˆ˜๋™์œผ๋กœ ์„ ํƒํ•  ์ˆ˜ ์žˆ๋‹ค.

์‹ฌํ”Œํ•˜๊ฒŒ ์‹œ์ž‘ํ•˜๊ณ  ํ›„์— ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋“ค์„ ์ถ”๊ฐ€ํ•˜๋Š” vue create๋ฐฉ๋ฒ•์ด ๋งŽ์ด ์‚ฌ์šฉ๋œ๋‹ค.

 

3. Vue.js is not detected

vue-cli๋กœ ์„ค์น˜ํ•˜๋Š” ๊ฒฝ์šฐ ๊ฐœ๋ฐœ์ž ๋ชจ๋“œ์—์„œ vue devtools๊ฐ€ Vue.js is not detected ์˜ค๋ฅ˜์™€ ํ•จ๊ป˜ ์ž‘๋™ํ•˜์ง€ ์•Š์•˜๋‹ค.

 

์‹œํ–‰์ฐฉ์˜ค1. ํฌ๋กฌ ์ต์Šคํ…์…˜์˜ ์„ค์ •์—์„œ ๋กœ์ปฌ ํŒŒ์ผ URL ์ ‘๊ทผ ํ—ˆ์šฉ ๋ˆ„๋ฅด๊ธฐ

์‹œํ–‰์ฐฉ์˜ค2. app.config.performance = true ์ฝ”๋“œ ์ถ”๊ฐ€

ํ•ด๊ฒฐ. Vue.js ๋ฒ ํƒ€๋ฒ„์ „ ์ต์Šคํ…Œ์…˜ ์„ค์น˜, ๋ฒ ํƒ€๋ฒ„์ „์— ๋Œ€ํ•œ ์„ค๋ช…์€ ์•„๋ž˜ ๋งํฌ๋ฅผ ์ฒจ๋ถ€ํ•œ๋‹ค.

 

https://v3.vuejs.org/guide/migration/introduction.html#devtools-extension

 

Introduction | Vue.js

Introduction This guide is primarily for users with prior Vue 2 experience who want to learn about the new features and changes in Vue 3. This is not something you have to read from top to bottom before trying out Vue 3. While it looks like a lot has chang

v3.vuejs.org

 

 

4. ๊ธฐํƒ€ Vue.js ๊ด€๋ จ ๋ฉ”๋ชจ

0. npm init vue@latest

1. <script setup >
The code inside is compiled as the content of the component's setup() function. This means that unlike normal <script>, which only executes once when the component is first imported, code inside <script setup> will execute every time an instance of the component is created.

2. <style scoped>
A <style> tag can have scoped or module attributes (see SFC Style Features for more details) to help encapsulate the styles to the current component. Multiple <style> tags with different encapsulation modes can be mixed in the same component.

๋ฐ˜์‘ํ˜•