DEV Community

Cover image for 🦕Deno the Node replacement? Bonus: I created a boilerplate for Deno

🦕Deno the Node replacement? Bonus: I created a boilerplate for Deno

Michael "lampe" Lazarski on May 10, 2020

First things first Deno is right now not production-ready. As of writing this post, it is in version 1.0.0-rc2. Does this mean we should...
Collapse
 
louy2 profile image
Yufan Lou

For all these commands we don't need any extra tools or dependencies.

You used make. The proliferation of build tools in Node.js is partly driven by the absence of make on Windows. Deno has drake.

Collapse
 
lampewebdev profile image
Michael "lampe" Lazarski

make is just a nicer way of typing the commands all the time. This is also why I wrote that on windows you should use WSL.

I know about drake.

For now, I want to use much 3rd party libs because they first need to prove that they will be maintained for a longer time.

Collapse
 
louy2 profile image
Yufan Lou

Ah sorry I missed the WSL part.

Thread Thread
 
lampewebdev profile image
Michael "lampe" Lazarski

No problem :)

But yeah at some point maybe make is not the best solution :)

Collapse
 
harken24 profile image
Jozo

I'm having issue when i run make in my terminal I get error error TS2339: Property 'size' does not exist on type 'FileInfo'.
Not sure if'm doing something wrong or what?

Collapse
 
lampewebdev profile image
Michael "lampe" Lazarski

What OS?
What terminal bash/zsh/fish?
What is the output of deno -v ?

Collapse
 
harken24 profile image
Jozo

OS is debian 10 (buster)
terminal is terminator and shell is zsh extended with oh my zsh
output is deno 0.36.0

Thread Thread
 
lampewebdev profile image
Michael "lampe" Lazarski

Can you try:

deno upgrade --version 1.0.0

and then run it again ?

Collapse
 
sirseanofloxley profile image
Sean Allin Newell

Thanks for the VSCode extension link and boilerplate repo! This was the missing piece for making all my 'smart scripts' (beyond bash) I like to write occassionally migrate to deno.

Collapse
 
lampewebdev profile image
Michael "lampe" Lazarski

If you have any suggestions how to make the boilerplate better please feel free to write me 😊🙌

Collapse
 
pandaquests profile image
Panda Quests

Are you the owner or an contributor of Deno?

Collapse
 
lampewebdev profile image
Michael "lampe" Lazarski

No, the owner/creator is the same as Node.

I'm not yet a contributor but I'm looking into it.

Collapse
 
barzi92367868 profile image
Barzi

Thank you for your article.
Are you planning to write more about deno? I'm looking forward to reading more about it.
Tonight I'm going to give Deno a try myself.

Collapse
 
lampewebdev profile image
Michael "lampe" Lazarski

Thank you for reading it :)
Depends a little bit if people are interested in that topic :D
But I would love too

Collapse
 
alexandrudanpop profile image
Alexandru-Dan Pop

Really like the deps.ts convention!
I wonder if this will stick and really become a standard because otherwise it will be really hard to track all the deps in Deno.

Collapse
 
maheshkale profile image
Mahesh K

I have one question: Is deno specifically pushing for typescript? Or we are free to focus on vanilla javascript?

Collapse
 
lampewebdev profile image
Michael "lampe" Lazarski

They use typescript in the repo but you can use both.

Collapse
 
jsn1nj4 profile image
Elliot Derhay

Awesome, thanks! Will give this a try when I toy with Deno for the first time.

Collapse
 
lampewebdev profile image
Michael "lampe" Lazarski

Have fun with deno 👍😊