Syntax Video
Deno 2 Deep Dive | Exploring the Deno Ecosystem
In this video CJ dives into the world of Deno to explore the features of Deno v2 and answer the question: "Does Deno v2 deliver on its promises?" - He talks about what Deno is, how to start a new Deno project, shows npm compatibility, how to gradually adopt Deno as your package manager and task runner, what it's like to fully convert a codebase to Deno, talks about areas Deno could improve and gives his thoughts on the future of javascript and where Deno fits in.
- 0:00 intro
- 1:48 what is deno?
- 4:40 creating new projects with deno
- 4:55 what am i building
- 5:33 deno init
- 5:57 vs code extension setup
- 7:14 formatting with deno
- 8:32 linting with deno
- 9:18 read in csv file with deno
- 10:08 deno.json tasks
- 10:25 deno permissions
- 11:21 using npm with deno
- 12:04 working with npm:csv-parse
- 13:52 the deno standard library
- 15:13 using jsr / @std/csv
- 16:21 benefits of the standard library
- 17:07 finishing up csv parsing
- 18:32 new deno project summary
- 18:58 use deno with your favorite framework
- 20:06 gradual adoption of deno
- 20:20 deno install for node.js existing projects
- 21:19 deno install - postinstall script support
- 22:54 deno task for existing node.js projects
- 23:44 running commands from node_modules with deno
- 24:08 seed database - tsx issue
- 25:21 starting / testing app
- 26:14 gradual adoption summary
- 26:43 converting projects fully to deno
- 26:52 the project we will convert
- 28:05 project setup / init
- 29:36 remove config files
- 29:49 converting package.json dependencies to deno.json
- 31:07 starting the app
- 31:14 updating server entrypoint
- 31:58 import aliases with deno
- 32:24 adding import extensions
- 33:22 deno.json version property
- 33:41 updating deno.json compiler options
- 33:57 specify permissions in deno task
- 34:40 updating environment variable access
- 36:57 drizzle-kit push with deno
- 37:22 libsql / turso dev setup with deno
- 38:55 update dev task to use deno serve
- 40:20 testing with deno
- 40:27 test database task
- 41:15 converting vite tests to deno
- 42:58 jest / vite style expectations with @std/expect
- 44:31 updating test task permissions
- 44:52 npm module type error fix
- 45:42 100% passing tests
- 46:06 combined test tasks
- 46:28 running tasks with Deno.Command
- 48:38 add lint, format and typecheck task
- 49:35 where to find the converted code
- 49:55 convert project conclusions / summary
- 50:47 deploying with deno deploy
- 53:14 jsr.io and other parts of the deno ecosystem
- 54:38 my thoughts: room for improvement
- 54:49 permissions model
- 56:01 more searchable examples
- 58:00 deno ecosystem summary: my final thoughts
- 1:00:27 thanks!