Skip to content

Commit

Permalink
Added mod.ts and updated install instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
eliassjogreen committed Jan 17, 2020
1 parent 9b0de3f commit 9650db5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,18 @@ Like [nodemon](https://nodemon.io/), but made in [deno](https://deno.land/).

To install denon simply enter the following into a terminal:

`deno install . denon https://denolib.com/eliassjogreen/denon/denon.ts --allow-read --allow-run -- -- --`
`deno install . denon https://denolib.com/eliassjogreen/denon/denon.ts --allow-net --allow-read --allow-run -- -- --`

Yeah the last part is funky but it works at least...
Yeah the last part is funky but it works at least...

(The reason it need allow-net is because the workers need to access `https://deno.land/std/path/mod.ts` which apparently requires allow-net)

## Usage

To use denon simply think of `denon` as an alternative to `deno run` which accepts all the same flags if no
flags or configuration has been set.

```
```
Usage:
denon [options] [script] [-- <your_args>]
Expand All @@ -42,7 +44,8 @@ options. All of the options in the configuration file are optional and will be s
is specified.

Example configuration with all of the possible configuration values set to something:
```json

``` json
{
"files": [
"main.ts"
Expand Down
2 changes: 1 addition & 1 deletion log.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { yellow, green, red, setColorEnabled } from "https://deno.land/std/fmt/mod.ts";
import { DenonConfig, DenonConfigDefaults } from "./denonrc.ts";
import { DenonConfig } from "./denonrc.ts";

setColorEnabled(true);

Expand Down
2 changes: 2 additions & 0 deletions mod.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from "./watcher.ts";
export * from "./denon.ts";

0 comments on commit 9650db5

Please sign in to comment.