First, thank you for considering contributing to Ts.ED! It's people like you that make the open source community such a great community! 😊
We welcome any type of contribution, not only code. You can help with
Working on your first Pull Request? You can learn how from this free series, How to Contribute to an Open Source Project on GitHub.
Any code change should be submitted as a pull request. The description should explain what the code does and give steps to execute it. The pull request should also contain tests. Code review process
The bigger the pull request, the longer it will take to review and merge. Try to break down large pull requests in smaller chunks that are easier to review and merge. It is also always helpful to have some context for your pull request. What was the purpose? Why does it matter to you?
We also welcome financial contributions in full transparency on our open collective. Anyone can file an expense. If the expense makes sense for the development of the community, it will be "merged" in the ledger of our open collective by the core contributors and the person who filed the expense will be reimbursed.
If you have any questions, create an issue (protip: do a quick search first to see if someone else didn't ask the same question before!). You can also reach us at email@example.com.
Clone your fork of the repository
$ git clone https://github.com/YOUR_USERNAME/ts-express-decorators.git
Install npm dependencies with yarn (not with NPM!):
After installing dependencies, yarn/npm run the
postinstallhook and mounted all packages with
yarn run repo:bootstrap).
tsc # or yarn tsc # or npm run tsc
yarn test # or npm run test
Gflow is a command line tool to help developer with the Git process used in Ts.ED.
Gflow help you to create a branch from production, rebase and run the test before pushing your branch on your remote repository.
npm install -g gflow
git fetch git branch --no-track -b feat-branch-name origin/production # !IMPORTANT yarn ## OR gflow new feat name_of_feat
This command rebase your branch feature from the production branch, run the test and push your branch.
git commit -m "feat(domain): Your message"
To write your commit message see convention page
npm run test git fetch git rebase origin/production git push -f # OR using gflow (run fetch, rebase and push for you) gflow push
When your feature is ready to review, you can open a PR on Ts.ED github.
After the PR has been accepted, the feature will be automatically merge on the master branch, but your feature isn't merge with the production branch.
To publish your feature on the production branch you need to run a this command:
Note: This action works only on the Ts.ED repository (not on your fork).
Ts.ED use docsify to convert markdown to HTML. In addition, all documentation in your code will be used to generate the Api documentation. To preview your comments on a class you can run this command:
npm run doc:serve