내가 자꾸 까먹어서 쓰는 개발 이야기/Laravel
Laravel, Vue 설치 및 Vue SPA 세팅 script
FIL.
2020. 8. 13. 10:55
728x90
https://github.com/finaleaf/vue-sfc-scaffolding
finaleaf/vue-sfc-scaffolding
Contribute to finaleaf/vue-sfc-scaffolding development by creating an account on GitHub.
github.com
composer와 npm은 미리 설치한다. webpack.mix.js 파일에 작성해둔 내용이 있다면 백업 해 둔다.
프로젝트 디렉토리에 들어가서 아래와 같이 installer.sh 파일을 실행한다.
wget https://raw.githubusercontent.com/finaleaf/vue-sfc-scaffolding/master/installer.sh && chmod +x installer.sh && ./installer.sh
새로 생성된 Laravel 앱 디렉토리로 들어간다.
아래 명령어를 실행하여 Vue SPA 세팅 파일을 덮어씌운다.
wget https://github.com/finaleaf/vue-sfc-scaffolding/raw/master/vue-spa-scaffolding.tar.gz && tar xvf vue-spa-scaffolding.tar.gz && rm vue-spa-scaffolding.tar.gz
출처: 직접 만듬.