Skip to content

Latest commit

 

History

History
153 lines (98 loc) · 4.49 KB

CONTRIBUTING.md

File metadata and controls

153 lines (98 loc) · 4.49 KB

Contributing to Murrieta Design System

We’re thrilled to have you contribute to the Murrieta Design System! This guide will help you understand how to contribute, report issues, and collaborate effectively.

Table of Contents


Getting Started

  1. Fork the Repository

    Start by forking the repository to your GitHub account:

  2. Clone Your Fork
    Clone the repository to your local machine:

    git clone https://github.com/your-username/murrieta-design-system.git
    cd murrieta-design-system```
    
  3. Install Dependencies

    Use Bun to install all required dependencies:

    bun install
  4. Start the Development Server

    Run the Storybook server to preview components:

    bun run dev

Reporting Issues

If you encounter a bug or have a suggestion, let us know by creating an issue:

  1. Go to the Issues tab.
  2. Click New Issue.
  3. Provide a clear and descriptive title, along with relevant details, steps to reproduce (if applicable), and screenshots (if helpful).

Suggesting Features

We welcome feature suggestions! To propose a feature:

  1. Go to the Issues tab.
  2. Create a new issue using the Feature Request template.
  3. Describe the feature, its purpose, and how it could be implemented.

Contributing Code

  1. Create a Branch

    Create a new branch for your work:

    git checkout -b feature/your-feature-name
  2. Make Changes

  • Add your code to the appropriate package or app within the repository.
  • Follow the Code Style and Guidelines.

Design Collaboration

We use Figma to design and prototype components for the Murrieta Design System. Contributors are encouraged to review the Figma designs before proposing changes to components.

How to Access Figma Files

Proposing Design Changes

  1. Duplicate the main design file into your personal drafts in Figma.
  2. Make your proposed changes.
  3. Share a link to your updated file in a GitHub issue or pull request.

Keep Designs and Code Aligned

  • Always test your design changes in Figma against the live components in the codebase.
  • Notify maintainers if updates in Figma need to be reflected in the code.

Code Style and Guidelines

  • Frameworks and Tools: Murrieta uses React, Storybook, Turborepo, and Bun. Ensure compatibility and follow best practices for these tools.
  • Component Structure: Follow the atomic design principles used in the project.
  • Formatting: Use Prettier for consistent code formatting.
  • TypeScript: Write type-safe code whenever possible.

Testing Your Changes

Murrieta includes tests to ensure code quality and functionality. Run tests locally before submitting a pull request:

1.Run All Tests

bun test

2.Test Specific Packages

bun turbo run test --filter=components

3.Add New Tests

If you add a new feature or component, include corresponding tests.

Submitting a Pull Request

  1. Push Your Branch

    Push your changes to your forked repository:

    git push origin feature/your-feature-name
  2. Open a Pull Request

  • Go to the Murrieta repository.
  • Click New Pull Request.
  • Select your branch and describe your changes clearly.

3.Review Process

  • Your pull request will be reviewed by the maintainers.
  • Address any feedback or requested changes.

Thank you for contributing to the Murrieta Design System!

Your time and effort help make this project better for everyone. 🚀