Not Watching Files
See original GitHub issueHey,
With the --watch
flag or options present, denon doesn’t seem to watch for changes. I assume i can run a a Deno app with Denon, make a change to the file, and it would show the new change without restarting the server.
My Setup
- Windows 10
- Deno application using Drash, with Denon
- Deno Version:
PS Some\Path\To\My\Project> deno --version
deno 0.33.0
v8 8.1.108
typescript 3.7.2
Command I can running the following command to use denon to initiate the server:
Note: the below command is the way it is because after installing denon, the command for it isn’t working and i can’t be bothered to look into it yet
deno --allow-net --allow-read --allow-run --allow-env --allow-write https://deno.land/x/denon/denon.ts
Config
# .denonrc
{
"files": [
"app.ts"
],
"quiet": false,
"debug": true,
"fullscreen": true,
"extensions": [
"js",
"ts"
],
"match": [
"*.ts"
],
"skip": [
"*_test.ts",
"*_test.js"
],
"interval": 500,
"watch": [
"./"
],
"execute": {
".ts": ["deno", "--allow-read", "--allow-env", "--allow-write", "--allow-run", "--allow-net"]
}
}
Summary
Denon runs the app fine, it starts the correct file, and i can view the project in the browser, but watch doesn’t ‘seem’ o be working, for example, i have a console.log('Hello')
, i run the app, change the log text to console.log('Hello world')
, but still see “Hello” and not “Hello World”
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top GitHub Comments
I’ll leave it open for whether you want this issue to reference the issues above or not
Working
.denonrc
: