UNPKG

994 BMarkdownView Raw
1# Contributing
2
3## Creating your changes
4
51. Fork, then clone the repo:
6
7 `git clone git@github.com:your-username/barrelsby.git`
8
92. Install dependencies:
10
11 `npm install`
12
133. Make your changes.
14
154. Make sure the tests pass:
16
17 `npm test`
18
195. Push to your fork and [submit a pull request][pullrequest].
20
21[pullrequest]: https://github.com/bencoveney/barrelsby/compare/
22
23If you are developing on windows you may need to convert line endings to unix-style. You can do
24this in git bash by running `find . -type f -exec dos2unix {} \;`.
25
26## Requirements
27
28If you are interested in contributing to barrelsby there are plenty of tagged issues that can be
29picked up, or feel free to suggest your own feature in an issue.
30
31Most coding conventions are enforced by TSLint but in general:
32- Use small functions instead of classes.
33- Avoid abreviated identifiers.
34- Write a unit test (`fileName.test.ts`) for code changes.
35- Write an integration test (`test/feature/`) for option changes.