Thank you for your interest in contributing to Supawald! This document provides guidelines and steps for contributing to the project.
By participating in this project, you agree to abide by our Code of Conduct. Please report unacceptable behavior to the project maintainers.
- Check if the bug has already been reported in the issues section
- If not, create a new issue with:
- A clear description of the bug
- Steps to reproduce
- Expected behavior
- Actual behavior
- Screenshots (if applicable)
- Your environment details (OS, Node.js version, etc.)
- Check if the enhancement has already been suggested
- Create a new issue with:
- A clear description of the enhancement
- Why this enhancement would be useful
- Any specific implementation ideas you have
- Fork the repository
- Create a new branch for your feature/fix:
git checkout -b feature/your-feature-name # or git checkout -b fix/your-fix-name - Make your changes
- Write/update tests if applicable
- Update documentation if needed
- Commit your changes with clear commit messages
- Push to your fork
- Create a Pull Request
-
Clone your fork:
git clone https://github.com/your-username/supawald.git cd supawald -
Install dependencies:
npm install
-
Copy the environment file:
cp .env.example .env.local
-
Update
.env.localwith your Supabase credentials -
Start the development server:
npm run dev
- Follow the existing code style
- Use TypeScript for all new code
- Use meaningful variable and function names
- Add comments for complex logic
- Keep functions focused and small
- Use proper error handling
- Write tests for new features
- Ensure all tests pass before submitting PR
- Update tests when modifying existing features
- Update README.md if needed
- Add comments for complex code
- Update API documentation if applicable
Feel free to open an issue for any questions or concerns about contributing.
Thank you for contributing to Supawald!
To publish updates to the create-supawald package and tie it to the GitHub repo, follow these steps:
Make sure the root-level package.json includes this:
"repository": {
"type": "git",
"url": "https://github.com/StructuredLabs/supawald.git"
},
"bugs": {
"url": "https://github.com/StructuredLabs/supawald/issues"
},
"homepage": "https://github.com/StructuredLabs/supawald#readme"This links the npm package back to the official GitHub repo.
After bumping the version in package.json, tag and push the release:
git add .
git commit -m "v1.0.0 release"
git tag v1.0.0
git push origin main --tagsUse the same version number as in package.json.
If you're not already logged in:
npm loginThen publish the package:
npm publish --access publicThe CLI will then be available via:
npx create-supawald my-app