Deno Testing, Bundling, Formatting, and Debugging

Deno tools out of the box

Jana Bergant
5 min readJun 11, 2020
Deno testing, budling, formatting, and debugging
Deno testing, bundling, formatting, and debugging out of the box

Deno aims to be a programming language user-friendly to the developer. It comes with some tools out of the box.

It gives us additional tooling that performs tasks currently carried out by the likes of WebPack, rollup, and prettier. Deno includes these tools out of the box:

  • bundling
  • testing
  • script installation
  • formatting
  • debugging

Bundling

Bundling is the process of outputting your application and dependencies into a single JavaScript file ready for execution. Rollup or WebPack or most used tools for bundling.

Deno gives us a simple approach for bundling code with the deno bundle command. If we want to bundle some code, we can do the following with Deno:

$ deno bundle https://deno.land/std/examples/echo_server.ts server.bundle.js
Bundling https://deno.land/std/examples/echo_server.ts
Emitting bundle to "server.bundle.js"
2.61 KB emitted.

We can now run our bundle like any other normal script.

$ deno run --allow-net server.bundle.js
Listening on 0.0.0.0:8080

Testing

--

--