43 lines
969 B
Markdown
43 lines
969 B
Markdown
# FEMS
|
|
|
|
## Build Setup
|
|
|
|
```bash
|
|
# install dependencies
|
|
$ npm install
|
|
|
|
# serve with hot reload at localhost:3000
|
|
$ npm run dev
|
|
|
|
# build for production and launch server
|
|
$ npm run build
|
|
$ npm run start
|
|
|
|
# generate static project
|
|
$ npm run generate
|
|
```
|
|
|
|
For detailed explanation on how things work, check out [Nuxt.js docs](https://nuxtjs.org).
|
|
|
|
# VSCode && ESLint Prettier 적용 settings.json 옵션 추가
|
|
"editor.formatOnSave": false,
|
|
"editor.codeActionsOnSave": {
|
|
"source.fixAll.eslint": true
|
|
},
|
|
"eslint.alwaysShowStatus": true,
|
|
"eslint.workingDirectories": [
|
|
{"mode": "auto"}
|
|
],
|
|
"eslint.validate": [
|
|
"javascript",
|
|
"typescript"
|
|
],
|
|
|
|
# 프로젝트 install 후 기동시 버전 mismatch 일때
|
|
vue-server-renderer, vue-template-compiler 를 현재 vue 버전에 맞게 수동 인스톨
|
|
Ex) npm install vue-server-renderer@2.6.14
|
|
Ex) npm install vue-template-compiler@2.6.14
|
|
|
|
# 프로젝트 Clean 작업
|
|
rm package-lock.json; rm .nuxt; rm node_modules;
|