1- # ![ denon] ( ./. assets/denon-horizontal.svg)
1+ # ![ denon] ( assets/denon-horizontal.svg )
22
33[ ![ 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 )
44[ ![ workflow] ( https://img.shields.io/github/workflow/status/denosaurs/denon/CI%20check?logo=github )] ( https://github.com/denosaurs/denon/actions )
55[ ![ releases] ( https://img.shields.io/github/v/release/denosaurs/denon?logo=github )] ( https://github.com/denosaurs/denon/releases/latest/ )
6- [ ![ deno version] ( https://img.shields.io/badge/deno-^1.2 .0-informational?logo=deno )] ( https://github.com/denoland/deno )
6+ [ ![ deno version] ( https://img.shields.io/badge/deno-^1.3 .0-informational?logo=deno )] ( https://github.com/denoland/deno )
77[ ![ deno doc] ( https://img.shields.io/badge/deno-doc-informational?logo=deno )] ( https://doc.deno.land/https/deno.land/x/denon/mod.ts )
88[ ![ discord] ( https://img.shields.io/discord/713043818806509608?logo=discord&logoColor=white )] ( https://discord.gg/shHG8vg )
99[](https://github.com/denosaurs/denon/blob/master/LICENSE)
1010
11- denon is the [ deno] ( https://deno.land/ ) replacement for [ nodemon] ( https://nodemon.io/ )
11+ denon is the [ deno] ( https://deno.land/ ) replacement for [ nodemon] ( https://nodemon.io/ )
1212providing a feature packed, highly configurable and easy to use experience.
1313
1414denon 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
1717
1818Denon provides most of the features you would expect of a file watcher and more.
1919
20- - Automatically restart your deno projects
21- - Drop-in replacement for ` deno ` executable
22- - Extensive configuration options with script support
23- - Configurable file watcher with support for filesystem events and directory walking
24- - Ignoring specific files or directories with [ glob] ( https://en.wikipedia.org/wiki/Glob_(programming) ) patterns
25- - Not limited to deno projects with a powerful script configuration
20+ - Automatically restart your deno projects
21+ - Drop-in replacement for ` deno ` executable
22+ - Extensive configuration options with script support
23+ - Configurable file watcher with support for filesystem events and directory walking
24+ - Ignoring specific files or directories with [ glob] ( < https://en.wikipedia.org/wiki/Glob_(programming) > ) patterns
25+ - Not limited to deno projects with a powerful script configuration
2626
2727## Install
2828
@@ -31,17 +31,16 @@ To install denon simply enter the following into a terminal:
3131#### deno.land
3232
3333``` bash
34- $ deno install --allow-read --allow-run --allow-write --allow-net -f -q --unstable https://deno.land/x/denon@2.3.2 /denon.ts
34+ $ deno install --allow-read --allow-run --allow-write --allow-net -f -q --unstable https://deno.land/x/denon@2.3.3 /denon.ts
3535```
3636
3737#### nest.land
3838
3939``` bash
40- $ deno install --allow-read --allow-run --allow-write --allow-net -f -q --unstable https://x.nest.land/denon@2.3.2 /denon.ts
40+ $ deno install --allow-read --allow-run --allow-write --allow-net -f -q --unstable https://x.nest.land/denon@2.3.3 /denon.ts
4141```
4242
43-
44- > ⚠️ Make sure you are using ` deno ` version ` ^1.2.0 ` to install this executable. You can upgrade running ` deno upgrade ` .
43+ > ⚠️ Make sure you are using ` deno ` version ` ^1.3.0 ` to install this executable. You can upgrade running ` deno upgrade ` .
4544
4645## Usage
4746
@@ -122,7 +121,7 @@ this will create a basic `denon.json` file:
122121}
123122```
124123
125- you can also initialize from a custom template
124+ you can also initialize from a custom template
126125(see [ templates/] ( https://github.com/denosaurs/denon/tree/master/templates ) folder for all the available templates)
127126
128127``` bash
@@ -154,7 +153,9 @@ You can use a JSON schema to have type checking on your configuration. Simply ad
154153``` jsonc
155154{
156155 " $schema" : " https://deno.land/x/denon/schema.json" ,
157- " scripts" : { /* */ }
156+ " scripts" : {
157+ /* */
158+ }
158159}
159160```
160161
@@ -201,7 +202,7 @@ const config: DenonConfig = {
201202 start: {
202203 cmd: "app.js",
203204 desc: "Run my webserver",
204- env: env()
205+ env: env(),
205206 },
206207 },
207208};
@@ -244,10 +245,7 @@ Scripts can also be defined by a complex object:
244245
245246 // available options...
246247 // they are described in the next paragraph
247- " allow" : [
248- " env" ,
249- " write" ,
250- ],
248+ " allow" : [" env" , " write" ],
251249 " unstable" : true
252250
253251 // running `denon start` will resolve in
@@ -269,7 +267,7 @@ Environment variables can be provided as an object and are passed directly to th
269267{
270268 // globally applied to all scripts
271269 " env" : {
272- " TOKEN" : " SUPER SECRET TOKEN" ,
270+ " TOKEN" : " SUPER SECRET TOKEN"
273271 },
274272
275273 " scripts" : {
@@ -308,7 +306,7 @@ but you can also declare permissions globally, following the same format.
308306 " start" : {
309307 " cmd" : " deno run app.ts" ,
310308 " desc" : " Run the main server." ,
311-
309+
312310 // specific for a single script
313311 // as object ...
314312 " allow" : {
@@ -340,7 +338,7 @@ of disabling file watching and run a script only once:
340338 " start" : {
341339 " cmd" : " deno run app.ts" ,
342340 " desc" : " Run the main server." ,
343-
341+
344342 // you can still enable watch on a script-by-script basis
345343 " watch" : true
346344 }
@@ -477,7 +475,9 @@ File watcher options:
477475
478476``` jsonc
479477{
480- " scripts" : { /* */ },
478+ " scripts" : {
479+ /* */
480+ },
481481
482482 " watcher" : {
483483 // The number of milliseconds after the last change.
@@ -500,15 +500,17 @@ Internal logger options:
500500
501501``` jsonc
502502{
503- " scripts" : { /* */ },
503+ " scripts" : {
504+ /* */
505+ },
504506
505507 " logger" : {
506508 // Clear screen after every restart.
507509 " fullscreen" : false ,
508510 // Output only errors
509511 " quiet" : false ,
510512 // Output debug messages
511- " debug" : true ,
513+ " debug" : true
512514 }
513515}
514516```
0 commit comments