-
Fork, then clone the repo:
`git clone [email protected]:your-username/barrelsby.git`
-
Install dependencies:
`npm install`
-
Make your changes.
-
Make sure the tests pass:
`npm test`
-
Push to your fork and submit a pull request.
If you are developing on windows you may need to convert line endings to unix-style. You can do
this in git bash by running find . -type f -exec dos2unix {} \;
.
If you are interested in contributing to barrelsby there are plenty of tagged issues that can be picked up, or feel free to suggest your own feature in an issue.
Most coding conventions are enforced by TSLint but in general:
- Use small functions instead of classes.
- Avoid abreviated identifiers.
- Write a unit test (
fileName.test.ts
) for code changes. - Write an integration test (
test/feature/
) for option changes.