Vue3プロジェクトの作成
1.create-vueでVueプロジェクトのセットアップ
npm init vue@latest
create-vueがインストールされていないと以下の表示
Need to install the followig packages:
create-vue@latest
OK to proceed? (y)
質問 | 選択肢 |
---|---|
Project name | フォルダ名になるプロジェクト名を入力 |
Add TypeScript? | タイプスクリプトで作成するかどうか?(Y/N) |
Add JSX Support? | JavaScript中にHTMLを記述できる機能拡張のJSXを使うかどうか?(Y/N) |
Add VueRouter for Single Page Application development? | VueRouter使うかどうか?(Y/N) |
Add Pinia for state management? | 状態管理ライブラリのPiniaを使うかどうか?(Y/N) |
Add Vitest for Unit Testing? | ユニットテストを行うためのライブラリVitestを使うかどうか?(Y/N) |
Add Cypress for both Unit and End-toEnd testing? | UI操作を含めてアプリケーション全体のテストをするライブラリCypressを利用するかどうかの選択(Y/N) |
Add ESLint for code quality? | コード解析ツール(Linter)の一種であるESLintを利用するかどうか?(Y/N) |
Add Prettier for code formatting? | ESLintとセットで使用されるコード整形ツールPrettierを使用するかどうか?(Y/N) |
コメントを残す