-
Notifications
You must be signed in to change notification settings - Fork 13
Initial implementation #8
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
Conversation
58e5d5f
to
b28bdb4
Compare
@@ -0,0 +1,2 @@ | |||
.vscode/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please make sure to add node_modules
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There will not be node_modules
because node
and npm
are not involved: instead of install dependencies, just deno test
or deno bundle
.
Please let me know if this is acceptable.
index.ts
Outdated
@@ -0,0 +1,449 @@ | |||
// ## Types |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please split this file up into logical chunks, following the other Octokit repositories format
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use #1 as a base for this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Modules are separated into files.
- Coverage is 100%.
- I believe Renovate / WIP / Octokit JS Board apps may be installed in PRs following this.
This strategy is intended to target browsers. The bundled JavaScript file can be simply made using deno bundle
. If you think an npm package is still necessary, I will try to add a script to publish to npm.
I'm afraid about the maintainability of this module, as it's setup is too different from the other modules. The @octokit team doesn't use Deno in our stack yet at all, it's something that might be worth revisiting once the work on https://github.com/octokit/octokit-next.js is complete, but there is a lot of work left on it. @baoshan Maybe, for now, you can release your own package as |
Thanks for the suggestions. I’ve published the Closing for now. |
This PR includes a rewrite of my previous draft implementation and an updated
README.md
.Below snippet demonstrates the basic usage.
Although targeting browsers, this module is written, tested, and bundled using Deno for its simplicity. The (bundled and gzipped) size is slightly less than 2kB.
I’m grateful if @gr2m or @wolfy1339 could give it a review. Thanks again for your help.