- 「Vue.js入門 基礎から実践アプリケーション開発まで」の写経
- 「Webデザインの現場で使える Vue.jsの教科書」の写経
-
基本
-
コンテナのビルド&起動
docker-compose up -d --build
-
コンテナの終了
docker-compose down
-
起動中のコンテナの中に入る
docker-compose exec {サービス名} //bin/sh
「/bin/sh 部分が ${Git Bashのルートディレクトリ}/bin/sh と変換され」るため、変換させないためにエスケープが必要らしい。
WindowsのGit Bashでパス変換が予期せぬ動作をする場合の対処法
-
-
chapter6
It seems you are running Vue CLI inside a container.
など、npm独自かvue独自か不明だが説明が丁寧な感じがした。- 単一ファイルコンポーネントをビルドしてブラウザでビルド結果を表示する
http://localhost:1234/にアクセスすると結果が表示される
cd /app/src/chapter6/test vue serve hello.vue --open
- Vue projectを新規作成
http://localhost:1234/にアクセスするとVueのwelcomeページが表示される
cd /app/src/chapter6/ vue create {プロジェクト名} cd test-project npm run serve
- 単一ファイルコンポーネントをビルドしてブラウザでビルド結果を表示する