新規レッスンを追加
chapter1-1.tsなどにlessonX_Y: Lessonを定義chapter1.tsのlessons配列に追加
新規コース(章)を追加
chapter2.tsを新規作成し、Courseを exportcourses.tsで import し、courses配列に追加
レッスンファイルの分割
1レッスンあたりのページ数が多い場合は、chapter1-1.ts, chapter1-2.ts のようにファイルを分割して管理しています。chapter1.ts で各ファイルから import して lessons に並べます。
参照するファイル構成
src/data
courses.ts
course-data
chapter1.ts
chapter1-1.ts
chapter1-2.ts
chapter1-3.ts
chapter1-4.ts
chapter1-5.ts
chapter1-sandbox.ts
- 新規レッスン: 上記
chapter1-*.tsのいずれかに定義を追加し、chapter1.tsのlessonsに追加 - 新規コース:
course-data/chapter2.tsを追加し、courses.tsの配列に追加