mirror of
https://github.com/rjNemo/deno_tuto
synced 2026-06-06 02:26:40 +00:00
No description
| .vscode | ||
| examples | ||
| .gitignore | ||
| deps.ts | ||
| index.ts | ||
| README.md | ||
Deno
📑 Installation
On macOS use HomeBrew to install deno then update to latest version.
brew install deno
deno upgrade
⚙️ Configuration
Create a basic configuration file using:
code .vscode/settings.json
with the following content
{
"deno.enable": true,
"deno.unstable": true,
"deno.lint": true,
"deno.import_intellisense_origins": {
"https://deno.land": true
},
"[typescript]": {
"editor.defaultFormatter": "denoland.vscode-deno"
},
"[typescriptreact]": {
"editor.defaultFormatter": "denoland.vscode-deno"
}
}
🧪 Test run
Create a index.ts file such as
console.log("Hello, Deno");
then run
deno run --allow-net index.ts
Checkout files in examples folder.
Watch mode
deno run --watch --unstable index.ts