mirror of
https://github.com/axios/axios.git
synced 2026-04-11 02:11:50 +08:00
1.2 KiB
1.2 KiB
Contributing
Code Style
Please follow the node style guide.
Commit Messages
Commit messages should be verb based.
Fixing ...Adding ...Updating ...Removing ...
Testing
Please update the tests to reflect your code changes. Pull requests will not be accepted if they are failing on Travis CI.
Documentation
Please update the docs accordingly so that there are no discrepencies between the API and the documentation.
Developing
grunt testrun the jasmine and nodeunit testsgrunt buildrun webpack and bundle the sourcegrunt publishprepare the code for releasegrunt watch:testwatch for changes and runtestgrunt watch:buildwatch for changes and runbuild
Please don't include changes to dist/ in your pull request. This should only be updated when releasing a new version.
Running Examples
Examples are included in part to allow manual testing.
Running example
$ npm install -g http-server
$ http-server
# Open 127.0.0.1:8080/example
Running sandbox in browser
$ npm start
# Open 127.0.0.1:3000
Running sandbox in terminal
$ npm start
$ node ./sandbox/client