Skip to content

Commit 643e896

Browse files
committed
readme/doc
1 parent 6885ee5 commit 643e896

31 files changed

+1069
-3656
lines changed

README.md

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575
* [Update readme ](#update-readme-)
7676
* [Update doc ](#update-doc-)
7777
* [Publish](#publish)
78+
* [modifying submodules](#modifying-submodules)
7879
* [Questions](#questions)
7980

8081

@@ -428,6 +429,7 @@ To start the interactive menu, run `npm start` (or `yarn start` or `pnpm start`)
428429
```bash
429430
npm run build.all
430431
```
432+
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`
431433

432434
### Demos
433435

@@ -437,6 +439,10 @@ npm run demo.[ng|react|svelte|vue].[ios|android]
437439
npm run demo.svelte.ios # Example
438440
```
439441

442+
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]`
443+
Instead you work in `demo-snippets/[ng|react|svelte|vue]`
444+
You can start from the `install.ts` of each flavor to see how to register new demos
445+
440446

441447
[](#contributing)
442448

@@ -481,9 +487,115 @@ Simply run
481487
npm run publish
482488
```
483489

490+
### modifying submodules
491+
492+
The repo uses https:// for submodules which means you won't be able to push directly into the submodules.
493+
One easy solution is t modify `~/.gitconfig` and add
494+
```
495+
[url "ssh://[email protected]/"]
496+
pushInsteadOf = https://github.com/
497+
```
498+
499+
500+
[](#questions)
501+
484502

485503
[](#questions)
486504

505+
## Questions
506+
507+
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).
508+
509+
[](#demos-and-development)
510+
511+
## Demos and Development
512+
513+
514+
### Repo Setup
515+
516+
The repo uses submodules. If you did not clone with ` --recursive` then you need to call
517+
```
518+
git submodule update --init
519+
```
520+
521+
The package manager used to install and link dependencies must be `pnpm` or `yarn`. `npm` wont work.
522+
523+
To develop and test:
524+
if you use `yarn` then run `yarn`
525+
if you use `pnpm` then run `pnpm i`
526+
527+
**Interactive Menu:**
528+
529+
To start the interactive menu, run `npm start` (or `yarn start` or `pnpm start`). This will list all of the commonly used scripts.
530+
531+
### Build
532+
533+
```bash
534+
npm run build.all
535+
```
536+
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`
537+
538+
### Demos
539+
540+
```bash
541+
npm run demo.[ng|react|svelte|vue].[ios|android]
542+
543+
npm run demo.svelte.ios # Example
544+
```
545+
546+
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]`
547+
Instead you work in `demo-snippets/[ng|react|svelte|vue]`
548+
You can start from the `install.ts` of each flavor to see how to register new demos
549+
550+
551+
[](#contributing)
552+
553+
## Contributing
554+
555+
### Update repo
556+
557+
You can update the repo files quite easily
558+
559+
First update the submodules
560+
561+
```bash
562+
npm run update
563+
```
564+
565+
Then commit the changes
566+
Then update common files
567+
568+
```bash
569+
npm run sync
570+
```
571+
Then you can run `yarn|pnpm`, commit changed files if any
572+
573+
### Update readme
574+
```bash
575+
npm run readme
576+
```
577+
578+
### Update doc
579+
```bash
580+
npm run doc
581+
```
582+
583+
### Publish
584+
585+
The publishing is completely handled by `lerna` (you can add `-- --bump major` to force a major release)
586+
Simply run
587+
```shell
588+
npm run publish
589+
```
590+
591+
### modifying submodules
592+
593+
The repo uses https:// for submodules which means you won't be able to push directly into the submodules.
594+
One easy solution is t modify `~/.gitconfig` and add
595+
```
596+
[url "ssh://[email protected]/"]
597+
pushInsteadOf = https://github.com/
598+
```
487599

488600
[](#questions)
489601

docs/assets/main.js

Lines changed: 58 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/assets/navigation.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/assets/search.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)