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
<!-- ⚠️ This README has been generated from the file(s) "blueprint.md" ⚠️-->
2
-
[](#demos-and-development)
3
-
4
-
## Demos and Development
5
-
6
-
7
-
### Repo Setup
8
-
9
-
The repo uses submodules. If you did not clone with ` --recursive` then you need to call
10
-
```
11
-
git submodule update --init
12
-
```
13
-
14
-
The package manager used to install and link dependencies must be `pnpm` or `yarn`. `npm` wont work.
15
-
16
-
To develop and test:
17
-
if you use `yarn` then run `yarn`
18
-
if you use `pnpm` then run `pnpm i`
19
-
20
-
**Interactive Menu:**
21
-
22
-
To start the interactive menu, run `npm start` (or `yarn start` or `pnpm start`). This will list all of the commonly used scripts.
23
-
24
-
### Build
25
-
26
-
```bash
27
-
npm run build.all
28
-
```
29
-
30
-
### Demos
31
-
32
-
```bash
33
-
npm run demo.[ng|react|svelte|vue].[ios|android]
34
-
35
-
npm run demo.svelte.ios # Example
36
-
```
37
-
38
-
39
-
[](#contributing)
40
-
41
-
## Contributing
42
-
43
-
### Update repo
44
-
45
-
You can update the repo files quite easily
46
-
47
-
First update the submodules
48
-
49
-
```bash
50
-
npm run update
51
-
```
52
-
53
-
Then commit the changes
54
-
Then update common files
55
-
56
-
```bash
57
-
npm run sync
58
-
```
59
-
Then you can run `yarn|pnpm`, commit changed files if any
60
-
61
-
### Update readme
62
-
```bash
63
-
npm run readme
64
-
```
65
-
66
-
### Update doc
67
-
```bash
68
-
npm run doc
69
-
```
70
-
71
-
### Publish
72
-
73
-
The publishing is completely handled by `lerna` (you can add `-- --bump major` to force a major release)
74
-
Simply run
75
-
```shell
76
-
npm run publish
77
-
```
78
-
<br><br><!-- ⚠️ This README has been generated from the file(s) "blueprint.md" ⚠️-->
1
+
<!-- ⚠️ This README has been generated from the file(s) "blueprint.md" ⚠️--><!-- ⚠️ This README has been generated from the file(s) "blueprint.md" ⚠️-->
If you have any questions/issues/comments please feel free to create an issue or start a conversation in the [NativeScript Community Discord](https://nativescript.org/discord).
264
+
265
+
[](#demos-and-development)
266
+
267
+
## Demos and Development
268
+
269
+
270
+
### Repo Setup
271
+
272
+
The repo uses submodules. If you did not clone with ` --recursive` then you need to call
273
+
```
274
+
git submodule update --init
275
+
```
276
+
277
+
The package manager used to install and link dependencies must be `pnpm` or `yarn`. `npm` wont work.
278
+
279
+
To develop and test:
280
+
if you use `yarn` then run `yarn`
281
+
if you use `pnpm` then run `pnpm i`
282
+
250
283
**Interactive Menu:**
251
284
252
285
To start the interactive menu, run `npm start` (or `yarn start` or `pnpm start`). This will list all of the commonly used scripts.
253
286
254
287
### Build
255
288
256
289
```bash
257
-
npm run build
258
-
259
-
npm run build.angular # or for Angular
290
+
npm run build.all
260
291
```
292
+
WARNING: it seems `yarn build.all` wont always work (not finding binaries in `node_modules/.bin`) which is why the doc explicitly uses `npm run`
261
293
262
294
### Demos
263
295
@@ -267,8 +299,59 @@ npm run demo.[ng|react|svelte|vue].[ios|android]
267
299
npm run demo.svelte.ios # Example
268
300
```
269
301
270
-
[](#questions)
302
+
Demo setup is a bit special in the sense that if you want to modify/add demos you dont work directly in `demo-[ng|react|svelte|vue]`
303
+
Instead you work in `demo-snippets/[ng|react|svelte|vue]`
304
+
You can start from the `install.ts` of each flavor to see how to register new demos
305
+
306
+
307
+
[](#contributing)
271
308
309
+
## Contributing
310
+
311
+
### Update repo
312
+
313
+
You can update the repo files quite easily
314
+
315
+
First update the submodules
316
+
317
+
```bash
318
+
npm run update
319
+
```
320
+
321
+
Then commit the changes
322
+
Then update common files
323
+
324
+
```bash
325
+
npm run sync
326
+
```
327
+
Then you can run `yarn|pnpm`, commit changed files if any
328
+
329
+
### Update readme
330
+
```bash
331
+
npm run readme
332
+
```
333
+
334
+
### Update doc
335
+
```bash
336
+
npm run doc
337
+
```
338
+
339
+
### Publish
340
+
341
+
The publishing is completely handled by `lerna` (you can add `-- --bump major` to force a major release)
342
+
Simply run
343
+
```shell
344
+
npm run publish
345
+
```
346
+
347
+
### modifying submodules
348
+
349
+
The repo uses https:// for submodules which means you won't be able to push directly into the submodules.
350
+
One easy solution is t modify `~/.gitconfig` and add
0 commit comments