Run tasks cli for deno project.
drux start instead of deno task start. You donβt need to make any changes to the deno.json file, just install it and run it.
You can also install it globally using the following:
deno install --allow-read --allow-run -n drux https://deno.land/x/drux/cli.ts
Then, the package is available to run:
drux <task name>
Alternatively, you can use it directly from the CLI by using deno run:
deno run --allow-read --allow-run -n drux https://deno.land/x/drux/cli.ts <task name>
If the name of the deno config file or the file containing the tasks are different, you must specify it with the --config or -c flag. (only json)
drux <task name> --config my_file.json
If you canβt get updates, you may need to refresh the caches in DENO_DIR. See the documentation for this.
After installing DPX, you can directly use the CLI using the dpx command:
dpx --allow-read --allow-run drux <task name>
Required permissions:
--allow-read--allow-runRun tests:
deno test --allow-read --allow-run
MIT Β© ibodev1