mirror of
https://github.com/axios/axios.git
synced 2026-04-11 02:11:50 +08:00
51 lines
1.2 KiB
Markdown
51 lines
1.2 KiB
Markdown
# Contributing
|
|
|
|
We are open to, and grateful for, any contributions made by the community. By contributing to axios, you agree to abide by the [code of conduct](https://github.com/axios/axios/blob/master/CODE_OF_CONDUCT.md).
|
|
|
|
## Code Style
|
|
|
|
Please follow the [node style guide](https://github.com/felixge/node-style-guide).
|
|
|
|
## Commit Messages
|
|
|
|
Please follow [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/)
|
|
|
|
## Testing
|
|
|
|
Please update the tests to reflect your code changes. Pull requests will not be accepted if they are failing on GitHub actions.
|
|
|
|
## Documentation
|
|
|
|
Please update the [documentation](https://axios-http.com/docs/intro) accordingly so that there are no discrepancies between the API and the documentation.
|
|
|
|
## Developing
|
|
|
|
- `npm run test` runs the jasmine and mocha tests
|
|
- `npm run build` runs rollup and bundles the source
|
|
- `npm run version` prepares the code for release
|
|
|
|
## Running Examples
|
|
|
|
Examples are included in part to allow manual testing.
|
|
|
|
Running example
|
|
|
|
```bash
|
|
> npm run examples
|
|
# Open 127.0.0.1:3000
|
|
```
|
|
|
|
Running sandbox in browser
|
|
|
|
```bash
|
|
> npm start
|
|
# Open 127.0.0.1:3000
|
|
```
|
|
|
|
Running sandbox in terminal
|
|
|
|
```bash
|
|
> npm start
|
|
> node ./sandbox/client
|
|
```
|