Thanks for your interest in contributing! Please read carefully through our guidelines below to ensure that your contribution adheres to our project's standards.
We use GitHub Issues to track all tasks related to this project.
In order to contribute to cloudcss, you must first get a copy of the project running locally on your computer.
There are five steps to building this project:
- Set up Git and Install Node.js
- Fork the repository
- Clone your fork
- Install dependencies
- Build the project
All GitHub projects are backed by a version control software called Git. You'll need to set up Git in order to contribute to any project on GitHub.
This specific project is written in TypeScript and uses Node.js as it's runtime. You'll need to install Node.js in order to run the project.
Fork the repository
A fork is a copy of a repository. Forking a repository lets you to make changes to your copy without affecting any of the original code.
Click Fork (in the top-right corner of the page) to copy this repository to your GitHub account.
Use git to clone your fork to your computer.
git clone https://github.com/${username}/cloudcss.gitThis project uses pnpm, a command-line tool bundled with Node.js, to maintain third-party dependencies.
First, navigate into the project's directory
cd cloudcssNext, use pnpm to install the project' dependencies
pnpm installDevelopment Version
pnpm buildProduction Version
pnpm build:prodAfter you successfully build the project, you can make some changes of your own.
There are five steps to submit pull request:
git branch fix-issue-123
git checkout fix-issue-123Make sure your code is following TypeScript Style Guide.
Lint your code:
pnpm lintYou should add a new test file for your changes into test folder, the file should has extension .test.ts.
Run tests:
pnpm testGenerate coverage report:
pnpm coverageTo test the changes you made, you can use the playground
project.
-
In the cloudcss root project directory, run:
pnpm install
-
In the first terminal, run
pnpm devin the cloudcss project directory, and in the second one open the playground directory and runpnpm dev.This would set up a watcher that would rebuild the
cloud.cssfile in theplaygrounddirectory every time you make a change in the cloudcss source code. You would need something like Live Server to see your changes in the browser.
Open two editors, one with the cloudcss repo, one with your actual project.
git add .
git commit -m "fix issue 123"
git push origin fix-issue-123- Find the New Pull Request button
- Select the option to compare across forks
- Select your fork(${username}/cloudcss) in the
head repositoryoption - Select your branch in the
compareoption - Click Create Pull Request
By contributing, you agree that your contributions will be licensed under its MIT license.