-
Notifications
You must be signed in to change notification settings - Fork 0
How to contribute
HOME / How to develop / Contributing
Webino™ uses Git for maintaining the code base and Github to share repositories. It's required that you read following rules before your contribution.
It's required to have installed the Webino Development Kit, globally.
To install development toolkit, run sudo npm install webino-devkit -g
Read more on webino devkit installation
- Fork one of the Webino repositories
- On your machine, go to Webino workspace directory
- Clone your fork of the Webino repository here
Create a hotfix when you want to patch something in the master branch.
- Go to cloned repository directory
- Checkout master branch
git checkout master
- Create new branch for your changes
git checkout -b hotfix/<hotfix-name>
NOTE: Replace "<hotfix-name>" with a short meaningful expression. - Do your commits
- Publish your hotfix
git push origin hotfix/<hotfix-name>
- Create a pull request to the upstream Webino repository
Create a fix when you want to patch something in the develop branch.
- Go to cloned repository directory
- Checkout develop branch
git checkout develop
- Create new branch for your changes
git checkout -b fix/<hotfix-name>
NOTE: Replace "<fix-name>" with a short meaningful expression. - Do your commits
- Publish your fix
git push origin fix/<fix-name>
- Create a pull request to the upstream Webino repository
Create a fix when you want to add new feature.
- Go to cloned repository directory
- Checkout develop branch
git checkout develop
- Create new branch for your changes
git checkout -b feature/<feature-name>
NOTE: Replace "<feature-name>" with a short meaningful expression. - Do your commits
- Publish your feature
git push origin feature/<feature-name>
- Create a pull request to the upstream Webino repository
After you create a fork and meanwhile the Webino repository changed, you have to update your fork.
- Add the remote, call it "upstream":
git remote add upstream https://github.com/<vendor>/<repo>.git
NOTE: Replace "<vendor>" with webino and "<repo>" with required Webino repository name.
- Fetch all the branches of that remote into remote-tracking branches:
git fetch upstream
- Make sure that you're on required branch, depends on a type of commit you want to do:
git checkout <branch>
NOTE: Replace "<branch>" with develop for fix / feature or master for hotfix. - Merge your local branch with the upstream branch:
git merge upstream/<branch>
Sometimes happens that you start writing code before creating a branch. There is a quick-fix for that kind of situation:
- Add your changes to the stash
git stash
- Create new branch
git checkout -b <branch>
NOTE: Replace "<branch>" with required branch name, depends on type of commit. - Apply your changes to a new branch
git stash apply
- You can continue working on your code or commit a change
There is the Webino Development Kit for a development automation.
If something is wrong with this wiki, please let us know.
Webino™ is a webapp's platform. © 2014 by Webino, s. r. o. All rights reserved.