Thanks for your interest in contributing!
This is a guideline for contributing to Ammolite.
Please install the following dependencies:
| Dependencies | Description |
|---|---|
| Node.js | JavaScript runtime |
| pnpm | Package manager for Node.js |
| just | Command runner |
| ls-lint | Linting tool for directories and files |
| typos-cli | Spell checker |
The following commands are available:
This command will install Node.js dependencies.
just iThis command will do linting, formatting and testing.
justThis command will lint the code.
just lintThis command will format the code.
just fmtThis command will build the code.
just buildThis command will run all tests.
just testThe following commands will run different benchmarks.
# Run variables benchmarks
just bench-var
# Run keyframes benchmarks
just bench-kf
# Run style benchmarks
just bench-style
# Run merge benchmarks
just bench-merge
# Run all benchmarks
just benchThis command will clean the unnecessary files.
just cleanThis command will clean all unnecessary files including the node_modules directory.
just clean-allWhen committing changes to the code, use the following prefixes:
chore: updates in dependencies/toolsbuild: changes to the build systemfix: fixes a bugfeat: adds a new featurerefactor: other code changesperf: performance improvementssecurity: security related changesstyle: style changestest: adding or updating testsdocs: documentation only changesci: CI configuration updatesrelease: new version release
For example:
feat: add xxx feature
docs: fix typos