You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: DevelopmentWorkflow.md
+37-24Lines changed: 37 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,45 +2,64 @@
2
2
3
3
<!-- TOC depthFrom:2 -->
4
4
5
-
-[Running locally](#running-locally)
6
-
-[Prerequisites](#prerequisites)
5
+
-[Prerequisites](#prerequisites)
6
+
-[Develop locally](#develop-locally)
7
+
-[Run locally](#run-locally)
7
8
-[Install dependencies](#install-dependencies)
8
-
-[Run the demo app](#run-the-demo-app)
9
-
-[Run the demo-angular app](#run-the-demo-angular-app)
9
+
-[Transpile TypeScript](#transpile-typescript)
10
+
-[Run any of the demo apps](#run-any-of-the-demo-apps)
10
11
-[Run UI Tests](#run-ui-tests)
11
-
-[Developer workflow](#developer-workflow)
12
12
13
13
<!-- /TOC -->
14
14
15
-
## Running locally
16
15
17
-
###Prerequisites
16
+
## Prerequisites
18
17
19
18
* Install your native toolchain and NativeScript as [described in the docs](https://docs.nativescript.org/plugins/plugins)
20
19
21
20
* Review [NativeScript plugins documentation](https://docs.nativescript.org/plugins/plugins) for more details on plugins development
22
21
23
22
23
+
## Develop locally
24
+
25
+
For local development we recommend using the npm commands provided in the plugin's package.json
26
+
27
+
Basically executing the commands below will be enough for you to start making changes to the plugin and see them live synced in the demo:
28
+
29
+
```bash
30
+
$ cd nativescript-imagepicker/src
31
+
$ npm run demo.ios
32
+
$ npm run demo.android
33
+
```
34
+
35
+
After all the changes are done make sure to
36
+
- test them in all the demo apps
37
+
- run the UI tests.
38
+
39
+
For details on plugins development workflow, read [NativeScript plugins documentation](https://docs.nativescript.org/plugins/building-plugins#step-2-set-up-a-development-workflow) covering that topic.
40
+
41
+
## Run locally
42
+
24
43
### Install dependencies
25
44
26
45
```
27
46
$ cd nativescript-imagepicker/src
28
47
$ npm install
29
48
```
30
49
31
-
### Run the demo app
32
-
From the `src` folder
50
+
### Transpile TypeScript
33
51
```
34
-
$ npm run demo.ios
35
-
$ npm run demo.android
52
+
$ cd nativescript-imagepicker/src
53
+
$ npm run tsc
36
54
```
37
55
38
-
### Run the demo-angular app
56
+
### Run any of the demo apps
57
+
58
+
The plugin has multiple demo apps added. To run any of them use the following commands:
39
59
```
40
-
$ cd nativescript-imagepicker/demo-angular
41
-
$ tns run ios
60
+
$ cd nativescript-imagepicker/<demo-folder>
61
+
$ tns run ios
42
62
$ tns run android
43
-
44
63
```
45
64
46
65
## Run UI Tests
@@ -54,9 +73,9 @@ $ tns run android
54
73
55
74
3. Build the app for Android or iOS
56
75
```bash
57
-
tns run android/ios
76
+
tns build android
77
+
tns build ios
58
78
```
59
-
60
79
4. Install [appium](http://appium.io/) globally.
61
80
``` bash
62
81
npm install -g appium
@@ -69,10 +88,4 @@ $ tns run android
69
88
npm run e2e -- --runType capabilityName
70
89
```
71
90
72
-
## Developer workflow
73
-
74
-
1. Make changes to the plugin or the demo
75
-
2. Run the UI tests or any of the demos as shown above.
76
-
Having any of the demos running, the changes made to the plugin will be automatically applied in the demo.
77
-
78
-
For details on plugins development workflow, read [NativeScript plugins documentation](https://docs.nativescript.org/plugins/building-plugins#step-2-set-up-a-development-workflow) covering that topic.
91
+
[Read more about UI testing](https://docs.nativescript.org/plugins/ui-tests).
0 commit comments