Skip to content

Commit fe86f77

Browse files
committed
readme/doc
1 parent 3e8b461 commit fe86f77

File tree

56 files changed

+2121
-3413
lines changed

Some content is hidden

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

56 files changed

+2121
-3413
lines changed

README.md

Lines changed: 171 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -1,81 +1,4 @@
1-
<!-- ⚠️ 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" ⚠️-->
792
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
803
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
814
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
@@ -125,9 +48,15 @@ npm run publish
12548
* [Credits](#credits)
12649
* [Examples:](#examples)
12750
* [Demos and Development](#demos-and-development)
128-
* [Setup](#setup)
51+
* [Repo Setup](#repo-setup)
12952
* [Build](#build)
13053
* [Demos](#demos)
54+
* [Contributing](#contributing)
55+
* [Update repo ](#update-repo-)
56+
* [Update readme ](#update-readme-)
57+
* [Update doc ](#update-doc-)
58+
* [Publish](#publish)
59+
* [modifying submodules](#modifying-submodules)
13160
* [Questions](#questions)
13261

13362

@@ -234,30 +163,133 @@ The source is based on the source code by [Krzysztof Magiera](https://github.com
234163
## Demos and Development
235164

236165

237-
### Setup
166+
### Repo Setup
167+
168+
The repo uses submodules. If you did not clone with ` --recursive` then you need to call
169+
```
170+
git submodule update --init
171+
```
172+
173+
The package manager used to install and link dependencies must be `pnpm` or `yarn`. `npm` wont work.
174+
175+
To develop and test:
176+
if you use `yarn` then run `yarn`
177+
if you use `pnpm` then run `pnpm i`
178+
179+
**Interactive Menu:**
180+
181+
To start the interactive menu, run `npm start` (or `yarn start` or `pnpm start`). This will list all of the commonly used scripts.
182+
183+
### Build
184+
185+
```bash
186+
npm run build.all
187+
```
188+
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`
189+
190+
### Demos
191+
192+
```bash
193+
npm run demo.[ng|react|svelte|vue].[ios|android]
194+
195+
npm run demo.svelte.ios # Example
196+
```
197+
198+
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]`
199+
Instead you work in `demo-snippets/[ng|react|svelte|vue]`
200+
You can start from the `install.ts` of each flavor to see how to register new demos
201+
202+
203+
[](#contributing)
204+
205+
206+
[](#contributing)
207+
208+
## Contributing
209+
210+
### Update repo
211+
212+
You can update the repo files quite easily
213+
214+
First update the submodules
215+
216+
```bash
217+
npm run update
218+
```
238219

239-
To run the demos, you must clone this repo **recursively**.
220+
Then commit the changes
221+
Then update common files
240222

223+
```bash
224+
npm run sync
241225
```
242-
git clone https://github.com/@nativescript-community/gesturehandler.git --recursive
226+
Then you can run `yarn|pnpm`, commit changed files if any
227+
228+
### Update readme
229+
```bash
230+
npm run readme
243231
```
244232

245-
**Install Dependencies:**
233+
### Update doc
246234
```bash
247-
npm i # or 'yarn install' or 'pnpm install'
235+
npm run doc
236+
```
237+
238+
### Publish
239+
240+
The publishing is completely handled by `lerna` (you can add `-- --bump major` to force a major release)
241+
Simply run
242+
```shell
243+
npm run publish
244+
```
245+
246+
### modifying submodules
247+
248+
The repo uses https:// for submodules which means you won't be able to push directly into the submodules.
249+
One easy solution is t modify `~/.gitconfig` and add
250+
```
251+
[url "ssh://[email protected]/"]
252+
pushInsteadOf = https://github.com/
248253
```
249254

255+
256+
[](#questions)
257+
258+
259+
[](#questions)
260+
261+
## Questions
262+
263+
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+
250283
**Interactive Menu:**
251284

252285
To start the interactive menu, run `npm start` (or `yarn start` or `pnpm start`). This will list all of the commonly used scripts.
253286

254287
### Build
255288

256289
```bash
257-
npm run build
258-
259-
npm run build.angular # or for Angular
290+
npm run build.all
260291
```
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`
261293

262294
### Demos
263295

@@ -267,8 +299,59 @@ npm run demo.[ng|react|svelte|vue].[ios|android]
267299
npm run demo.svelte.ios # Example
268300
```
269301

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)
271308

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
351+
```
352+
[url "ssh://[email protected]/"]
353+
pushInsteadOf = https://github.com/
354+
```
272355

273356
[](#questions)
274357

docs/assets/highlight.css

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
:root {
2-
--light-hl-0: #001080;
3-
--dark-hl-0: #9CDCFE;
2+
--light-hl-0: #AF00DB;
3+
--dark-hl-0: #C586C0;
44
--light-hl-1: #000000;
55
--dark-hl-1: #D4D4D4;
6-
--light-hl-2: #008000;
7-
--dark-hl-2: #6A9955;
8-
--light-hl-3: #AF00DB;
9-
--dark-hl-3: #C586C0;
10-
--light-hl-4: #A31515;
11-
--dark-hl-4: #CE9178;
12-
--light-hl-5: #795E26;
13-
--dark-hl-5: #DCDCAA;
14-
--light-hl-6: #0000FF;
15-
--dark-hl-6: #569CD6;
16-
--light-hl-7: #267F99;
17-
--dark-hl-7: #4EC9B0;
18-
--light-hl-8: #0070C1;
19-
--dark-hl-8: #4FC1FF;
20-
--light-hl-9: #098658;
21-
--dark-hl-9: #B5CEA8;
6+
--light-hl-2: #001080;
7+
--dark-hl-2: #9CDCFE;
8+
--light-hl-3: #A31515;
9+
--dark-hl-3: #CE9178;
10+
--light-hl-4: #795E26;
11+
--dark-hl-4: #DCDCAA;
12+
--light-hl-5: #0000FF;
13+
--dark-hl-5: #569CD6;
14+
--light-hl-6: #267F99;
15+
--dark-hl-6: #4EC9B0;
16+
--light-hl-7: #0070C1;
17+
--dark-hl-7: #4FC1FF;
18+
--light-hl-8: #098658;
19+
--dark-hl-8: #B5CEA8;
20+
--light-hl-9: #008000;
21+
--dark-hl-9: #6A9955;
2222
--light-hl-10: #000000;
2323
--dark-hl-10: #C8C8C8;
2424
--light-code-background: #FFFFFF;

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)