chore: remove --no-check flags (#259)

Since Deno 1.23.0, `--no-check` has become the default type checking
mode for `deno run`. As such, we don't need to specify this flag
anymore.
This commit is contained in:
Luca Casonato
2022-06-20 12:45:48 +02:00
committed by GitHub
parent cbbf616a74
commit de6c3f6ed5
14 changed files with 22 additions and 27 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ will scaffold out a new project with some example files to get you started.
To create a new project in the directory `"my-project"`, run:
```
$ deno run -A --no-check https://raw.githubusercontent.com/lucacasonato/fresh/main/init.ts my-project
$ deno run -A https://raw.githubusercontent.com/lucacasonato/fresh/main/init.ts my-project
The manifest has been generated for 3 routes and 1 islands.
Project created!
+4 -9
View File
@@ -29,19 +29,14 @@ fresh server will automatically reload whenever you make a change to your code.
By default `--watch` only watches over files in your module graph. Some project
files like static files are not part of the module graph, but you probably want
to restart/reload whenever you make a change to them too. This can be done by
passing the extra folder as an argument: `--watch=static/`.
Finally you might want to add a `--no-check` flag to disable the type checking
during development. Typically many people already get type checking from their
editor through the use of the Deno language server, so this is a good way to
speed up the inner loop iteration time. During CI you probably want to run with
`--no-check=remote` disable type checking of remote dependencies (because these
are out of your control).
passing the extra folder as an argument: `--watch=static/`. You should also add
`routes/` to the watch list, so that the server restarts automatically whenever
you add a new route.
Combining all of this we get the following `deno run` command:
```
$ deno run --allow-net --allow-read --allow-env --allow-run --watch=static/ --no-check main.ts
$ deno run --allow-net --allow-read --allow-env --allow-run --watch=static/,routes/ main.ts
Watcher Process started.
Server listening on http://localhost:8000
```