Skip to content

Latest commit

 

History

History
109 lines (73 loc) · 4.02 KB

CONTRIBUTING.md

File metadata and controls

109 lines (73 loc) · 4.02 KB

Contributing

First off, thank you for taking the time to contribute to Meema Labs ❤️

💭 Knowledge

TypeScript

It's important to note early on that this project is written with TypeScript. If you're unfamiliar with it or any strongly typed languages such as Java then this may be a slight roadblock. However, there's never a truly perfect time to start learning it, so ... why not today!

Vue 3.2 & Vite

This project uses Vue & [Vite][vite] to build Web Components.

Architecture

An understanding of the library architecture and design will help if you're looking to contribute long-term, or you are working on a big PR. Browse the source and read our documentation to get a better idea on how it is structured. Feel free to ask any question, we would love to elaborate.

🎒 Getting Started

Install

Please view the README and the instructions below on how to install the project locally.

Project Setup

Working on your first Pull Request? You can learn how from this free series How to Contribute to an Open Source Project on GitHub.

Head over to the repository on GitHub and click the Fork button in the top right corner. After the project has been forked, run the following commands in your terminal:

# Replace {github-username} with your GitHub username.
$: git clone https://github.com/{github-username}/meema-elements --depth=1

$: cd meema-elements

# Create a branch for your PR, replace {issue-no} with the GitHub issue number.
$: git checkout -b issue-{issue-no}

Now it'll help if we keep our main branch pointing at the original repository and make pull requests from the forked branch.

# Add the original repository as a "remote" called "upstream".
$: git remote add upstream git@github.com:meemalabs/meema-elements.git

# Fetch the git information from the remote.
$: git fetch upstream

# Set your local main branch to use the upstream main branch whenever you run `git pull`.
$: git branch --set-upstream-to=upstream/main main

# Run this when we want to update our version of main.
$: git pull

🧪 Test

Unit

Each of our Web Components comes with test cases. Feel free to check them out within the ./tests root folder. When adding or or updating functionality, please ensure it is covered through our tests and that the new tests pass by running yarn test.

Visual

This project uses Vitebook to render components and view them in the browser. Simply create a *.stories.ts file within the ./stories root folder and run yarn vitebook in your terminal. To learn more about writing stories follow the link to the vitebook site, and see other stories in the project.

✍️ Commit

This project uses semantic commit messages to automate package releases. Simply refer to the link, and also see existing commits to get an idea of how to write your message.

# Add all changes to staging to be committed.
$: git add .

# Commit changes.
$: git commit -m 'your commit message'

# Push changes up to GitHub.
$: git push

🎉 Pull Request

When you're all done head over to the repository, and click the big green Compare & Pull Request button that should appear after you've pushed changes to your fork.

Don't expect your PR to be accepted immediately or even accepted at all. Give the community time to vet it and see if it should be merged. Please don't be disheartened if it's not accepted. Your contribution is appreciated more than you can imagine, and even a failed PR can teach us a lot ❤️