|
4 | 4 |
|
5 | 5 | - [Prerequisites](#prerequisites) |
6 | 6 | - [Develop locally](#develop-locally) |
7 | | -- [Run locally](#run-locally) |
8 | | - - [Install dependencies](#install-dependencies) |
9 | | - - [Transpile TypeScript](#transpile-typescript) |
10 | | - - [Run any of the demo apps](#run-any-of-the-demo-apps) |
11 | 7 | - [Run UI Tests](#run-ui-tests) |
12 | 8 |
|
13 | 9 | <!-- /TOC --> |
14 | 10 |
|
15 | 11 |
|
16 | 12 | ## Prerequisites |
17 | 13 |
|
18 | | -* Install your native toolchain and NativeScript as [described in the docs](https://docs.nativescript.org/plugins/plugins) |
| 14 | +* Install your native toolchain and NativeScript as [described in the docs](https://docs.nativescript.org/start/quick-setup) |
19 | 15 |
|
20 | 16 | * Review [NativeScript plugins documentation](https://docs.nativescript.org/plugins/plugins) for more details on plugins development |
21 | 17 |
|
|
24 | 20 |
|
25 | 21 | For local development we recommend using the npm commands provided in the plugin's package.json |
26 | 22 |
|
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: |
| 23 | +Basically executing a bunch of commands will be enough for you to start making changes to the plugin and see them live synced in the demo. It's up to you to decide which demo to use for development - TypeScript or TypeScript + Angular. |
28 | 24 |
|
| 25 | + |
| 26 | +To run and develop using TypeScript demo: |
29 | 27 | ```bash |
30 | 28 | $ cd nativescript-imagepicker/src |
31 | 29 | $ npm run demo.ios |
32 | 30 | $ npm run demo.android |
33 | 31 | ``` |
34 | 32 |
|
| 33 | +To run and develop using TypeScript + Angular demo: |
| 34 | +```bash |
| 35 | +$ cd nativescript-imagepicker/src |
| 36 | +$ npm run demo.ng.ios |
| 37 | +$ npm run demo.ng.android |
| 38 | +``` |
| 39 | + |
35 | 40 | After all the changes are done make sure to |
36 | 41 | - test them in all the demo apps |
37 | 42 | - run the UI tests. |
38 | 43 |
|
39 | 44 | 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 | 45 |
|
41 | | -## Run locally |
42 | | - |
43 | | -### Install dependencies |
44 | | - |
45 | | -``` |
46 | | -$ cd nativescript-imagepicker/src |
47 | | -$ npm install |
48 | | -``` |
49 | | - |
50 | | -### Transpile TypeScript |
51 | | -``` |
52 | | -$ cd nativescript-imagepicker/src |
53 | | -$ npm run tsc |
54 | | -``` |
55 | | - |
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: |
59 | | -``` |
60 | | -$ cd nativescript-imagepicker/<demo-folder> |
61 | | -$ tns run ios |
62 | | -$ tns run android |
63 | | -``` |
64 | 46 |
|
65 | 47 | ## Run UI Tests |
66 | 48 |
|
|
0 commit comments