- Fork
Please fork this repository on GitHub first. Then you can clone the forked repository. - Clone source code and install dependencies
Please replace<your-username>
to your GitHub username.git clone [email protected]:<your-username>/vscode-markmind.git cd vscode-markmind npm i
- Create new branch and write codes
Create new branch bygit checkout -b <branch name>
. Make sure your branch name follows the guidelines below. Then, write your codes. - Test the code by yourself
PressF5
in VSCode to start debugging. Make sure your code runs as excepted. - Check there no errors in your code before commit
Check your code style and compile TypeScript by commandnpm run pretest
. Make sure there is no errors. - New pull request
Commit you code and create a new pull request. Code will be reviewed before merge.
Make sure you understand these guidelines before contributing.
- Languages
English is the preferred, but you can use Chinese too. - Communicating Platforms
We suggest all contribuctors discuss on GitHub Issuse. - Code reviewing
All pull requests are reviewed by repository owner before merge. Please do checklist below before PR:- All of your code follows code style guidelines below.
- All of your VCS settings follows version control guidelines below.
- There is no errors reported by TypeScript compiler.
- There is no warnings reported by ESLint.
- Report important changes
If you want to perform changes listed below, you are suggestted to create a new issue and obtain approval by repository owner.- Refactoring massive files.
- Adding new dependency.
- Adding or changing ESLint rules.
- Publishing
Publishing of this package to VSCode Marketplace is done by repository owner.
- As-is principle
Do minimum changes. Don't reformat code if they don't volite this guideline. If you have to refomat, use a seprated git commit. - Syntax
ES6 syntax is prefered. - Indent
- If the file is linted by ESLint, follow the ESLint rule.
- If not, use 4 spaces as indent.
- Naming convention
Target Case Example Filename Camel mainWebview.ts Class Pascal MainWebview Variable Camel contentHtml Function Camel openWindow() Command Camel mdmmp.showFile
- Branch
- Bug fixing branch: named with
bugfix/issue#<issue-id>
orbugfix/<bug-name>
. - Feature branch: named with
feature/<feature-name>
. - Other branch: just use
develop
.
- Bug fixing branch: named with
- Commit message
- Commit message should not contain non-ASCII characters.
- The first letter of commit message needn't be upper-case, and needn't a ending period.
- If a bug is fixed, commit message should contain
fix #id
. If not fixed but changed, don't contian. - If a feature is added and it is related to an issue, commit message should contain
add #id
.
- Changelog and versioning Remember write the Changelog and update version string.