Search the existing issues before logging a new one.
Some search tips:
- Don't restrict your search to only open issues. An issue with a title similar to yours may have been closed as a duplicate of one with a less-findable title.
- Check for synonyms. For example, if your bug involves an interface, it likely also occurs with type aliases or classes.
- Search for the title of the issue you're about to log. This sounds obvious but 80% of the time this is sufficient to find a duplicate when one exists.
When logging a bug, please be sure to include the following:
- What version you're using (run
codecoach --version
) - Sample of your lint output file to be processed
- The behavior you expect to see, and the actual behavior
Be sure to search first.
In general, things we find useful when reviewing suggestions are:
- A description of the problem you're trying to solve
- An overview of the suggested solution
All work on CodeCoach happens directly on GitHub. Both members and external contributors send pull requests which go through the same review process.
- Fork this repo and create a new branch from
main
- Clone your fork down to your machine
- Make sure you have a compatible version of node installed (v14.x is recommended)
$ node -v
- Make sure you have Yarn installed (CodeCoach uses Yarn for dependencies lock file)
$ yarn -v
- Install dependencies
$ yarn
- Build CodeCoach once to check TypeScript transpilation.
$ yarn build
-
To run your local build.
$ yarn dev
-
To debug your local code. Set break points, attach your IDE to node process at
localhost:5858
and runyarn dev
Or use any of these preconfigured IDE settings.- WebStorm
Run theDebug Dev
run config. This will start CodeCoach dev and debugger together. - VSCode
Rundev:debug
config to start debugger. And runyarn dev
in terminal to start CodeCoach dev.
(feel free to update
dev
script inpackage.json
to test/debug your own settings.) - WebStorm
-
If add or update any dependency. Please use
yarn
$ yarn add <package>
-
If add any new linter/build output support.
- Please add lint output sample in
./sample
(can add more than 1 for different scenarios) - Please update
README.md
in these sections.- Supported linters
--buildLogFile
config type name- How to get lint output for CodeCoach
- Please add lint output sample in
-
Make sure to comply project's code style.
$ yarn lint
-
Make sure to add tests for your new code and not breaking existing test.
$ yarn test
-
Send pull request! :)
For repo owners
Steps to release new version
-
- Tag version - Make sure to comply SemVer standard.
- Release title - Could be anything (Release vX.Y.Z) is recommended
- Release description - List down changes since last version.
-
Package publishing will be triggered automatically, check the status in Workflow
(this CONTRIBUTING file refers to TypeScript CONTRIBUTING, Jest CONTRIBUTING)