Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/ducthienbui97/ddm

Deno dependencies manager
https://github.com/ducthienbui97/ddm

deno package-json package-manager

Last synced: about 2 months ago
JSON representation

Deno dependencies manager

Awesome Lists containing this project

README

        

# Deno dependencies manager - ddm

[![GitLicense](https://gitlicense.com/badge/ducthienbui97/ddm)](https://gitlicense.com/license/ducthienbui97/ddm)
[![GithubCI](https://github.com/ducthienbui97/ddm/workflows/CI/badge.svg)](https://github.com/ducthienbui97/ddm)
[![Version](https://img.shields.io/badge/version-0.0.1-blue)](https://github.com/ducthienbui97/ddm/releases)

Manage your deno package with `ddm` and the good old `package.json` file.

![demo](demo.gif)

## Install

Latest released version:

```sh
deno install --allow-all -n ddm -f https://github.com/ducthienbui97/ddm/releases/download/v0.0.1/ddm.js
```

or master version:

```
deno install --allow-all -n ddm -f https://raw.githubusercontent.com/ducthienbui97/ddm/bundle/bundle/ddm.js
```

## Usage

### Overview

```sh
Description:

Manage you project with package.json file.

Options:

-h, --help [arg:boolean] - Show this help.
-V, --version [arg:boolean] - Show the version number for this program.

Commands:

help [command:command] - Show this help or the help of a sub-command.
completions - Generate shell completions for zsh and bash.
install [names@version...:string] - Install one or more package
run [parameters...:string] - Run 'deno run' command
cache [parameters...:string] - Run 'deno cache' command
bundle [parameters...:string] - Run 'deno bundle' command
test [parameters...:string] - Run 'deno test' command
build [parameters...:string] - Run 'build' script defined in package.json
```

### `ddm install`

#### Without version:

```sh
ddm install http
```

#### With version:

```sh
ddm install [email protected]
```

#### Multiple package:

```sh
ddm install http log fmt
```
### `deno run/cache/bundle/test` scripts:

```sh
ddm run/cache/bundle/test
```

### `package.json` scripts:

package.json:

```json
{
"scripts": {
"something" : "some script",
"presomething": "some prepare script",
"postsomething": "some cleanup script"
}
}
```
run:

```sh
ddm something
```
NOTE: scripts writen in `package.json` will override default commands.