feat: add deno task config in fresh init bootstrapped projects (#143)
This commit is contained in:
@@ -4,7 +4,7 @@ Welcome to the `fresh` documentation.
|
||||
|
||||
## Requirements
|
||||
|
||||
The documentation assumes you have Deno 1.12.0 or later installed.
|
||||
The documentation assumes you have Deno 1.20.1 or later installed.
|
||||
|
||||
To install Deno, follow the installation instructions in the manual:
|
||||
https://deno.land/manual/getting_started/installation
|
||||
@@ -45,11 +45,12 @@ To learn more about how projects are structured, take a look at the
|
||||
You can now run your new project locally using the `deno` CLI:
|
||||
|
||||
```
|
||||
deno run -A --watch main.ts
|
||||
deno task start
|
||||
```
|
||||
|
||||
The `--watch` option will cause your script to be reloaded on any changes to the
|
||||
source. If you do not want this you can omit the `--watch` option.
|
||||
The `--watch` option in `start` task will cause your script to be reloaded on
|
||||
any changes to the source. If you do not want this you can omit the `--watch`
|
||||
option in `deno.json`.
|
||||
|
||||
After you have started the project, you can view it in your browser at
|
||||
http://localhost:8000. You will first get served a JIT server rendered page,
|
||||
|
||||
@@ -1,6 +1,14 @@
|
||||
The next step after scaffolding out a new project, is to actually start it. To
|
||||
do this you can just `deno run` the `main.ts` file with the appropriate flags.
|
||||
You will need to provide permission flags for:
|
||||
do this you can just `deno task start`.
|
||||
|
||||
```
|
||||
$ deno task start
|
||||
Watcher Process started.
|
||||
Server listening on http://localhost:8000
|
||||
```
|
||||
|
||||
If you want to start manually without Deno task, `deno run` the `main.ts` with
|
||||
the appropriate flags. You will need to provide permission flags for:
|
||||
|
||||
- **`--allow-net`**: This is required to start the HTTP server.
|
||||
- **`--allow-read`**: This is required to read (static) files from disk.
|
||||
|
||||
Reference in New Issue
Block a user