Skip to content

Commit

Permalink
feat: deno 1.3.2 support
Browse files Browse the repository at this point in the history
  • Loading branch information
Qu4k committed Aug 29, 2020
1 parent 1066934 commit 68c38ad
Show file tree
Hide file tree
Showing 29 changed files with 137 additions and 431 deletions.
32 changes: 16 additions & 16 deletions CODE_OF_CONDUCT.md → .github/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,24 @@ diverse, inclusive, and healthy community.
Examples of behavior that contributes to a positive environment for our
community include:

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

Examples of unacceptable behavior include:

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

## Enforcement Responsibilities

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

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

**Consequence**: A permanent ban from any sort of public interaction within
Expand Down
11 changes: 5 additions & 6 deletions .github/ISSUE_TEMPLATE/bug-report.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
name: Bug Report
about: Create a report to help us improve denon
title: ''
title: ""
labels: bug
assignees: ''

assignees: ""
---

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

**Setup**

- OS: (e.g. macOS, windows, linux)
- Deno version: (`deno version`)
- Denon version: (`denon --version`)
- OS: (e.g. macOS, windows, linux)
- Deno version: (`deno version`)
- Denon version: (`denon --version`)

**Additional context**
Add any other context about the problem here.
5 changes: 2 additions & 3 deletions .github/ISSUE_TEMPLATE/feature-request.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
name: Feature Request
about: Suggest an idea for denon
title: ''
title: ""
labels: enhancement
assignees: ''

assignees: ""
---

**Is your feature request related to a problem? Please describe.**
Expand Down
52 changes: 26 additions & 26 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,38 +2,38 @@ name: CI check

on:
push:
branches: [ master, dev ]
branches: [master, dev]
pull_request:
branches: [ master, dev ]
branches: [master, dev]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Setup latest deno version
uses: denolib/setup-deno@v2
with:
deno-version: v1.x

- name: Check deno fmt
run: deno fmt --check
- name: Check deno lint
run: deno lint --unstable
- name: Checkout sources
uses: actions/checkout@v2

- name: Setup latest deno version
uses: denolib/setup-deno@v2
with:
deno-version: v1.x

- name: Check deno fmt
run: deno fmt --check

- name: Check deno lint
run: deno lint --unstable

test:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Setup latest deno version
uses: denolib/setup-deno@v2
with:
deno-version: v1.x

- name: Run deno test
run: deno test -A --unstable
- name: Checkout sources
uses: actions/checkout@v2

- name: Setup latest deno version
uses: denolib/setup-deno@v2
with:
deno-version: v1.x

- name: Run deno test
run: deno test -A --unstable
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# ide
.idea
.vscode

# testing directory
testing/
Expand Down
5 changes: 0 additions & 5 deletions .vscode/extensions.json

This file was deleted.

26 changes: 0 additions & 26 deletions .vscode/settings.json

This file was deleted.

54 changes: 28 additions & 26 deletions README.md
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,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)

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.
Expand All @@ -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

Expand All @@ -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

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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": {
/* */
}
}
```

Expand Down Expand Up @@ -201,7 +202,7 @@ const config: DenonConfig = {
start: {
cmd: "app.js",
desc: "Run my webserver",
env: env()
env: env(),
},
},
};
Expand Down Expand Up @@ -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
Expand All @@ -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": {
Expand Down Expand Up @@ -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": {
Expand Down Expand Up @@ -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
}
Expand Down Expand Up @@ -477,7 +475,9 @@ File watcher options:

```jsonc
{
"scripts": { /* */ },
"scripts": {
/* */
},

"watcher": {
// The number of milliseconds after the last change.
Expand All @@ -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
}
}
```
Expand Down
File renamed without changes
File renamed without changes
2 changes: 1 addition & 1 deletion denon.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const config: DenonConfig = {
scripts: {
test: [
{
cmd: "deno fmt",
cmd: "deno fmt --check",
desc: "format code",
},
{
Expand Down
Loading

0 comments on commit 68c38ad

Please sign in to comment.