Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fwcd/dpm

The missing package manager for Deno
https://github.com/fwcd/dpm

deno package-json package-manager

Last synced: about 1 month ago
JSON representation

The missing package manager for Deno

Awesome Lists containing this project

README

        

# 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](https://deno.land/manual/linking_to_external_code/import_maps) 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 [email protected]`
- adds a dependency on `https://deno.land/x/[email protected]/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`.