We love your input! We want to make contributing to this project as easy and transparent as possible, whether it's:
- Reporting a bug
- Discussing the current state of the code
- Submitting a fix
- Proposing new features
- Becoming a maintainer
We use GitHub to host code, to track issues and feature requests, as well as accept pull requests.
We use GitHub Flow, so all code changes happen through pull requests
Pull requests are the best way to propose changes to the codebase. We actively welcome your pull requests:
- Fork the repo and create your branch from
main
. - If you've added code that should be tested, add tests.
- If you've changed APIs, update the documentation.
- Ensure the test suite passes.
- Make sure your code lints.
- Issue that pull request!
In short, when you submit code changes, your submissions are understood to be under the same MIT License that covers the project.
Report bugs using GitHub's issues
We use GitHub issues to track public bugs. Report a bug by opening a new issue; it's that easy!
Great Bug Reports tend to have:
- A quick summary and/or background
- Steps to reproduce
- Be specific!
- Give sample code if you can.
- What you expected would happen
- What actually happens
- Notes (possibly including why you think this might be happening, or stuff you tried that didn't work)
People love thorough bug reports.
- 2 spaces for indentation rather than tabs
- You can try running
pnpm lint
for style unification
In this section, you'll find the basic commands you need to run for building, testing, and maintaining the quality of the codebase.
To compile the project and generate the necessary artifacts, use the build command:
pnpm build
You can build the project in watch mode by using the following command for faster feedback:
pnpm build:watch
To ensure your contributions do not break any existing functionality, run the test suite with the following command:
pnpm test
You can run the tests in watch mode by running the following command for faster feedback:
pnpm dev
It's important to maintain the coding standards of the project. Lint your code by executing:
pnpm lint
If you want to quickly test your changes to the CLI, you can do the following:
Run the build in watch mode in one terminal:
pnpm build:watch
In another terminal, move to the directory where you want to test the create-solana-dapp
CLI and run by invoking the
node
command with the path to the compiled CLI:
cd /tmp
node ~/path/to/create-solana-dapp/dist/bin/index.cjs --help
We follow the Conventional Commits specification for commit:
fix
: a commit of the type fix patches a bug in your codebase (this correlates with PATCH in semantic versioning).feat
: a commit of the type feat introduces a new feature to the codebase (this correlates with MINOR in semantic versioning).BREAKING CHANGE
: a commit that has the text BREAKING CHANGE: at the beginning of its optional body or footer section introduces a breaking API change (correlating with MAJOR in semantic versioning). A BREAKING CHANGE can be part of commits of any type.- Others: commit types other than fix: and feat: are allowed, for example @commitlint/config-conventional (based on the Angular convention) recommends build:, chore:, ci:, docs:, style:, refactor:, perf:, test:, and others.
By contributing, you agree that your contributions will be licensed under its MIT License.
This document was adapted from the open-source contribution guidelines for Facebook's Draft