Skip to content

fwcd/dpm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deno Package Manager

Deno Package Manager is a small tool that makes it easy to manage metadata and dependencies for a Deno project in a central place.

DPM introduces a project.json file, which functions as an import map and is conceptually similar to package.json from Node.

Despite its name, DPM does not actually manage packages itself, this is handled by the Deno cache. It merely serves as a convenience for updating the import map and running/managing the project:

  • dpm init
    • interactively generates a project.json
  • dpm run
    • runs the project
  • dpm add std/fs
    • adds a dependency on https://deno.land/std/fs/mod.ts
  • dpm add sqlite@v0.1.0
    • adds a dependency on https://deno.land/x/sqlite@v0.1.0/mod.ts
  • dpm add myproject https://mycustomgitrepo.org/myproject
    • adds a dependency on https://mycustomgitrepo.org/myproject
  • dpm install
    • installs the project globally, in case of a binary project
  • dpm vscode
    • configures the project for use with VSCode by linking the import map

Installation

First, make sure to have deno installed and available on your PATH.

Use the ./install script to install dpm globally. If you already have dpm installed, you can also use dpm install to update the installed version.

Running

Once dpm is installed, it can run (a newer version of) itself using dpm run.

Releases

No releases published

Packages

No packages published