| 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.git
# Navigate to the newly cloned directory
cd NativeScript
# Add an "upstream" remote pointing to the original {N} repo.
git remote add upstream https://github.com/NativeScript/NativeScript.git#In the repo root
npm install
npm run setupgit 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!
Please follow the git commit message format described below when committing your changes or submitting a PR. That allows us to use the commit messages to generate a change log for every new release.
Each commit message consists of a header, a body and a footer. The header has a special format that includes a type, a scope and a subject:
<type>(<scope>): <subject> <BLANK LINE> <body> <BLANK LINE> <footer>
The header is mandatory and the scope of the header is optional.
Any line of the commit message cannot be longer 100 characters! This allows the message to be easier to read on GitHub as well as in various git tools.
Footer should contain a closing reference to an issue if any.
Samples:
docs(README): add link to NativeScript roadmap
fix(ios-layouts): switch contentInsetAdjustmentBehavior on ScrollView Do not auto adjust the ScrollView insets, by disabling contentInsetAdjustmentBehavior property, when ScrollView is used as a root Page element.
release: cut the 3.2.0 release
If the commit reverts a previous commit, it should begin with revert: , followed by the header of the reverted commit. In the body it should say: This reverts commit <hash>., where the hash is the SHA of the commit being reverted.
Must be one of the following:
The scope should be the name of the affected component in the code. If the change affects only one of the target platforms (android, ios) that should be specified in the scope.
Sample scopes for the tns-core-modules package:
The subject contains succinct description of the change:
Just as in the subject, use the imperative, present tense: "change" not "changed" nor "changes". The body should include the motivation for the change and contrast this with previous behavior.
The footer should contain any information about Breaking Changes and is also the place to reference GitHub issues that this commit Closes.
Breaking Changes should start with the word BREAKING CHANGE: with a space or two newlines. Describe the changes and provide a migration guide for any code that may be affected. Sample:
feat: Angular 4.2 support
BREAKING CHANGES:
NativeScriptModule should be imported only in the root application
module (usually named AppModule).
ApplicationModule.
All other NgModules in the app (both feature and lazy-loaded ones)
should import the NativeScriptCommonModule instead.
The behaviour is alligned with BrowserModule and CommonModule in web
Angular apps. angular.io/guide/ngmodule-faq#q-browser-vs-common-module
Migration steps:
In all NgModules, instead of the root one, replace:
import { NativeScriptModule } from "nativescript-angular/nativescript.module";
…
@NgModule({
imports: [
NativeScriptModule,
]
…
})
with:
import { NativeScriptCommonModule } from "nativescript-angular/common";
…
@NgModule({
imports: [
NativeScriptCommonModule,
]
…
})
The above guidelines are based on the AngularJS Git Commit Message Conventions. A detailed explanation and additional examples can be found in this document.
If you want to contribute, but you are not sure where to start - look for issues labeled help wanted.
| Back | FazBrowse Home | New Git URL |