-
-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Qu4k
committed
Aug 29, 2020
1 parent
1066934
commit 68c38ad
Showing
29 changed files
with
137 additions
and
431 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
# ide | ||
.idea | ||
.vscode | ||
|
||
# testing directory | ||
testing/ | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
# ![denon](./.assets/denon-horizontal.svg) | ||
# ![denon](assets/denon-horizontal.svg) | ||
|
||
[![stars](https://img.shields.io/github/stars/denosaurs/denon?logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAEFCu8CAAAABGdBTUEAALGPC/xhBQAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAHKADAAQAAAABAAAAHAAAAABHddaYAAABxElEQVRIDe2Wv04CQRDGAQuoTKQ2ITyADZWVJZWV+gJYWBNqKh/C16CRBlprWxsTE2NJfABNOH9z7Gzm2Nv7A8TCOMnHzs1838ze3e4ejUbMkiRZS64lP1x8MjTFr2DQE6Gl2nI+7POARXAmdbas44ku8eLGhU9UckRliX6qxM9sQvz0vrcVaaKJKdsSNO7LOtK1kvcbaXVRu4LMz9kgKoYwBq/KLBi/yC2DQgSnBaLMQ88Tx7Q3AVkDKHpgBdoak5HrCSjuaAW/6zOz+u/Q3ZfcVrhliuaPYCAqsSJekIO/TlWbn2BveAH5JZBVUWayusZW2ClTuPzMi6xTIp5abuBHxHLcZSyzkxHF1uNJRrV9gXBhOl7h6wFW/FqcaGILEmsDWfg9G//3858Az0lWaHhm5dP3i9JoDtTm+1UrUdMl72OZv10itfx3zOYpLAv/FPQNLvFj35Bnco/gzeCD72H6b4JYaDTpgidwaJOa3bCji5BsgYcDdJUamSMi2lQTCEbgu0Zz4Y5UX3tE3K/RTKny3qNWdst3UWU8sYtmU40py2Go9o5zC460l/guJjm1leZrjaiH4B4cVxUK12mGVTV/j/cDqcFClUX01ZEAAAAASUVORK5CYII=)](https://github.com/denosaurs/denon/stargazers) | ||
[![workflow](https://img.shields.io/github/workflow/status/denosaurs/denon/CI%20check?logo=github)](https://github.com/denosaurs/denon/actions) | ||
[![releases](https://img.shields.io/github/v/release/denosaurs/denon?logo=github)](https://github.com/denosaurs/denon/releases/latest/) | ||
[![deno version](https://img.shields.io/badge/deno-^1.2.0-informational?logo=deno)](https://github.com/denoland/deno) | ||
[![deno version](https://img.shields.io/badge/deno-^1.3.0-informational?logo=deno)](https://github.com/denoland/deno) | ||
[![deno doc](https://img.shields.io/badge/deno-doc-informational?logo=deno)](https://doc.deno.land/https/deno.land/x/denon/mod.ts) | ||
[![discord](https://img.shields.io/discord/713043818806509608?logo=discord&logoColor=white)](https://discord.gg/shHG8vg) | ||
[![license](https://img.shields.io/github/license/denosaurs/denon?logo=data:image/png;base64,iVBORw0KGgoAAAANSUh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A8OGd1YIbF7+F3P+B6dYpYdsJNZgrjO0UdOIhmom0nwL0pnfnzkL1803jAoKhvyAAAAAElFTkSuQmCC)](https://github.com/denosaurs/denon/blob/master/LICENSE) | ||
|
||
denon is the [deno](https://deno.land/) replacement for [nodemon](https://nodemon.io/) | ||
denon is the [deno](https://deno.land/) replacement for [nodemon](https://nodemon.io/) | ||
providing a feature packed, highly configurable and easy to use experience. | ||
|
||
denon does **not** require _any_ additional changes to your code or method of development. `denon` is a replacement wrapper for `deno`. To use `denon`,replace the word `deno` on the command line when executing your script. | ||
|
@@ -17,12 +17,12 @@ denon does **not** require _any_ additional changes to your code or method of de | |
|
||
Denon provides most of the features you would expect of a file watcher and more. | ||
|
||
- Automatically restart your deno projects | ||
- Drop-in replacement for `deno` executable | ||
- Extensive configuration options with script support | ||
- Configurable file watcher with support for filesystem events and directory walking | ||
- Ignoring specific files or directories with [glob](https://en.wikipedia.org/wiki/Glob_(programming)) patterns | ||
- Not limited to deno projects with a powerful script configuration | ||
- Automatically restart your deno projects | ||
- Drop-in replacement for `deno` executable | ||
- Extensive configuration options with script support | ||
- Configurable file watcher with support for filesystem events and directory walking | ||
- Ignoring specific files or directories with [glob](<https://en.wikipedia.org/wiki/Glob_(programming)>) patterns | ||
- Not limited to deno projects with a powerful script configuration | ||
|
||
## Install | ||
|
||
|
@@ -31,17 +31,16 @@ To install denon simply enter the following into a terminal: | |
#### deno.land | ||
|
||
```bash | ||
$ deno install --allow-read --allow-run --allow-write --allow-net -f -q --unstable https://deno.land/x/[email protected].2/denon.ts | ||
$ deno install --allow-read --allow-run --allow-write --allow-net -f -q --unstable https://deno.land/x/[email protected].3/denon.ts | ||
``` | ||
|
||
#### nest.land | ||
|
||
```bash | ||
$ deno install --allow-read --allow-run --allow-write --allow-net -f -q --unstable https://x.nest.land/[email protected].2/denon.ts | ||
$ deno install --allow-read --allow-run --allow-write --allow-net -f -q --unstable https://x.nest.land/[email protected].3/denon.ts | ||
``` | ||
|
||
|
||
> ⚠️ Make sure you are using `deno` version `^1.2.0` to install this executable. You can upgrade running `deno upgrade`. | ||
> ⚠️ Make sure you are using `deno` version `^1.3.0` to install this executable. You can upgrade running `deno upgrade`. | ||
## Usage | ||
|
||
|
@@ -122,7 +121,7 @@ this will create a basic `denon.json` file: | |
} | ||
``` | ||
|
||
you can also initialize from a custom template | ||
you can also initialize from a custom template | ||
(see [templates/](https://github.com/denosaurs/denon/tree/master/templates) folder for all the available templates) | ||
|
||
```bash | ||
|
@@ -154,7 +153,9 @@ You can use a JSON schema to have type checking on your configuration. Simply ad | |
```jsonc | ||
{ | ||
"$schema": "https://deno.land/x/denon/schema.json", | ||
"scripts": { /* */ } | ||
"scripts": { | ||
/* */ | ||
} | ||
} | ||
``` | ||
|
||
|
@@ -201,7 +202,7 @@ const config: DenonConfig = { | |
start: { | ||
cmd: "app.js", | ||
desc: "Run my webserver", | ||
env: env() | ||
env: env(), | ||
}, | ||
}, | ||
}; | ||
|
@@ -244,10 +245,7 @@ Scripts can also be defined by a complex object: | |
|
||
// available options... | ||
// they are described in the next paragraph | ||
"allow": [ | ||
"env", | ||
"write", | ||
], | ||
"allow": ["env", "write"], | ||
"unstable": true | ||
|
||
// running `denon start` will resolve in | ||
|
@@ -269,7 +267,7 @@ Environment variables can be provided as an object and are passed directly to th | |
{ | ||
// globally applied to all scripts | ||
"env": { | ||
"TOKEN": "SUPER SECRET TOKEN", | ||
"TOKEN": "SUPER SECRET TOKEN" | ||
}, | ||
|
||
"scripts": { | ||
|
@@ -308,7 +306,7 @@ but you can also declare permissions globally, following the same format. | |
"start": { | ||
"cmd": "deno run app.ts", | ||
"desc": "Run the main server.", | ||
|
||
// specific for a single script | ||
// as object ... | ||
"allow": { | ||
|
@@ -340,7 +338,7 @@ of disabling file watching and run a script only once: | |
"start": { | ||
"cmd": "deno run app.ts", | ||
"desc": "Run the main server.", | ||
|
||
// you can still enable watch on a script-by-script basis | ||
"watch": true | ||
} | ||
|
@@ -477,7 +475,9 @@ File watcher options: | |
|
||
```jsonc | ||
{ | ||
"scripts": { /* */ }, | ||
"scripts": { | ||
/* */ | ||
}, | ||
|
||
"watcher": { | ||
// The number of milliseconds after the last change. | ||
|
@@ -500,15 +500,17 @@ Internal logger options: | |
|
||
```jsonc | ||
{ | ||
"scripts": { /* */ }, | ||
"scripts": { | ||
/* */ | ||
}, | ||
|
||
"logger": { | ||
// Clear screen after every restart. | ||
"fullscreen": false, | ||
// Output only errors | ||
"quiet": false, | ||
// Output debug messages | ||
"debug": true, | ||
"debug": true | ||
} | ||
} | ||
``` | ||
|
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.