VueJS/public/data/id9901.html

37 lines
1.3 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<h1>Команды npm, yarn, vue-cli</h1>
<p>
Здесь я опишу некоторые основные команды, которые понадобятся нам во время обучения.
<table class="v-datatable v-table elevation-1">
<tr>
<th>Действие</th>
<th>npm</th>
<th>yarn</th>
<th>vue-cli</th>
</tr>
<tr>
<td>Установка vue-cli</td>
<td>npm install @vue/cli -g</td>
<td>yarn global add @vue/cli</td>
<td> - </td>
</tr>
<tr>
<td>Создание проекта</td>
<td>npm init (только инициализация проекта)</td>
<td>yarn init (только инициализация проекта)</td>
<td>vue create _название_проекта_ или при помощи WebUI: vue ui</td>
</tr>
<tr>
<td>Запуск dev-сервера</td>
<td>npm run serve</td>
<td>yarn serve</td>
<td> - </td>
</tr>
<tr>
<td>Компиляция финальной версии</td>
<td>npm build</td>
<td>yarn build</td>
<td> - </td>
</tr>
</table>
</p>