LoginSignup
2
3

More than 3 years have passed since last update.

VueCLIの導入とプロジェクト作成からデプロイの備忘録

Last updated at Posted at 2020-02-27

VueCLIの導入

node.jsのインストール

下記を参考に行う。
MacにNode.jsをインストール - Qiita

VueCLIのインストール

$ npm install -g @vue/cli

VueCLIでプロジェクト作成〜デプロイ

新しいプロジェクトの作成

$ cd '作成したい場所'
$ vue create 'プロジェクト名'

Vueプロジェクトの起動

$ cd 'プロジェクト名'
$ npm run serve

ビルド・デプロイ

$ npm run build
distフォルダが作成されるので、サーバーに配置

2
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
3