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

https://github.com/justinmchase/deno-scripts

Automated installation and execution of locally scoped scripts
https://github.com/justinmchase/deno-scripts

deno

Last synced: 4 months ago
JSON representation

Automated installation and execution of locally scoped scripts

Awesome Lists containing this project

README

          

# Deno Scripts 🦕

Automated installation and execution of locally scoped scripts

# Installation

```sh
deno install \
--unstable \
--allow-read --allow-env --allow-run --allow-write \
-n script \
https://deno.land/x/scripts/script.ts
```

# Usage

Create a scripts.json file in your root directory

```sh
script init
```

Add some scripts to the file

```json
{
"scripts": {
"hello": "https://deno.land/x/scripts/examples/hello.ts",
"version": {
"url": "https://deno.land/x/version/index.ts",
"permissions": [
"allow-read",
"allow-write",
"allow-run"
],
"args": []
}
}
}
```

Install the scripts

```sh
script install
```

Run a script

```sh
script run hello
script run version init 0.1.0
```