deno Touching repository
npm
(module URLs instead of it)package.json
in its module resolution algorithm.(he says it’s a noise.)cf: https://deno.land/manual#comparison-to-nodejs, https://qiita.com/so99ynoodles/items/c3ba2a528052827e3b3c
Follow up to 1.Introduction, 2.Getting Started (up to 2.3 First steps) at https://deno.land/manual , and some 6. Examples. And a little code like that.
$ brew install deno
$ deno --version
deno 1.4.4
v8 8.7.75
typescript 4.0.3
getting started
$ deno run https://deno.land/std@0.73.0/examples/welcome.ts
Download https://deno.land/std@0.73.0/examples/welcome.ts
Check https://deno.land/std@0.73.0/examples/welcome.ts
Welcome to Deno 🦕
$ deno run hello-world.ts
Hello John
Hello Sarah
Hello Kai
$ deno run --allow-net webserver.ts
Check file:///Users/shogokakinouchiv2/study/play-with-deno/webserver.ts
HTTP webserver running. Access it at: http://localhost:3000/
It’s kind of like that from here.
webserver.ts When I copied it, the editor got angry. Create .vscode / settings.json "deno.enable": true
and write (language server is enabled). https://marketplace.visualstudio.com/items?itemName=denoland.vscode-deno
Humanity is what makes you want to hot reload when writing code. It seems that it can be done using a library called Denon. https://deno.land/x/denon@2.4.1 Hit one command and pass through the path.
$ deno install -qAf --unstable https://deno.land/x/denon@2.4.0/denon.ts
deno
instead of denon
commands. (It’s hard to understand! And it looks like a little bug!-It’s just unstable.)Author: kakinouchi
Source Code: https://github.com/kakinouchi/play-with-deno
#deno #node #nodejs #javascript