1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-22 15:06:54 -05:00
denoland-deno/docs/contributing.md

82 lines
2.5 KiB
Markdown
Raw Normal View History

2020-05-06 18:21:13 -04:00
# Contributing
- Read the [style guide](./contributing/style_guide.md).
2020-05-08 17:51:41 -04:00
2020-08-04 07:46:07 -04:00
- Please don't make [the benchmarks](https://deno.land/benchmarks) worse.
2020-05-08 17:51:41 -04:00
2020-07-02 09:15:36 -04:00
- Ask for help in the [community chat room](https://discord.gg/deno).
2020-05-08 17:51:41 -04:00
2020-05-06 18:21:13 -04:00
- If you are going to work on an issue, mention so in the issue comments
_before_ you start working on the issue.
- If you are going to work on a new feature, create an issue and discuss with
other contributors _before_ you start working on the feature.
2020-06-06 13:38:09 -04:00
- Please be professional in the forums. We follow
[Rust's code of conduct](https://www.rust-lang.org/policies/code-of-conduct)
2020-08-14 13:49:22 -04:00
(CoC). Have a problem? Email ry@tinyclouds.org.
2020-05-08 17:51:41 -04:00
2020-05-06 18:21:13 -04:00
## Development
Instructions on how to build from source can be found
2020-05-09 09:05:23 -04:00
[here](./contributing/building_from_source.md).
2020-05-06 18:21:13 -04:00
## Submitting a Pull Request
Before submitting, please make sure the following is done:
1. Give the PR a descriptive title.
Examples of good PR title:
- fix(std/http): Fix race condition in server
- docs(console): Update docstrings
- feat(doc): Handle nested re-exports
Examples of bad PR title:
- fix #7123
- update docs
- fix bugs
2. Ensure there is a related issue and it is referenced in the PR text.
3. Ensure there are tests that cover the changes.
4. Ensure `cargo test` passes.
5. Ensure `./tools/format.js` passes without changing files.
6. Ensure `./tools/lint.js` passes.
2020-05-06 18:21:13 -04:00
## Adding Ops (aka bindings)
We are very concerned about making mistakes when adding new APIs. When adding an
Op to Deno, the counterpart interfaces on other platforms should be researched.
Please list how this functionality is done in Go, Node, Rust, and Python.
As an example, see how `Deno.rename()` was proposed and added in
[PR #671](https://github.com/denoland/deno/pull/671).
## Releases
Summary of the changes from previous releases can be found
[here](https://github.com/denoland/deno/releases).
2020-05-06 18:21:13 -04:00
## Documenting APIs
It is important to document public APIs and we want to do that inline with the
code. This helps ensure that code and documentation are tightly coupled
together.
### Utilize JSDoc
All publicly exposed APIs and types, both via the `deno` module as well as the
global/`window` namespace should have JSDoc documentation. This documentation is
parsed and available to the TypeScript compiler, and therefore easy to provide
further downstream. JSDoc blocks come just prior to the statement they apply to
and are denoted by a leading `/**` before terminating with a `*/`. For example:
```ts
/** A simple JSDoc comment */
export const FOO = "foo";
```
2020-05-15 10:21:00 -04:00
Find more at: https://jsdoc.app/