diff options
Diffstat (limited to 'docs/tools')
-rw-r--r-- | docs/tools/bundler.md | 2 | ||||
-rw-r--r-- | docs/tools/debugger.md | 12 | ||||
-rw-r--r-- | docs/tools/script_installer.md | 10 |
3 files changed, 12 insertions, 12 deletions
diff --git a/docs/tools/bundler.md b/docs/tools/bundler.md index 72a492132..292adb5f4 100644 --- a/docs/tools/bundler.md +++ b/docs/tools/bundler.md @@ -4,7 +4,7 @@ dependencies of the specified input. For example: ``` -> deno bundle https://deno.land/std/examples/colors.ts colors.bundle.js +> deno bundle https://deno.land/std@$STD_VERSION/examples/colors.ts colors.bundle.js Bundling "colors.bundle.js" Emitting bundle to "colors.bundle.js" 9.2 kB emitted. diff --git a/docs/tools/debugger.md b/docs/tools/debugger.md index 0edbfe8a6..7f2c2378e 100644 --- a/docs/tools/debugger.md +++ b/docs/tools/debugger.md @@ -15,16 +15,16 @@ the first line of code. ### Chrome Devtools Let's try debugging a program using Chrome Devtools. For this, we'll use -[file_server.ts](https://deno.land/std@v0.50.0/http/file_server.ts) from `std`, -a static file server. +[file_server.ts](https://deno.land/std@$STD_VERSION/http/file_server.ts) from +`std`, a static file server. Use the `--inspect-brk` flag to break execution on the first line: ```shell -$ deno run --inspect-brk --allow-read --allow-net https://deno.land/std@v0.50.0/http/file_server.ts +$ deno run --inspect-brk --allow-read --allow-net https://deno.land/std@$STD_VERSION/http/file_server.ts Debugger listening on ws://127.0.0.1:9229/ws/1e82c406-85a9-44ab-86b6-7341583480b1 -Download https://deno.land/std@v0.50.0/http/file_server.ts -Compile https://deno.land/std@v0.50.0/http/file_server.ts +Download https://deno.land/std@$STD_VERSION/http/file_server.ts +Compile https://deno.land/std@$STD_VERSION/http/file_server.ts ... ``` @@ -110,7 +110,7 @@ with a script name if you want a fixed entry point. Let's try out debugging a local source file. Create `server.ts`: ```ts -import { serve } from "https://deno.land/std@v0.50.0/http/server.ts"; +import { serve } from "https://deno.land/std@$STD_VERSION/http/server.ts"; const server = serve({ port: 8000 }); console.log("http://localhost:8000/"); diff --git a/docs/tools/script_installer.md b/docs/tools/script_installer.md index 68db10d61..e588a39d6 100644 --- a/docs/tools/script_installer.md +++ b/docs/tools/script_installer.md @@ -12,8 +12,8 @@ the specified CLI flags and main module. It is placed in the installation root's Example: ```shell -$ deno install --allow-net --allow-read https://deno.land/std/http/file_server.ts -[1/1] Compiling https://deno.land/std/http/file_server.ts +$ deno install --allow-net --allow-read https://deno.land/std@$STD_VERSION/http/file_server.ts +[1/1] Compiling https://deno.land/std@$STD_VERSION/http/file_server.ts ✅ Successfully installed file_server. /Users/deno/.deno/bin/file_server @@ -22,7 +22,7 @@ $ deno install --allow-net --allow-read https://deno.land/std/http/file_server.t To change the executable name, use `-n`/`--name`: ```shell -deno install --allow-net --allow-read -n serve https://deno.land/std/http/file_server.ts +deno install --allow-net --allow-read -n serve https://deno.land/std@$STD_VERSION/http/file_server.ts ``` The executable name is inferred by default: @@ -36,7 +36,7 @@ The executable name is inferred by default: To change the installation root, use `--root`: ```shell -deno install --allow-net --allow-read --root /usr/local https://deno.land/std/http/file_server.ts +deno install --allow-net --allow-read --root /usr/local https://deno.land/std@$STD_VERSION/http/file_server.ts ``` The installation root is determined, in order of precedence: @@ -55,7 +55,7 @@ You must specify permissions that will be used to run the script at installation time. ```shell -deno install --allow-net --allow-read https://deno.land/std/http/file_server.ts -p 8080 +deno install --allow-net --allow-read https://deno.land/std@$STD_VERSION/http/file_server.ts -p 8080 ``` The above command creates an executable called `file_server` that runs with |