Comments (2)
When specifying --watch
, the script program will restart if any of the files in the module graph (so the entrypoint, or any file imports from it or any of it's dependencies) change.
You can pass additional files or folder to --watch
as paths relative to your cwd. When passing multiple paths, separate them with ,
. This is also explained in the help text.
--watch[=<FILES>...]
Watch for file changes and restart process automatically.
Local files from entry point module graph are watched by default.
Additional paths might be watched by passing them as arguments to this flag.
Finally, you can exclude files from being watched, by specifying a --watch-exclude
flag:
--watch-exclude[=<FILES>...]
Exclude provided files/patterns from watch mode
The behaviour where non existant paths are not an error is expected and desired - we want to allow you to watch a directory or folder that does not exist yet, that may only be created by the script itself during execution.
from deno.
You're right the default is specified. I'd phrase it differently though since it's a little unusual to have an option with an argument also have a global effect. The use of commas isn't documented as far as I can tell though, and neither is the pattern format referred to. Maybe it could be rewritten like this:
--watch={=<FILE_PATTERNS>...]
Watch for file changes and restart process automatically.
When this option appears local files from entry point module graph are watched by default. If an argument is provided to this
option it give a comma-separated list of ???-style file patterns that will also be watched.
I still don't know what file patterns are supported. It doesn't seem be be shell-style globs (e.g. *.perl).
from deno.
Related Issues (20)
- WebGPU BYOW: to submit to queue twice would cause the program to freeze in surface.present.
- `fs.fchown` is not a function HOT 4
- WebGPU: GPUDevice.createRenderPipelineAsync not return a Promise
- KV without path will not persist data if compiled
- `npm:` import does not resolve type correctly HOT 1
- Vendored npm dependencies fail while offline. HOT 2
- Bad base64 decoding performance with `node:buffer`
- ext/node(http): "close" event not emitted on a response when client terminates
- thread 'tokio-runtime-worker' has overflowed its stack HOT 4
- Subscription to an empty stream with the watch([]) method often causes a panic
- Incompatible dynamic import in npm:* commonjs context HOT 1
- Deno cache database errors when on a shared drive HOT 1
- Add comments for documentation to types that don't have them
- deno coverage: exclude comment HOT 1
- suggestion: add `Deno.lutimes[Sync]()`
- bug: shebang line causes module docs to be omitted
- bug: script within workspace throws on last inter-workspace import
- React helmet async breaking in 1.44.3 HOT 2
- Bug: TS "Infer return type" inserts file specifier
- 💡 Can executing 'Deno. cwd()' in the worker return an independent directory? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deno.