Skip to content

Commit 68c38ad

Browse files
author
Qu4k
committed
feat: deno 1.3.2 support
1 parent 1066934 commit 68c38ad

29 files changed

+137
-431
lines changed
Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,24 @@ diverse, inclusive, and healthy community.
1717
Examples of behavior that contributes to a positive environment for our
1818
community include:
1919

20-
- Demonstrating empathy and kindness toward other people
21-
- Being respectful of differing opinions, viewpoints, and experiences
22-
- Giving and gracefully accepting constructive feedback
23-
- Accepting responsibility and apologizing to those affected by our mistakes,
24-
and learning from the experience
25-
- Focusing on what is best not just for us as individuals, but for the
26-
overall community
20+
- Demonstrating empathy and kindness toward other people
21+
- Being respectful of differing opinions, viewpoints, and experiences
22+
- Giving and gracefully accepting constructive feedback
23+
- Accepting responsibility and apologizing to those affected by our mistakes,
24+
and learning from the experience
25+
- Focusing on what is best not just for us as individuals, but for the
26+
overall community
2727

2828
Examples of unacceptable behavior include:
2929

30-
- The use of sexualized language or imagery, and sexual attention or
31-
advances of any kind
32-
- Trolling, insulting or derogatory comments, and personal or political attacks
33-
- Public or private harassment
34-
- Publishing others' private information, such as a physical or email
35-
address, without their explicit permission
36-
- Other conduct which could reasonably be considered inappropriate in a
37-
professional setting
30+
- The use of sexualized language or imagery, and sexual attention or
31+
advances of any kind
32+
- Trolling, insulting or derogatory comments, and personal or political attacks
33+
- Public or private harassment
34+
- Publishing others' private information, such as a physical or email
35+
address, without their explicit permission
36+
- Other conduct which could reasonably be considered inappropriate in a
37+
professional setting
3838

3939
## Enforcement Responsibilities
4040

@@ -106,7 +106,7 @@ Violating these terms may lead to a permanent ban.
106106
### 4. Permanent Ban
107107

108108
**Community Impact**: Demonstrating a pattern of violation of community
109-
standards, including sustained inappropriate behavior, harassment of an
109+
standards, including sustained inappropriate behavior, harassment of an
110110
individual, or aggression toward or disparagement of classes of individuals.
111111

112112
**Consequence**: A permanent ban from any sort of public interaction within

.github/ISSUE_TEMPLATE/bug-report.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
---
22
name: Bug Report
33
about: Create a report to help us improve denon
4-
title: ''
4+
title: ""
55
labels: bug
6-
assignees: ''
7-
6+
assignees: ""
87
---
98

109
**Describe the bug**
@@ -28,9 +27,9 @@ If applicable, add screenshots to help explain your problem.
2827

2928
**Setup**
3029

31-
- OS: (e.g. macOS, windows, linux)
32-
- Deno version: (`deno version`)
33-
- Denon version: (`denon --version`)
30+
- OS: (e.g. macOS, windows, linux)
31+
- Deno version: (`deno version`)
32+
- Denon version: (`denon --version`)
3433

3534
**Additional context**
3635
Add any other context about the problem here.

.github/ISSUE_TEMPLATE/feature-request.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
---
22
name: Feature Request
33
about: Suggest an idea for denon
4-
title: ''
4+
title: ""
55
labels: enhancement
6-
assignees: ''
7-
6+
assignees: ""
87
---
98

109
**Is your feature request related to a problem? Please describe.**

.github/workflows/ci.yml

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2,38 +2,38 @@ name: CI check
22

33
on:
44
push:
5-
branches: [ master, dev ]
5+
branches: [master, dev]
66
pull_request:
7-
branches: [ master, dev ]
7+
branches: [master, dev]
88

