Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Nuxt + TypeScriptで SPAを作る / Build SPA with Nux...
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
shike
April 11, 2019
Programming
150
0
Share
Nuxt + TypeScriptで SPAを作る / Build SPA with Nuxt and TypeScript
Cluexの社内LT大会で発表した時の資料です。
shike
April 11, 2019
More Decks by shike
See All by shike
Code Generatorを作ってコンポーネントを自動生成しよう / Let's make code generator
shike0909
1
2.3k
TypeScript + GASでAPIを作る / Build API with TypeScript and GAS
shike0909
0
150
Lighthouseを使った認証必須のGraphQL API / GraphQL API authentication with Lighthouse
shike0909
0
2.3k
Reduxについて / Redux introduction and TODO example with Redux
shike0909
0
130
Other Decks in Programming
See All in Programming
ネイティブアプリとWebフロントエンドのAPI通信ラッパーにおける共通化の勘所
suguruooki
0
230
脱 雰囲気実装!AgentCoreを良い感じにWEBアプリケーションに組み込むために
takuyay0ne
3
420
Reactive ❤️ Loom: A Forbidden Love Story
franz1981
2
210
Claude Codeログ基盤の構築
giginet
PRO
7
3.8k
The free-lunch guide to idea circularity
hollycummins
0
390
Linux Kernelの1文字のミスで 権限昇格ができた話
rqda
0
2.2k
「速くなった気がする」をデータで疑う
senleaf24
0
110
メッセージングを利用して時間的結合を分離しよう #phperkaigi
kajitack
3
520
AI-DLC 入門 〜AIコーディングの本質は「コード」ではなく「構造」〜 / Introduction to AI-DLC: The Essence of AI Coding Is Not “Code” but “Structure”
seike460
PRO
0
130
見せてもらおうか、 OpenSearchの性能とやらを!
shunta27
1
160
AIと共にエンジニアとPMの “二刀流”を実現する
naruogram
0
110
Coding as Prompting Since 2025
ragingwind
0
570
Featured
See All Featured
The SEO Collaboration Effect
kristinabergwall1
0
410
jQuery: Nuts, Bolts and Bling
dougneiner
66
8.4k
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
1
1.1k
[RailsConf 2023] Rails as a piece of cake
palkan
59
6.4k
My Coaching Mixtape
mlcsv
0
91
Reality Check: Gamification 10 Years Later
codingconduct
0
2.1k
Measuring & Analyzing Core Web Vitals
bluesmoon
9
800
Done Done
chrislema
186
16k
Bash Introduction
62gerente
615
210k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
260
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
140
Transcript
Nuxt + TypeScriptで SPAを作る グループ 柴山健吾
話すこと • とは • で を作ってみる
Nuxtとは • のフレームワーク • を標準で搭載 • ・ や静的ファイルとして生成も可能 • や
、 も設定済みの環境が作成できる • モジュールとしてあらゆる機能が公開されている ◦ 例: • などなど盛りだくさん
俺的Nuxtのポイント • ディレクトリ構成が決まっているので 設計に悩まない • や の設定がいらず コードを書くだけで良い • や
などのレンダリングモードを選べる • ぶっちゃけやり始めてまだ 週間足らずなので深くは わかってない・・・
Nuxt + TypeScript • から公式が に対応しました • 最新の ではより簡単に 設定できるように
Nuxt + TypeScriptでSPAを作ってみる • さっき紹介したカレンダー を使って カレンダーの一覧を作る • というライブラリを使い オブジェクトではなく
として実装する
型定義 (types/event.ts)
pages/index.vue
pages/index.vue
素のJSでの実装
Vuex
store/index.ts
素のVuex での実装
components/DateEventList.vue
components/ DateEventList.vue
素のJSでの実装
components/ Event.vue
components/ Event.vue
素のJSでの実装
表示してみる
まとめ • 最初の環境構築で多少ハマったけど 設定がほぼいらずにすぐ開発に入れて素敵 • コンポーネントを で書くより で書くのは とも相性がよくて良い •
の部分が補完が効かないのはつらい ◦ 何かやり方があるのか? • まだまだ触り始めて浅いのでもっと極めたい
ご清聴ありがとうございました