I was intrigued to test Ryan Dhal's Deno and nothing better than some personal project to make it right.
Some important stuff before:
Convert ...
For further actions, you may consider blocking this person and/or reporting abuse
@jotafeldmann - thanks for post I have a ReactJs project built with NPM + Webpack that needs to be updated, I would like to take get rid of its dependency on node_moudels and move to a Deno project instead would this be possible with your post as a guideline? if yes would it be a pain to do ie: time-consuming.
@autodidact_dev , unfortunately, no :( My article covers the aspects of a simple project. For your existent project, check the first links, start with medium.com/@mudgen/porting-node-js...
And please, share your experience as an article, whether possible.
Do I need Makefile, and
cmake
or something, instead ofpackage.json
script section?Hi Pacharapol :)
No, you don't need anything, just Deno.
I just use Makefile for convenience in all my projects.
Thanks for the feedback, I will update about it.
But I love
scripts
section. Otherwise, I often have to write some kind of bash scripts.*.yaml
(likePubspec.yaml
) would be better thanpackage.json
, because it supports multi-line shell scripts.Most of the common tasks come "out of the box" with Deno.
But for more custom/specific stuff (e.g. deploy) you need something like this. I'm using a Makefile for this kind of task.
Nice. Any experience on stability and performance so far? How do you deal with dependencies that are not on Deno.land?
Hi Sven, thanks for the answer.
Regarding stability and performance, I can't tell due to the humble nature of my personal project.
Regarding the dependencies, I'm putting all stuff inside a
make install
task.Thanks for reply.
So your
make install
task will download and unpack the deps and put them into a local folder from where you use them? Or how does this work in your case?Deno installs all dependencies in a centralized folder like
\home\user\.deno
. So we don't need to download every time, for all projects.What you need to specify is the security flag.
I've made a make install for my convenience, to understand all dependencies of the project and pre-download in case of the production environment.
You can find more info here:
I think Denoify is worth mentioning here :)