-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: TypeScript を導入する(Nuxt バージョンアップ含む) #9
Conversation
@potato4d @aytdm @Monkick @mtmtkzm @ryamakuchi @satotakumi @yinm @hisako135 @448jp @kazupon レビューをお願いしますー 🙏
これについては、現時点ではどちらのほうが明確に優れていると言い切れないため、好みの問題かと考えています。 そのうえで Nuxt 公式ドキュメント が
といっていることから、Nuxt x TypeScript はクラススタイルの書き方が主流になってくるかと思い、日本の Vue / Nuxt コミュニティにもその例を示したいと思い、クラススタイルを選択しましたが、どうでしょう? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
確認事項だけコメントしました 🙏
Vue コンポーネントの書き方は、クラススタイルでいいんじゃないかなと思ってます!
@@ -0,0 +1,32 @@ | |||
{ | |||
"compilerOptions": { | |||
"target": "esnext", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
出力後のJSって、ES5じゃなくても大丈夫でしょうか?? (ブラウザのサポートってどこまでするのかなと思いまして 👀)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TypeScript をコンパイルした後に、Babel がトランスパイルするので、ここは esnext のままで大丈夫です〜 😄
This reverts commit 2cedca2. Lint エラーと TypeScript コンパイルエラーのため一旦 Revert #9 (comment)
nuxt.config.js -> nuxt.config.ts への変換については Lint エラーと TypeScript コンパイルエラーのため、切り戻します。対応に調査が必要なので、後日別途対応します。 Lint
Compile TypeScript
|
レビューありがとうございました!マージします!:muscle: |
Fix: TypeScript を導入する · Issue #6 · kazupon/vuefes-2019
完了条件
レビューポイント
Migration Guide
Release Notes - Nuxt.js
https://nuxtjs.org/guide/release-notes
Releases · nuxt/nuxt.js
https://github.com/nuxt/nuxt.js/releases
Nuxt 公式ドキュメント
TypeScript Support - Nuxt.js
https://nuxtjs.org/guide/typescript
API: The build Property - Nuxt.js
https://nuxtjs.org/api/configuration-build#typescript
参考(Vue.extend or クラススタイル)
TypeScript のサポート — Vue.js
https://jp.vuejs.org/v2/guide/typescript.html
Microsoft/TypeScript-Vue-Starter: A starter template for TypeScript and Vue with a detailed README describing how to use the two together.
https://github.com/Microsoft/TypeScript-Vue-Starter#single-file-components
Vuex による状態管理を含む最高に快適な Vue.js + TypeScript の開発環境を目指す話 - Qiita
https://qiita.com/potato4d/items/c9c0c8e674f20c85948a