Hi! I'm really excited that you are interested in contributing to js-sdsl. Before submitting your contribution, please make sure to take a moment and read through the following guidelines:
- Code of Conduct
- Issue Reporting Guidelines
- Pull Request Guidelines
- Development Setup
- Project Structure
- Always use issue-template to create new issues.
-
The
main
branch is just a snapshot of the latest stable release. All development should be done in dedicated branches. Do not submit PRs against themain
branch. -
Checkout a topic branch from the relevant branch, e.g.
dev
, and merge back against that branch. -
Work in the
src
folder and DO NOT check indist
in the commits. -
It's OK to have multiple small commits as you work on the PR - GitHub will automatically squash it before merging.
-
Make sure it works fine in local environment. (see development setup)
-
If adding a new feature:
- Provide a convincing reason to add this feature. Ideally, you should open a suggestion issue first and have it approved before working on it.
-
If fixing bug:
- If you are resolving a special issue, add
(fix #xxxx[,#xxxx])
(#xxxx is the issue id) in your PR title for a better release log, e.g.update entities encoding/decoding (fix #3899)
. - Provide a detailed description of the bug in the PR. Live demo preferred.
- Add appropriate test coverage if applicable.
- If you are resolving a special issue, add
You will need Node.js version 16+ and yarn.
After cloning the repo, run:
$ yarn setup
Please follow the commit specification. See .commitlintrc.json
get help.
# run project in development mode
$ yarn dev
# build all dist files
$ yarn build
There are some other scripts available in the scripts
section of the package.json
file.
assets
: contains static files of the siteconfig
: contains configuration filessrc
: contains the source codetools
: contains the built-in config and plugin files
All our source files are written in typescript, please make sure your submissions have strict type deduction and follow eslint specifications.
Thank you to all the people who have already contributed to type-challenges
!