Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/deno support #142

Closed
wants to merge 4 commits into from

Conversation

FaberVitale
Copy link

@FaberVitale FaberVitale commented May 31, 2020

Description

Integrates on pre-commit a tool called denoify
that emits a build that deno runtime understands.

Deno users can then import the library from `<github_url>/tree/<branch_or_tag_name>/mod.ts.

In case this PR is merged, this project it should be added to 3rd party module list.

CI

I couldn't integrate deno:test to ci due to the lack of a configuration file.

More info:

Related issues:

Checklist

  • I have read CONTRIBUTING.md
  • [ x] I have linked all related issues above
  • [ x] I have rebased my branch

For new features:

  • [ x] I have added entry in TOC and API Docs
  • [x ] I have added a short example in API Docs to demonstrate new usage
  • I have added type unit tests with dts-jest

Description:

It is not currently possible import or run in deno
/src/index.ts or src/utility-types.ts because of the module resolution.

This commit via a tool called denoify emits the content of './src' in './deno_dist'
and add './mod.ts' file.

Users can then import the library from '<github_url>/tree/<branch_or_tag_name>/mod.ts'.

More info:

* https://github.com/garronej/denoify/blob/master/README.md
@piotrwitek
Copy link
Owner

Hey @FaberVitale 

So far looks good, I just need some more time to read a bit about Deno.

@FaberVitale
Copy link
Author

Obsolete solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

docs: how to use utility-types in deno
2 participants