deno

Automate Deno 2 project setup, testing, and JSR dependency management.

2|Updated Aug 3, 2021
One-click install
npx skills add https://github.com/kuboon/dotfiles --skill deno-kuboon
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: deno
Source: https://github.com/kuboon/dotfiles/tree/main/skills/deno
Command: npx skills add https://github.com/kuboon/dotfiles --skill deno-kuboon

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill streamlines Deno development by providing a guided workflow for setting up new Deno projects, managing permissions for testing, and leveraging JSR for package management.

Core Features & Use Cases

  • Deno project scaffolding: Initialize a consistent project structure using Deno 2 conventions.
  • Permissions-aware testing: Run tests with restricted permissions using Deno's -P flag and a proper deno.json configuration.
  • JSR-based dependency management: Use JSR to discover and manage JavaScript/TypeScript dependencies efficiently.
  • Use Case: When starting a new Deno app or adjusting tests, this Skill ensures you follow best practices and compliant permissions.

Quick Start

Use deno to scaffold a new project, configure deno.json with sensible permissions, and add dependencies via deno add from JSR or npm as needed.

Frequently Asked Questions about deno

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up a new Deno 2 project with JSR dependencies?

Deno project scaffolding initializes a consistent project structure using Deno 2 conventions. You then configure a deno.json file and use deno add to integrate JSR or npm dependencies into your workflow.

How do I run Deno tests with restricted permissions?

You run permissions-aware testing by utilizing Deno's -P flag and configuring a deno.json file. This restricts test permissions to ensure secure and compliant execution across common development scenarios.

What is JSR-based package management in Deno 2?

JSR-based package management is a workflow to discover and manage JavaScript/TypeScript dependencies efficiently. It uses the deno add command to resolve and integrate JSR or npm libraries within a Deno project.

Do I need a deno.json configuration file to manage permissions for Deno tests?

Yes, a deno.json configuration file is required. It provides the sensible permissions configuration needed to run tests securely with the -P flag across your Deno 2 development scenarios.

Can I use npm packages alongside JSR for Deno dependency management?

Yes, you can use npm packages alongside JSR. The workflow supports using deno add to resolve and integrate dependencies from both JSR and npm libraries as needed for your project.

What are the limitations when using Deno 2 for project scaffolding and testing?

This Deno workflow requires Deno 2, a deno.json configuration file, and JSR or npm libraries to resolve dependencies. It is specifically tailored for Deno 2 conventions and permissions-aware testing scenarios.