2014-07-11 09:54:53 +04:00
# Contributing
## Important notes
2016-03-14 15:55:44 +03:00
2017-08-09 15:22:38 +03:00
Please don't edit files in the `dist` subdirectory as they are generated via `npm run dist` . You'll find source code in the `src` subdirectory!
2014-07-11 09:54:53 +04:00
### Code style
2016-03-14 15:55:44 +03:00
2016-03-07 22:26:40 +03:00
The project's coding style is laid out in the ESLint configuration.
2014-07-11 09:54:53 +04:00
## Modifying the code
2016-03-14 15:55:44 +03:00
First, ensure that you have the latest [Node.js ](https://nodejs.org/en/ ) and [npm ](https://www.npmjs.com/ ) installed.
2014-07-11 09:54:53 +04:00
1. Fork and clone the repo.
2017-08-09 15:22:38 +03:00
2. Run `npm install` to install all build dependencies.
3. Run `npm test` to build and test things.
2014-07-11 09:54:53 +04:00
2017-08-09 15:22:38 +03:00
Assuming that you don't see any red, you're ready to go. Just be sure to run `npm test` after making any changes, to ensure that nothing is broken.
2014-07-11 09:54:53 +04:00
## Submitting pull requests
1. Create a new branch, please don't work in your `master` branch directly.
2017-08-09 15:22:38 +03:00
2. Add failing tests for the change you want to make. [See the test suite's README for instructions on how to do this. ](https://github.com/twbs/bootlint/blob/master/test/README.md ) Run `npm test` to see the tests fail.
2014-07-11 09:54:53 +04:00
3. Fix stuff.
2017-08-09 15:22:38 +03:00
4. Run `npm test` to see if the tests pass. Repeat steps 2-4 until done.
2014-07-26 00:13:03 +04:00
5. Update the documentation to reflect any changes.
2016-03-14 12:02:22 +03:00
6. Push to your fork and submit a pull request.
2014-07-11 09:54:53 +04:00
### Licensing
2016-03-14 15:55:44 +03:00
2014-09-24 02:24:19 +04:00
By contributing your code, you agree to license your contribution under [the MIT License ](https://github.com/twbs/bootlint/blob/master/LICENSE ).