Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/fwcd/dpm
- Owner: fwcd
- License: gpl-3.0
- Created: 2020-05-24T00:11:13.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-05-25T18:01:50.000Z (over 4 years ago)
- Last Synced: 2024-12-13T22:42:07.099Z (about 1 month ago)
- Topics: deno, package-json, package-manager
- Language: TypeScript
- Homepage:
- Size: 38.1 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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`.