Skip to content

Commit 4deb9ff

Browse files
committed
readme/doc
1 parent d58d111 commit 4deb9ff

File tree

44 files changed

+964
-150
lines changed

Some content is hidden

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

44 files changed

+964
-150
lines changed

README.md

Lines changed: 192 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -566,6 +566,198 @@ One easy solution is t modify `~/.gitconfig` and add
566566
[](#questions)
567567

568568

569+
[](#questions)
570+
571+
## Questions
572+
573+
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).
574+
</details><details>
575+
<summary><b>swipemenu</b></summary>
576+
<!-- ⚠️ This README has been generated from the file(s) "blueprint.md" ⚠️-->
577+
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
578+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
579+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
580+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
581+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
582+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
583+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
584+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
585+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
586+
DO NOT EDIT THIS READEME DIRECTLY! Edit "bluesprint.md" instead.
587+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
588+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
589+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
590+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
591+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
592+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
593+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
594+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
595+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
596+
<h1 align="center">@nativescript-community/ui-collectionview-swipemenu</h1>
597+
<p align="center">
598+
<a href="https://npmcharts.com/compare/@nativescript-community/ui-collectionview-swipemenu?minimal=true"><img alt="Downloads per month" src="https://img.shields.io/npm/dm/@nativescript-community/ui-collectionview-swipemenu.svg" height="20"/></a>
599+
<a href="https://www.npmjs.com/package/@nativescript-community/ui-collectionview-swipemenu"><img alt="NPM Version" src="https://img.shields.io/npm/v/@nativescript-community/ui-collectionview-swipemenu.svg" height="20"/></a>
600+
</p>
601+
602+
<p align="center">
603+
<b>A NativeScript CollectionView SwipeMenu Plugin.</b></br>
604+
<sub><sub>
605+
</p>
606+
607+
<br />
608+
609+
610+
611+
[](#table-of-contents)
612+
613+
614+
[](#table-of-contents)
615+
616+
## Table of Contents
617+
618+
* [Installation](#installation)
619+
* [Configuration](#configuration)
620+
* [Demos and Development](#demos-and-development)
621+
* [Repo Setup](#repo-setup)
622+
* [Build](#build)
623+
* [Demos](#demos)
624+
* [Contributing](#contributing)
625+
* [Update repo ](#update-repo-)
626+
* [Update readme ](#update-readme-)
627+
* [Update doc ](#update-doc-)
628+
* [Publish](#publish)
629+
* [modifying submodules](#modifying-submodules)
630+
* [Questions](#questions)
631+
632+
633+
[](#installation)
634+
635+
636+
[](#installation)
637+
638+
## Installation
639+
Run the following command from the root of your project:
640+
641+
`ns plugin add @nativescript-community/ui-collectionview-swipemenu`
642+
643+
644+
[](#configuration)
645+
646+
647+
[](#configuration)
648+
649+
## Configuration
650+
651+
To install the plugin run:
652+
```typescript
653+
import install from '@nativescript-community/ui-collectionview-swipemenu';
654+
install();
655+
```
656+
657+
then simply use the `layoutStyle="waterfall"` as a collectionview property
658+
659+
660+
[](#demos-and-development)
661+
662+
663+
[](#demos-and-development)
664+
665+
## Demos and Development
666+
667+
668+
### Repo Setup
669+
670+
The repo uses submodules. If you did not clone with ` --recursive` then you need to call
671+
```
672+
git submodule update --init
673+
```
674+
675+
The package manager used to install and link dependencies must be `pnpm` or `yarn`. `npm` wont work.
676+
677+
To develop and test:
678+
if you use `yarn` then run `yarn`
679+
if you use `pnpm` then run `pnpm i`
680+
681+
**Interactive Menu:**
682+
683+
To start the interactive menu, run `npm start` (or `yarn start` or `pnpm start`). This will list all of the commonly used scripts.
684+
685+
### Build
686+
687+
```bash
688+
npm run build.all
689+
```
690+
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`
691+
692+
### Demos
693+
694+
```bash
695+
npm run demo.[ng|react|svelte|vue].[ios|android]
696+
697+
npm run demo.svelte.ios # Example
698+
```
699+
700+
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]`
701+
Instead you work in `demo-snippets/[ng|react|svelte|vue]`
702+
You can start from the `install.ts` of each flavor to see how to register new demos
703+
704+
705+
[](#contributing)
706+
707+
708+
[](#contributing)
709+
710+
## Contributing
711+
712+
### Update repo
713+
714+
You can update the repo files quite easily
715+
716+
First update the submodules
717+
718+
```bash
719+
npm run update
720+
```
721+
722+
Then commit the changes
723+
Then update common files
724+
725+
```bash
726+
npm run sync
727+
```
728+
Then you can run `yarn|pnpm`, commit changed files if any
729+
730+
### Update readme
731+
```bash
732+
npm run readme
733+
```
734+
735+
### Update doc
736+
```bash
737+
npm run doc
738+
```
739+
740+
### Publish
741+
742+
The publishing is completely handled by `lerna` (you can add `-- --bump major` to force a major release)
743+
Simply run
744+
```shell
745+
npm run publish
746+
```
747+
748+
### modifying submodules
749+
750+
The repo uses https:// for submodules which means you won't be able to push directly into the submodules.
751+
One easy solution is t modify `~/.gitconfig` and add
752+
```
753+
[url "ssh://[email protected]/"]
754+
pushInsteadOf = https://github.com/
755+
```
756+
757+
758+
[](#questions)
759+
760+
569761
[](#questions)
570762

571763
## Questions

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)