1594603100
Wouldn’t it be great to have a tool able to make all the major NPM modules available to Deno?
Although it is quite easy to port a module, maintaining two codebases is a chore. Hence Denoify, a build tool aimed at NPM package authors that take as input a TypeScript codebase that was meant to target node and/or the web and spits out a modified version of the source files ready to be deployed as a Deno module.
The built tools come hand in hand with a GitHub action CI setup that takes charge of publishing on both Deno and NPM.
During this talk, I will show what the tool is capable of today, what it could be capable of tomorrow, and the help it needs from the opensource community to get there.
#deno #npm #node #developer
1594603100
Wouldn’t it be great to have a tool able to make all the major NPM modules available to Deno?
Although it is quite easy to port a module, maintaining two codebases is a chore. Hence Denoify, a build tool aimed at NPM package authors that take as input a TypeScript codebase that was meant to target node and/or the web and spits out a modified version of the source files ready to be deployed as a Deno module.
The built tools come hand in hand with a GitHub action CI setup that takes charge of publishing on both Deno and NPM.
During this talk, I will show what the tool is capable of today, what it could be capable of tomorrow, and the help it needs from the opensource community to get there.
#deno #npm #node #developer
1591686307
A build tool that takes as input a TypeScript codebase that was meant to target node and/or the web and spits out a modified version of the source files ready to be deployed as a Deno module.
If you are just looking for a quick way to load NPM modules in your Deno project you can check out CommonJS module Loading, unlike Denoify, it won’t give you types definitions, it will involve node_modules/
and require --allow-read
but it will also be easier to get working.
This tool is mainly for NPM module maintainer, to enable them to bring first-class citizen Deno support to their module and doing so without introducing breaking changes.
Modules that have been made cross-runtime using Denoify:
Coming up next is a detailed guide on how to set up denoify with your project and how to publish on deno.land/x but before anything here are the current limitations you need to be aware of.
require()
is not yet supported.fs.readFile
files that are part of the module ( files inside a res/
directory for example ). (4)(1) Don’t be afraid, renaming your source with _.ts_
and dropping some _any_
here and there will do the trick. You will be able to pull it off even if you aren’t familiar with typescript. Ref
(2) You can consult here the current state of the Node’s builtin support.
(3) Glossary: To ‘denoify’ a module is the process of using this tool to generate a deno distribution of a module and to publish it on GitHub. How to do that is documented in details.
(4) In Deno the files that forms your module won’t be pre-fetched and placed in _node_module_
like in node so you won’t be able to access files that are not on the disk.
Check out this repo to see in practice how to set up Denoify in your project.
denoify_ci is a template repo that automates the boring and tedious tasks of:
package.json
Node
and Deno
versions before publishing.#deno #node #npm #developer #javascript
1598255400
Let’s learn more about NPM and how it works. All tutorials:
https://www.youtube.com/playlist?list=PLYxzS__5yYQmf-iF_9MTZmx7TxnmwnKIk
#npm #npm module #all tutorials:
1590488760
How many NPM modules have you used? 20? 50? We use third-party modules every day, but now it’s time to learn how to create our own.
In this mini-course, you’ll go through all the steps necessary to write, test, and publish your own NPM module. By the end, you’ll have a package that you or anyone else can install and use.
Let’s get started!
#npm #npm module
1590477840
How many NPM modules have you used? 20? 50? We use third-party modules every day, but now it’s time to learn how to create our own.
In this mini-course, you’ll go through all the steps necessary to write, test, and publish your own NPM module. By the end, you’ll have a package that you or anyone else can install and use.
Let’s get started!
#npm #npm module