Deno Scripts 🦕
Automated installation and execution of locally scoped scripts
Installation
deno install \
--unstable \
--allow-read --allow-env --allow-run \
-n script \
https://deno.land/x/scripts/script.ts
Usage
Create a scripts.json file in your root directory
script init
Add some scripts to the file
{
"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
script install
Run a script
script run hello
script run version init 0.1.0