Simple Deno project config/run script
It works but is not very robust atm.
Written in python and includes a --install
command line flag that "should" work on linux but hasn't been tested.
This is more of a proof of concept than anything in reponse to the Deno issue #1431 with the yaml based on the syntax created by mauritzn's example.
./denorun --install
The repository includes a demo config and sample deno project that simply outputs a suggestion to the command line if you're bored using the boredapi's faas api call.
$ denorun
If you're bored, Cook something together with someone.
- The config file is required and can be in yaml or json format.
- The config file must be named "deno_config.json" when using json.
- The config file must be named "deno_config.yaml" when using yaml.
- Yaml is the prefered format thus if both json and yaml config files exist, the script with use the yaml version and ignore the json file.
At this time the only required fields are:
- main - filename of deno script.
- permissions - array of permisions to add.
main:
server.ts
permissions:
- allow-net
{
"main": "server.ts",
"permissions": [
"allow-net"
]
}