Typescript Development with Dendron and VS Code
Summary
In this talk, Kevin, Dendron founder, will go over his workflow for Dendron development using typescript and VS Code.
- Date: 2021.10.15
- Time: 7:30AM PST
- Location:
#teatime
channel in Discord - Calendar link: https://lu.ma/373tr1ap
Agenda
- VS Code setup: extensions and settings
- process for breaking down a task
- using Dendron to augment the development process
- test and debug process
- questions
Outputs
- Recording: https://youtu.be/8KxXZ6DPtXA
- Pull request: https://github.com/dendronhq/dendron/pull/1526
- During the talk, we had an issue where the debugger was exiting early. this was because of the default jest timeout. Adding
jest.timeout(100000);
below thetest
fixes the issuetest(foo, ()=> { jest.timeout(100000); });
Speaker Notes
The following were my personal notes for the talk
Pre-req
- quicktime test
VS Code
- installed
- gitlens
- prettier
- vim
- settings
- layout
- four pane split
- top is main
- bottom is secondary
- four pane split
Starting on a task
- write out goal
- write subtasks
- write commit message
- write tests
- write impl
Code
- go to tests, run
- open up package.json for package
- check snapshot
- test-workspace.sh
Navigation
- focus breadcrumbs: cmd shift .
- find all references
- search
- limit search to right extension (eg. ".ts")
- for React components, sometimes search by folder
- sidebar/index.html
Backlinks