-
Notifications
You must be signed in to change notification settings - Fork 209
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
audit docs from Basics section for manual updates (#67)
- Loading branch information
Showing
7 changed files
with
29 additions
and
43 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,19 +40,15 @@ written something similar in our `deno.json` configuration file: | |
|
||
## Example - Using deno_std's fmt module via `fmt/` | ||
|
||
**deno.json** | ||
|
||
```json | ||
```json title="deno.json" | ||
{ | ||
"imports": { | ||
"fmt/": "https://deno.land/std@$STD_VERSION/fmt/" | ||
} | ||
} | ||
``` | ||
|
||
**color.ts** | ||
|
||
```ts, ignore | ||
```ts title="color.ts" | ||
import { red } from "fmt/colors.ts"; | ||
|
||
console.log(red("hello world")); | ||
|
@@ -62,9 +58,7 @@ console.log(red("hello world")); | |
|
||
To use your project root for absolute imports: | ||
|
||
**deno.json** | ||
|
||
```jsonc | ||
```json title="deno.json" | ||
{ | ||
"imports": { | ||
"/": "./", | ||
|
@@ -73,9 +67,7 @@ To use your project root for absolute imports: | |
} | ||
``` | ||
|
||
**main.ts** | ||
|
||
```ts, ignore | ||
```ts title="main.ts" | ||
import { MyUtil } from "/util.ts"; | ||
``` | ||
|
||
|
@@ -95,7 +87,7 @@ scope in the import map that looks something like this: | |
```json | ||
{ | ||
"imports": { | ||
"https://deno.land/[email protected]/": "https://deno.land/std/" | ||
"https://deno.land/[email protected]/": "https://deno.land/std@$STD_VERSION/" | ||
}, | ||
"scopes": { | ||
"https://deno.land/x/example/": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters