Skip to content
This repository was archived by the owner on Dec 19, 2021. It is now read-only.

Commit cbdb39c

Browse files
committed
init
0 parents  commit cbdb39c

File tree

129 files changed

+3640
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

129 files changed

+3640
-0
lines changed

.github/issue_template.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
### Make sure to check the demo app(s) for sample usage
2+
3+
### Make sure to check the existing issues in this repository
4+
5+
### If the demo apps cannot help and there is no issue for your problem, tell us about it
6+
Please, ensure your title is less than 63 characters long and starts with a capital
7+
letter.
8+
9+
### Which platform(s) does your issue occur on?
10+
- iOS/Android/Both
11+
- iOS/Android versions
12+
- emulator or device. What type of device?
13+
14+
### Please, provide the following version numbers that your issue occurs with:
15+
16+
- CLI: (run `tns --version` to fetch it)
17+
- Cross-platform modules: (check the 'version' attribute in the
18+
`node_modules/tns-core-modules/package.json` file in your project)
19+
- Runtime(s): (look for the `"tns-android"` and `"tns-ios"` properties in the `package.json` file of your project)
20+
- Plugin(s): (look for the version numbers in the `package.json` file of your
21+
project and paste your dependencies and devDependencies here)
22+
23+
### Please, tell us how to recreate the issue in as much detail as possible.
24+
Describe the steps to reproduce it.
25+
26+
### Is there any code involved?
27+
- provide a code example to recreate the problem
28+
- (EVEN BETTER) provide a .zip with application or refer to a repository with application where the problem is reproducible.

.github/pull_request_template.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<!--
2+
We, the rest of the NativeScript community, thank you for your
3+
contribution!
4+
To help the rest of the community review your change, please follow the instructions in the template.
5+
-->
6+
7+
<!-- PULL REQUEST TEMPLATE -->
8+
<!-- (Update "[ ]" to "[x]" to check a box) -->
9+
10+
## PR Checklist
11+
12+
- [ ] The PR title follows our guidelines: https://github.com/NativeScript/NativeScript/blob/master/CONTRIBUTING.md#commit-messages.
13+
- [ ] There is an issue for the bug/feature this PR is for. To avoid wasting your time, it's best to open a suggestion issue first and wait for approval before working on it.
14+
- [ ] All existing tests are passing
15+
- [ ] Tests for the changes are included
16+
17+
## What is the current behavior?
18+
<!-- Please describe the current behavior that you are modifying, or link to a relevant issue. -->
19+
20+
## What is the new behavior?
21+
<!-- Describe the changes. -->
22+
23+
Fixes/Implements/Closes #[Issue Number].
24+
25+
<!-- If this PR contains a breaking change, please describe the impact and migration path for existing applications below. -->
26+
27+
<!--
28+
BREAKING CHANGES:
29+
30+
31+
[Describe the impact of the changes here.]
32+
33+
Migration steps:
34+
[Provide a migration path for existing applications.]
35+
-->
36+

.gitignore

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
.vscode
2+
.idea
3+
.DS_Store
4+
*.esm.json
5+
*.js
6+
*.js.map
7+
*.log
8+
src/*.d.ts
9+
!src/index.d.ts
10+
!src/references.d.ts
11+
!src/scripts/*.js
12+
!seed-tests/*.js
13+
seed-tests/seed-copy/**/*.*
14+
seed-tests/seed-copy-new-git-repo/**/*.*
15+
!demo/karma.conf.js
16+
!demo/app/tests/*.js
17+
demo/*.d.ts
18+
!demo/references.d.ts
19+
demo/lib
20+
demo/platforms
21+
node_modules
22+
publish/src
23+
publish/package
24+
demo/report/report.html
25+
demo/report/stats.json
26+
!demo-vue/app/app.js
27+
package-lock.json
28+
29+
!demo/webpack.config.js

.prettierrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"singleQuote": true,
3+
"semi": true
4+
}

.travis.yml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
matrix:
2+
include:
3+
- stage: "Lint"
4+
language: node_js
5+
os: linux
6+
node_js: "8"
7+
script: cd src && npm run ci.tslint && cd ../demo && npm run ci.tslint
8+
- stage: "WebPack, Build and Test"
9+
os: osx
10+
env:
11+
- WebPack="iOS"
12+
osx_image: xcode10.0
13+
language: node_js
14+
node_js: "8"
15+
jdk: oraclejdk8
16+
script: cd demo && npm run build.plugin && npm i && tns build ios --bundle --env.uglify
17+
- language: android
18+
os: linux
19+
env:
20+
- WebPack="Android"
21+
jdk: oraclejdk8
22+
before_install: nvm install 8
23+
script: cd demo && npm run build.plugin && npm i && tns build android --bundle --env.uglify --env.snapshot
24+
- language: android
25+
env:
26+
- BuildAndroid="28"
27+
os: linux
28+
jdk: oraclejdk8
29+
before_install: nvm install stable
30+
script:
31+
- cd src && npm i && npm run tsc && cd ../demo && tns build android
32+
- os: osx
33+
env:
34+
- BuildiOS="12"
35+
- Xcode="10.0"
36+
osx_image: xcode10.0
37+
language: node_js
38+
node_js: "8"
39+
jdk: oraclejdk8
40+
script:
41+
- cd src && npm i && npm run tsc && cd ../demo && tns build ios
42+
- os: linux
43+
language: android
44+
dist: precise
45+
sudo: required
46+
jdk: oraclejdk8
47+
before_script:
48+
- echo no | android create avd --force -n test -t android-21 -b armeabi-v7a
49+
- emulator -avd test -no-audio -no-window &
50+
- android-wait-for-emulator
51+
before_install:
52+
- nvm install 8
53+
script: cd src && npm run test.android
54+
- os: osx
55+
language: node_js
56+
node_js: "8"
57+
jdk: oraclejdk8
58+
osx_image: xcode10.0
59+
script: cd src && npm run test.ios
60+
61+
android:
62+
components:
63+
- tools
64+
- platform-tools
65+
- build-tools-28.0.3
66+
- android-28
67+
- extra-android-m2repository
68+
- sys-img-armeabi-v7a-android-21
69+
70+
before_install:
71+
- sudo pip install --upgrade pip
72+
- sudo pip install six
73+
74+
install:
75+
- echo no | npm install -g nativescript
76+
- tns usage-reporting disable
77+
- tns error-reporting disable

CONTRIBUTING.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
## Run Demo
2+
3+
```
4+
git clone https://github.com/NathanWalker/nativescript-loading-indicator.git
5+
cd nativescript-loading-indicator
6+
npm run setup // you will see some TypeScript warnings, this is normal, you can ignore :)
7+
8+
npm run demo.ios
9+
10+
// or...
11+
12+
npm run demo.android
13+
```
14+
15+
## Development Workflow
16+
17+
- Make changes to plugin
18+
- Make changes in demo to test out those changes
19+
- Run `npm run demo.ios` or `npm run demo.android`
20+
21+
## Submitting Pull Requests
22+
23+
**Please follow these basic steps to simplify pull request reviews - if you don't you'll probably just be asked to anyway.**
24+
25+
- Please rebase your branch against the current master
26+
- Make reference to possible [issues](https://github.com/NathanWalker/nativescript-loading-indicator/issues) on PR comment
27+
28+
## Submitting bug reports
29+
30+
- Please detail the affected platform and version
31+
- Please be sure to state which version of node, npm, and NativeScript you're using

0 commit comments

Comments
 (0)