mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 02:54:11 +08:00
docs: update widgets build script, readme, travis (#7099)
* docs: update widgets build script, readme, travis
This commit is contained in:
27
.travis.yml
27
.travis.yml
@ -1,9 +1,22 @@
|
||||
language: node_js
|
||||
node_js:
|
||||
- '6'
|
||||
env:
|
||||
global:
|
||||
- DATE=$(date +%Y-%m-%d)
|
||||
- PACKAGE_VERSION=$DATE-$TRAVIS_BUILD_NUMBER
|
||||
language: objective-c
|
||||
osx_image: xcode9.3
|
||||
install:
|
||||
- brew update
|
||||
- brew cask install android-sdk
|
||||
# Suppress output of sdkmanager to keep log under the 4MB limit of travis-ci
|
||||
- yes | sdkmanager "platforms;android-28" >/dev/null
|
||||
- yes | sdkmanager "build-tools;28.0.3" >/dev/null
|
||||
- yes | sdkmanager "extras;android;m2repository" >/dev/null
|
||||
before_script:
|
||||
- npm install -g grunt-cli
|
||||
- npm install
|
||||
- export ANDROID_HOME=/usr/local/share/android-sdk
|
||||
- npm install -g grunt-cli
|
||||
- npm install
|
||||
script:
|
||||
- grunt default
|
||||
- (cd tns-platform-declarations && npm pack)
|
||||
- npm run setup-widgets
|
||||
- npm run setup
|
||||
- npm run tsc
|
||||
- npm run tslint
|
@ -46,6 +46,7 @@
|
||||
"typescript": "^3.1.6"
|
||||
},
|
||||
"scripts": {
|
||||
"setup-widgets": "( cd tns-core-modules-widgets && sh build.sh ) && npm run dev-link-tns-core-modules-widgets",
|
||||
"setup": "npm run dev-link-tns-platform-declarations && npm run dev-link-tns-core-modules && npm run dev-link-tests && npm run dev-link-apps && npm run dev-link-e2e-modal",
|
||||
"tsc": "node --max_old_space_size=4096 ./node_modules/typescript/bin/tsc",
|
||||
"ci": "tsc && npm run tslint && npm run ci-apps && npm run ci-e2e && npm run ci-tests",
|
||||
@ -67,6 +68,7 @@
|
||||
"dev-tsc-all": "npm run dev-tsc-tns-platform-declarations && npm run tsc && npm run dev-tsc-tests && npm run dev-tsc-apps && && npm run dev-tsc-e2e",
|
||||
"dev-link-tns-platform-declarations": "cd tns-platform-declarations && npm link",
|
||||
"dev-link-tns-core-modules": "cd tns-core-modules && npm link",
|
||||
"dev-link-tns-core-modules-widgets": "(cd tns-core-modules-widgets/dist/package && npm link) && (cd tns-core-modules && npm link tns-core-modules-widgets)",
|
||||
"dev-link-tests": "cd tests && npm link tns-platform-declarations && npm link tns-core-modules",
|
||||
"dev-link-apps": "cd apps && npm link tns-platform-declarations && npm link tns-core-modules",
|
||||
"dev-link-e2e-modal": "cd e2e && cd modal-navigation && npm link tns-platform-declarations && npm link tns-core-modules",
|
||||
@ -77,7 +79,7 @@
|
||||
"test-ios": "tns run ios --path tests --justlaunch --no-watch",
|
||||
"test-watch-android": "npm run pretest && concurrently --kill-others \"npm run tsc-tiw\" \"tns livesync android --path tests --watch\"",
|
||||
"test-watch-ios": "npm run pretest && concurrently --kill-others \"npm run tsc-tiw\" \"tns livesync ios --path tests --watch\"",
|
||||
"prepublish": "echo \"Development reminder: npm run setup\n\"",
|
||||
"prepublish": "echo \"Development reminder for setup\n - tns-core-modules: npm run setup\n - tns-core-modules-widgets: npm run setup-widgets\n\"",
|
||||
"typedoc": "typedoc --tsconfig tsconfig.typedoc.json --out bin/dist/apiref --includeDeclarations --name NativeScript --theme ./node_modules/nativescript-typedoc-theme --excludeExternals --externalPattern \"**/+(tns-core-modules|module).d.ts\"",
|
||||
"dev-typedoc": "npm run typedoc && cd bin/dist/apiref && http-server",
|
||||
"test-tsc-es2016": "npm run tsc -- -p tsconfig.public.es2016.json",
|
||||
|
@ -1,83 +0,0 @@
|
||||
# NativeScript Community Code of Conduct
|
||||
|
||||
Our community members come from all walks of life and are all at different stages of their personal and professional journeys. To support everyone, we've prepared a short code of conduct. Our mission is best served in an environment that is friendly, safe, and accepting; free from intimidation or harassment.
|
||||
|
||||
Towards this end, certain behaviors and practices will not be tolerated.
|
||||
|
||||
## tl;dr
|
||||
|
||||
- Be respectful.
|
||||
- We're here to help.
|
||||
- Abusive behavior is never tolerated.
|
||||
- Violations of this code may result in swift and permanent expulsion from the NativeScript community channels.
|
||||
|
||||
## Administrators
|
||||
|
||||
- Dan Wilson (@DanWilson on Slack)
|
||||
- Jen Looper (@jen.looper on Slack)
|
||||
- TJ VanToll (@tjvantoll on Slack)
|
||||
|
||||
## Scope
|
||||
|
||||
We expect all members of the NativeScript community, including administrators, users, facilitators, and vendors to abide by this Code of Conduct at all times in our community venues, online and in person, and in one-on-one communications pertaining to NativeScript affairs.
|
||||
|
||||
This policy covers the usage of the NativeScript Slack community, as well as the NativeScript support forums, NativeScript GitHub repositories, the NativeScript website, and any NativeScript-related events. This Code of Conduct is in addition to, and does not in any way nullify or invalidate, any other terms or conditions related to use of NativeScript.
|
||||
|
||||
The definitions of various subjective terms such as "discriminatory", "hateful", or "confusing" will be decided at the sole discretion of the NativeScript administrators.
|
||||
|
||||
## Friendly, Harassment-Free Space
|
||||
|
||||
We are committed to providing a friendly, safe, and welcoming environment for all, regardless of gender identity, sexual orientation, disability, ethnicity, religion, age, physical appearance, body size, race, or similar personal characteristics.
|
||||
|
||||
We ask that you please respect that people have differences of opinion regarding technical choices, and acknowledge that every design or implementation choice carries a trade-off and numerous costs. There is seldom a single right answer. A difference of technology preferences is never a license to be rude.
|
||||
|
||||
Any spamming, trolling, flaming, baiting, or other attention-stealing behaviour is not welcome, and will not be tolerated.
|
||||
|
||||
Harassing other users of NativeScript is never tolerated, whether via public or private media.
|
||||
|
||||
Avoid using offensive or harassing package names, nicknames, or other identifiers that might detract from a friendly, safe, and welcoming environment for all.
|
||||
|
||||
Harassment includes, but is not limited to: harmful or prejudicial verbal or written comments related to gender identity, sexual orientation, disability, ethnicity, religion, age, physical appearance, body size, race, or similar personal characteristics; inappropriate use of nudity, sexual images, and/or sexually explicit language in public spaces; threats of physical or non-physical harm; deliberate intimidation, stalking or following; harassing photography or recording; sustained disruption of talks or other events; inappropriate physical contact; and unwelcome sexual attention.
|
||||
|
||||
## Acceptable Content
|
||||
|
||||
The NativeScript administrators reserve the right to make judgement calls about what is and isn't appropriate in published content. These are guidelines to help you be successful in our community.
|
||||
|
||||
Content must contain something applicable to the previously stated goals of the NativeScript community. "Spamming", that is, publishing any form of content that is not applicable, is not allowed.
|
||||
|
||||
Content must not contain illegal or infringing content. You should only publish content to NativeScript properties if you have the right to do so. This includes complying with all software license agreements or other intellectual property restrictions. For example, redistributing an MIT-licensed module with the copyright notice removed, would not be allowed. You will be responsible for any violation of laws or others’ intellectual property rights.
|
||||
|
||||
Content must not be malware. For example, content (code, video, pictures, words, etc.) which is designed to maliciously exploit or damage computer systems, is not allowed.
|
||||
|
||||
Content name, description, and other visible metadata must not include abusive, inappropriate, or harassing content.
|
||||
|
||||
## Reporting Violations of this Code of Conduct
|
||||
|
||||
If you believe someone is harassing you or has otherwise violated this Code of Conduct, please contact the administrators and send us an abuse report. If this is the initial report of a problem, please include as much detail as possible. It is easiest for us to address issues when we have more context.
|
||||
|
||||
## Consequences
|
||||
|
||||
All content published to the NativeScript community channels is hosted at the sole discretion of the NativeScript administrators.
|
||||
|
||||
Unacceptable behavior from any community member, including sponsors, employees, customers, or others with decision-making authority, will not be tolerated.
|
||||
|
||||
Anyone asked to stop unacceptable behavior is expected to comply immediately.
|
||||
|
||||
If a community member engages in unacceptable behavior, the NativeScript administrators may take any action they deem appropriate, up to and including a temporary ban or permanent expulsion from the community without warning (and without refund in the case of a paid event or service).
|
||||
|
||||
## Addressing Grievances
|
||||
|
||||
If you feel you have been falsely or unfairly accused of violating this Code of Conduct, you should notify the administrators. We will do our best to ensure that your grievance is handled appropriately.
|
||||
|
||||
In general, we will choose the course of action that we judge as being most in the interest of fostering a safe and friendly community.
|
||||
|
||||
## Contact Info
|
||||
Please contact Dan Wilson @DanWilson if you need to report a problem or address a grievance related to an abuse report.
|
||||
|
||||
You are also encouraged to contact us if you are curious about something that might be "on the line" between appropriate and inappropriate content. We are happy to provide guidance to help you be a successful part of our community.
|
||||
|
||||
## Credit and License
|
||||
|
||||
This Code of Conduct borrows heavily from the WADE Code of Conduct, which is derived from the NodeBots Code of Conduct, which in turn borrows from the npm Code of Conduct, which was derived from the Stumptown Syndicate Citizen's Code of Conduct, and the Rust Project Code of Conduct.
|
||||
|
||||
This document may be reused under a Creative Commons Attribution-ShareAlike License.
|
@ -1,78 +0,0 @@
|
||||
# Contributing to NativeScript Core Modules Widgets
|
||||
|
||||
:+1: First of all, thank you for taking the time to contribute! :+1:
|
||||
|
||||
Here are some guides on how to do that:
|
||||
|
||||
<!-- TOC depthFrom:2 -->
|
||||
|
||||
- [Code of Conduct](#code-of-conduct)
|
||||
- [Reporting Bugs](#reporting-bugs)
|
||||
- [Requesting Features](#requesting-features)
|
||||
- [Submitting a PR](#submitting-a-pr)
|
||||
- [Where to Start](#where-to-start)
|
||||
|
||||
<!-- /TOC -->
|
||||
|
||||
## Code of Conduct
|
||||
Help us keep a healthy and open community. We expect all participants in this project to adhere to the [NativeScript Code Of Conduct](https://github.com/NativeScript/codeofconduct).
|
||||
|
||||
|
||||
## Reporting Bugs
|
||||
|
||||
1. Always update to the most recent master release; the bug may already be resolved.
|
||||
2. Search for similar issues in the issues list for this repo; it may already be an identified problem.
|
||||
3. If this is a bug or problem that is clear, simple, and is unlikely to require any discussion -- it is OK to open an issue on GitHub with a reproduction of the bug including workflows and screenshots. If possible, submit a Pull Request with a failing test, entire application or module. If you'd rather take matters into your own hands, fix the bug yourself (jump down to the [Submitting a PR](#submitting-a-pr) section).
|
||||
|
||||
## Requesting Features
|
||||
|
||||
1. Use Github Issues to submit feature requests.
|
||||
2. First, search for a similar request and extend it if applicable. This way it would be easier for the community to track the features.
|
||||
3. When requesting a new feature, please provide as much detail as possible about why you need the feature in your apps. We prefer that you explain a need rather than explain a technical solution for it. That might trigger a nice conversation on finding the best and broadest technical solution to a specific need.
|
||||
|
||||
## Submitting a PR
|
||||
|
||||
Before you begin:
|
||||
* Read and sign the [NativeScript Contribution License Agreement](http://www.nativescript.org/cla).
|
||||
* Make sure there is an issue for the bug or feature you will be working on.
|
||||
|
||||
Following these steps is the best way to get you code included in the project:
|
||||
|
||||
1. Fork and clone the tns-core-modules-widgets repo:
|
||||
```bash
|
||||
git clone https://github.com/<your-git-username>/tns-core-modules-widgets.git
|
||||
# Navigate to the newly cloned directory
|
||||
cd tns-core-modules-widgets
|
||||
# Add an "upstream" remote pointing to the original repo.
|
||||
git remote add upstream https://github.com/NativeScript/tns-core-modules-widgets.git
|
||||
```
|
||||
|
||||
2. Read our [development workflow guide](DevelopmentWorkflow.md) for local setup:
|
||||
|
||||
3. Create a branch for your PR
|
||||
```bash
|
||||
git checkout -b <my-fix-branch> master
|
||||
```
|
||||
|
||||
4. The fun part! Make your code changes. Make sure you:
|
||||
- Follow the [code conventions guide](https://github.com/NativeScript/NativeScript/blob/master/CodingConvention.md).
|
||||
- Write unit tests for your fix or feature.
|
||||
|
||||
5. Before you submit your PR:
|
||||
- Rebase your changes to the latest master: `git pull --rebase upstream master`.
|
||||
- Ensure all unit test are green. Check [running unit tests](DevelopmentWorkflow.md#running-the-tests).
|
||||
- Ensure your changes pass tslint validation. (run `npm run tslint` in the root of the repo).
|
||||
|
||||
6. Push your fork. If you have rebased you might have to use force-push your branch:
|
||||
```
|
||||
git push origin <my-fix-branch> --force
|
||||
```
|
||||
|
||||
7. [Submit your pull request](https://github.com/NativeScript/tns-core-modules-widgets/compare). Please, fill in the Pull Request template - it will help us better understand the PR and increase the chances of it getting merged quickly.
|
||||
|
||||
It's our turn from there on! We will review the PR and discuss changes you might have to make before merging it! Thanks!
|
||||
|
||||
|
||||
## Where to Start
|
||||
|
||||
If you want to contribute, but you are not sure where to start - look for issues labeled [`help wanted`](https://github.com/NativeScript/tns-core-modules-widgets/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22).
|
@ -1,7 +1,7 @@
|
||||
# NativeScript Core Modules Widgets
|
||||
[](https://travis-ci.org/NativeScript/tns-core-modules-widgets)
|
||||
[](https://travis-ci.org/NativeScript/NativeScript)
|
||||
|
||||
This repository contains the source code of the `tns-core-modules-widgets` library. This library represents native code (Java and Objective-C) used by the NativeScript [`core modules`](https://github.com/NativeScript/NativeScript/tree/master/tns-core-modules).
|
||||
This library represents native code (Java and Objective-C) used by the NativeScript [`core modules`](https://github.com/NativeScript/NativeScript/tree/master/tns-core-modules-widgets).
|
||||
|
||||
[NativeScript](https://www.nativescript.org/) is a framework which enables developers to write truly native mobile applications for Android and iOS using JavaScript and CSS.
|
||||
|
||||
|
@ -7,18 +7,18 @@
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/NativeScript/android-widgets.git"
|
||||
"url": "https://github.com/NativeScript/NativeScript"
|
||||
},
|
||||
"author": "NativeScript team",
|
||||
"license": "Apache-2.0",
|
||||
"bugs": {
|
||||
"url": "https://github.com/NativeScript/android-widgets/issues"
|
||||
"url": "https://github.com/NativeScript/NativeScript/issues"
|
||||
},
|
||||
"homepage": "https://github.com/NativeScript/android-widgets#readme",
|
||||
"homepage": "https://github.com/NativeScript/NativeScript/blob/master/tns-core-modules-widgets#readme",
|
||||
"nativescript": {
|
||||
"platforms": {
|
||||
"ios": "4.0.0",
|
||||
"android": "4.0.0"
|
||||
"ios": "5.0.0",
|
||||
"android": "5.0.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -38,8 +38,8 @@
|
||||
},
|
||||
"nativescript": {
|
||||
"platforms": {
|
||||
"ios": "4.0.0",
|
||||
"android": "4.0.0"
|
||||
"ios": "5.0.0",
|
||||
"android": "5.0.0"
|
||||
}
|
||||
},
|
||||
"snapshot": {
|
||||
|
Reference in New Issue
Block a user