반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 |
Tags
- xcode
- webpack
- androidstudio
- build
- qunit
- IOS
- react
- localserver
- jest
- 센토스
- Android
- TensorFlow
- 리눅스
- 개발
- 네트워크
- 오블완
- ReactNative
- unittest
- VirtualBox
- 맥
- MachineLearning
- PYTHON
- Chrome
- linux
- node
- centos
- vsCode
- MAC
- 티스토리챌린지
Archives
- Today
- Total
로메오의 블로그
[Vue + typescript] 프로젝트 생성 본문
반응형
VUE.JS 목록
vue cli 설치
## npm 으로 설치
$ npm install -g @vue/cli
$ vue --version
@vue/cli 5.0.1
## 특정버전으로 설치
$ npm install -g @vue/cli@5.0.1
$ vue --version
@vue/cli 5.0.1
현재 저의 vue-cli 버전은 5.0.1 입니다.
$ vue --version
@vue/cli 5.0.1
프로젝트 생성
$ vue create first-project
? Please pick a preset: (Use arrow keys)
Default ([Vue 2] babel, eslint)
Default (Vue 3 Preview) ([Vue 3] babel, eslint)
> Manually select features
키보드 방향키로 Manually select features를 선택하고 Enter 키를 누릅니다.
? Please pick a preset: Manually select features
? Check the features needed for your project: (Press <space> to select, <a> to toggle all, <i> to invert selection)
( ) Choose Vue version
( ) Babel
(*) TypeScript
( ) Progressive Web App (PWA) Support
(*) Router
>(*) Vuex
( ) CSS Pre-processors
(*) Linter / Formatter
( ) Unit Testing
( ) E2E Testing
키보드 방향키와 스페이스바로 위와같이 설정하고 Enter키를 누릅니다.
? Please pick a preset: Manually select features
? Check the features needed for your project: TS, Router, Vuex, Linter
? Use class-style component syntax? Yes
? Use Babel alongside TypeScript (required for modern mode, auto-detected polyfills, transpiling JSX)? No
? Use history mode for router? (Requires proper server setup for index fallback in production) Yes
? Pick a linter / formatter config:
ESLint with error prevention only
ESLint + Airbnb config
ESLint + Standard config
ESLint + Prettier
> TSLint (deprecated)
Use class-style : Yes
Use Babel alongside Typescript : No
Use History mode : Yes
linter fomatter는 TSLint를 선택합니다.
? Please pick a preset: Manually select features
? Check the features needed for your project: TS, Router, Vuex, Linter
? Use class-style component syntax? Yes
? Use Babel alongside TypeScript (required for modern mode, auto-detected polyfills, transpiling JSX)? No
? Use history mode for router? (Requires proper server setup for index fallback in production) Yes
? Pick a linter / formatter config: TSLint
? Pick additional lint features: (Press <space> to select, <a> to toggle all, <i> to invert selection)
>(*) Lint on save
( ) Lint and fix on commit
? Please pick a preset: Manually select features
? Check the features needed for your project: TS, Router, Vuex, Linter
? Use class-style component syntax? Yes
? Use Babel alongside TypeScript (required for modern mode, auto-detected polyfills, transpiling JSX)? No
? Use history mode for router? (Requires proper server setup for index fallback in production) Yes
? Pick a linter / formatter config: TSLint
? Pick additional lint features: Lint on save
? Where do you prefer placing config for Babel, ESLint, etc.?
> In dedicated config files
In package.json
전체 세팅은 아래와 같습니다.
? Please pick a preset: Manually select features
? Check the features needed for your project: TS, Router, Vuex, Linter
? Use class-style component syntax? Yes
? Use Babel alongside TypeScript (required for modern mode, auto-detected polyfills, transpiling JSX)? No
? Use history mode for router? (Requires proper server setup for index fallback in production) Yes
? Pick a linter / formatter config: TSLint
? Pick additional lint features: Lint on save
? Where do you prefer placing config for Babel, ESLint, etc.? In dedicated config files
? Save this as a preset for future projects? No
프로젝트가 생성되었으면 VSCode로 프로젝트를 엽니다.
$ code .
VUE.JS 목록
반응형
'Frontend > Vue' 카테고리의 다른 글
[VUE + TYPESCRIPT] Prop 자식에게 데이터 전달하기 (0) | 2021.02.10 |
---|---|
[Vue + typescript] Component 생성하기 (0) | 2021.02.10 |
[vue.js] 폼 유효성 검사 (0) | 2019.10.24 |
[Vue.js] vue-router 사용하기 (0) | 2019.10.12 |
[Vue.js] http 통신하기 (0) | 2019.10.12 |
Comments