| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [View Raw Code] [Original HTTPS Page] |
👍 First of all, thank you for taking the time to contribute! 👍
Here are some guides on how to do that:
Help us keep a healthy and open community. We expect all participants in this project to adhere to the NativeScript Code Of Conduct.
Before you begin:
Following these steps is the best way to get you code included in the project:
git clone https://github.com/<your-git-username>/nativescript-angular.git
# Navigate to the newly cloned directory
cd nativescript-angular
# Add an "upstream" remote pointing to the original repo.
git remote add upstream https://github.com/NativeScript/nativescript-angular.gitRead our development workflow guide for local setup:
Create a branch for your PR
git checkout -b <my-fix-branch> masterThe fun part! Make your code changes. Make sure you:
Before you submit your PR:
Push your fork. If you have rebased you might have to use force-push your branch:
git push origin <my-fix-branch> --force
It's our turn from there on! We will review the PR and discuss changes you might have to make before merging it! Thanks!
If you want to contribute, but you are not sure where to start - look for issues labeled help wanted.
Instructions how to release a new version for NativeScript Core Team Members.
cd nativescript-angular/nativescript-angular && git checkout release && git pull
git merge --ff-only origin/master
*** Note: If there are commits in release branch which are not merged in master branch '-ff-merge' command will fail. In this case the commits should be merge firstly from release in master branch as explained in section 'Merge changes from release into master' and then repeat step 1.
cd nativescript-angular && npm i cd nativescript-angular-package && npm i
npm --no-git-tag-version version [patch|minor|major] -m "release: cut the %s release"
or
npm --no-git-tag-version version [version] --allow-same-version -m "release: cut the %s release"
NOTE: Check the changelog!!!
git checkout -b release-[version]
git add changed-files git commit -m "release: cut the %s release" git push
NOTE: Make sure the PR is based on release branch
Merge PR into release branch.
The merge will produce package with rc tag in npm. If all checks have passed, publish official package. Usually the night builds will be triggered and the package will be ready to be released on the next day.
Don't forget to tag the release branch
git tag [version] git push --tags
Only if needed to Tips to remove tags:
git push --delete origin [version] git tag -d [version]
git checkout release && git pull
git checkout -b merge-release-in-master-[branch]/[sha] git push --set-upstream origin merge-release-in-master-branch-[branch]/[sha] git merge origin/master
Resolve conflicts. Choose to keep the version of master branch. If it is needed to revert versions of modules, see at the bottom.
Add conflicts:
git add resolved files
git commit git push
curl -d '{"title": "chore: merge release in master","body": "chore: merge release in master","head": "merge-release-in-master","base": "master"}' -X POST https://api.github.com/repos/NativeScript/NativeScript/pulls -H "Authorization: token ${GIT_TOKEN}"
If needed, to revert file and take it from master:
git checkout origin/master nativescript-angular/[some-file] git commit --amend git push --force-with-lease
This could require to repeat steps from 1 to 4, since we need to keep the branches with the same history
| Back | FazBrowse Home | New Git URL |