kantaroso / game-information

0 stars 0 forks source link

vue2.0 -> 3.0 にあげる #27

Closed kantaroso closed 2 years ago

kantaroso commented 2 years ago

表題の通り。 Composition API を適用させた形にする。

kantaroso commented 2 years ago

手順

vuecliをバージョンアップ

npm i -g @vue/cli

適当なプロジェクトをvue3で作成

# vue create p1

Vue CLI v4.5.13
? Please pick a preset: Manually select features
? Check the features needed for your project: Choose Vue version, Babel, TS, Router, Linter, Unit
? Choose a version of Vue.js that you want to start the project with 3.x
? Use class-style component syntax? Yes
? Use Babel alongside TypeScript (required for modern mode, auto-detected polyfills, transpiling JSX)? Yes
? Use history mode for router? (Requires proper server setup for index fallback in production) Yes
? Pick a linter / formatter config: Standard
? Pick additional lint features: Lint on save
? Pick a unit testing solution: Jest
? Where do you prefer placing config for Babel, ESLint, etc.? In package.json
? Save this as a preset for future projects? Yes
? Save preset as: 

package.json の必要な差分を取り込み

npm install でライブラリ更新

kantaroso commented 2 years ago

https://github.com/bootstrap-vue/bootstrap-vue/issues/5196

まだダメっぽいので Composition API だけ導入する

kantaroso commented 2 years ago

https://www.asobou.co.jp/blog/web/composition-api1