99
jobs:
1010
lint:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- name: Checkout sources
14-
uses: actions/checkout@v2
15-
16-
- name: Setup latest deno version
17-
uses: denolib/setup-deno@v2
18-
with:
19-
deno-version: v1.x
20-
21-
- name: Check deno fmt
22-
run: deno fmt --check
23-
24-
- name: Check deno lint
25-
run: deno lint --unstable
26-
13+
- name: Checkout sources
14+
uses: actions/checkout@v2
15+
16+
- name: Setup latest deno version
17+
uses: denolib/setup-deno@v2
18+
with:
19+
deno-version: v1.x
20+
21+
- name: Check deno fmt
22+
run: deno fmt --check
23+
24+
- name: Check deno lint
25+
run: deno lint --unstable
26+
2727
test:
2828
runs-on: ubuntu-latest
2929
steps:
30-
- name: Checkout sources
31-
uses: actions/checkout@v2
32-
33-
- name: Setup latest deno version
34-
uses: denolib/setup-deno@v2
35-
with:
36-
deno-version: v1.x
37-
38-
- name: Run deno test
39-
run: deno test -A --unstable
30+
- name: Checkout sources
31+
uses: actions/checkout@v2
32+
33+
- name: Setup latest deno version
34+
uses: denolib/setup-deno@v2
35+
with:
36+
deno-version: v1.x
37+
38+
- name: Run deno test
39+
run: deno test -A --unstable

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# ide
22
.idea
3+
.vscode
34

45
# testing directory
56
testing/

.vscode/extensions.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

.vscode/settings.json

Lines changed: 0 additions & 26 deletions
This file was deleted.

README.md

Lines changed: 28 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
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
[![license](https://img.shields.io/github/license/denosaurs/denon?logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAEFCu8CAAAABGdBTUEAALGPC/xhBQAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAHKADAAQAAAABAAAAHAAAAABHddaYAAAC5UlEQVRIDd2WPWtVQRCGby5pVASLiGghQSxyG8Ui2KWwCfkH9olY2JneQkiR0oCIxH/gB+qVFDYBIWBAbAIRSbCRpLXwIxLiPT7vnNm9e87ZxJtUwYH3zO47Mzv7Mbv3tlo5KYriGtgAJ81OY1ENdG/YI4boFEOI911BXgY/pdtwGuAtXpvmB1tAXHDnUolE5urkPOQo6MqA3pXWmJJL4Bb4rQ7yEYfxsjnIF29NJIoNC6e5fxOL/qN+9KCz7AaLpN8zI415N2i2EptpGrkRIjGeAuvR6IY1hSFLFUOug9Ms2M7ZxIUNytm1mnME186sdI2BOCwAyQMg54ugzSmKmwbPwSbolKH+hbAtQdsOoF+BsF3anUVwBdiOWRidFZDKTTrKEAJTm3GVrGkHzw/uPZbyx7DNNLfB7KGmRsCcr+/gjaiPSpAOTyX9qG4L/XBDdWXDDf1M+wtQ5fwCOtcb4Dto6VpLmzByB6gqdHbTItGSJdAGqibJQhmRfCF7IN4beSF2G9CqnGXQrxofXU+EykllNeoczRgYytDKMubDIRK0g5MF8rE69cGu0u9nlUcqaUZ41W0qK2nGcSzr4D2wV9U9wxp1rnpxn8agXAOHMQ9cy9kbHM7ngY4gFb03TxrO/yfBUifTtXt78jCrjY/jgEFnMn45LuNWUtknuu7NSm7D3QEn3HbatV1Q2jvgIRf1sfODKQaeymxZoMLlTqsq1LF+HvaTqQOzEzUCfni0/eNIA+DfuE3KEtbsegckGmMktTXacnBHPVe687ugkpT+axCkkhBSyRSjWI2xf1KMMVmYiQdWksK9BEFiQoiYLIlvJA3/zeTzCejP0RbB6YPbhZuB+0pR3KcdX0LaJtju0ZgBL8Bd+sbz2QIaU2OfBX3BaQLsgZysQtrk0M8Sh1A0w3DyyYnGnAiZ4gqZ/TvI2A8OGd1YIbF7+F3P+B6dYpYdsJNZgrjO0UdOIhmom0nwL0pnfnzkL1803jAoKhvyAAAAAElFTkSuQmCC)](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/)
1212
providing a feature packed, highly configurable and easy to use experience.
1313

1414
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
1717

1818
Denon 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
```
File renamed without changes.

0 commit comments

Comments
 (0)