|
1 | 1 | <!-- ⚠️ This README has been generated from the file(s) "blueprint.md" ⚠️-->This monorepo contains multiple packages:<br><br> |
2 | 2 | <details open> |
| 3 | +<summary><b>alignedflowlayout</b></summary> |
| 4 | + |
| 5 | +<!-- ⚠️ This README has been generated from the file(s) "blueprint.md" ⚠️--> |
| 6 | +<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
| 7 | + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
| 8 | + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
| 9 | + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
| 10 | + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
| 11 | + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
| 12 | + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
| 13 | + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
| 14 | + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
| 15 | + DO NOT EDIT THIS READEME DIRECTLY! Edit "bluesprint.md" instead. |
| 16 | + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
| 17 | + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
| 18 | + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
| 19 | + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
| 20 | + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
| 21 | + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
| 22 | + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
| 23 | + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
| 24 | + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> |
| 25 | +<h1 align="center">@nativescript-community/ui-collectionview-alignedflowlayout</h1> |
| 26 | +<p align="center"> |
| 27 | + <a href="https://npmcharts.com/compare/@nativescript-community/ui-collectionview-alignedflowlayout?minimal=true"><img alt="Downloads per month" src="https://img.shields.io/npm/dm/@nativescript-community/ui-collectionview-alignedflowlayout.svg" height="20"/></a> |
| 28 | +<a href="https://www.npmjs.com/package/@nativescript-community/ui-collectionview-alignedflowlayout"><img alt="NPM Version" src="https://img.shields.io/npm/v/@nativescript-community/ui-collectionview-alignedflowlayout.svg" height="20"/></a> |
| 29 | + </p> |
| 30 | + |
| 31 | +<p align="center"> |
| 32 | + <b>A NativeScript CollectionView For Custom aligned Layout Plugin.</b></br> |
| 33 | + <sub><sub> |
| 34 | +</p> |
| 35 | + |
| 36 | +<br /> |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | +[](#table-of-contents) |
| 41 | + |
| 42 | + |
| 43 | +[](#table-of-contents) |
| 44 | + |
| 45 | +## Table of Contents |
| 46 | + |
| 47 | +* [Installation](#installation) |
| 48 | +* [Configuration](#configuration) |
| 49 | +* [Demos and Development](#demos-and-development) |
| 50 | + * [Repo Setup](#repo-setup) |
| 51 | + * [Build](#build) |
| 52 | + * [Demos](#demos) |
| 53 | +* [Contributing](#contributing) |
| 54 | + * [Update repo ](#update-repo-) |
| 55 | + * [Update readme ](#update-readme-) |
| 56 | + * [Update doc ](#update-doc-) |
| 57 | + * [Publish](#publish) |
| 58 | + * [modifying submodules](#modifying-submodules) |
| 59 | +* [Questions](#questions) |
| 60 | + |
| 61 | + |
| 62 | +[](#installation) |
| 63 | + |
| 64 | + |
| 65 | +[](#installation) |
| 66 | + |
| 67 | +## Installation |
| 68 | +Run the following command from the root of your project: |
| 69 | + |
| 70 | +`ns plugin add @nativescript-community/ui-collectionview-alignedflowlayout` |
| 71 | + |
| 72 | + |
| 73 | +[](#configuration) |
| 74 | + |
| 75 | + |
| 76 | +[](#configuration) |
| 77 | + |
| 78 | +## Configuration |
| 79 | + |
| 80 | +To install the plugin run: |
| 81 | +```typescript |
| 82 | +import install from '@nativescript-community/ui-collectionview-alignedflowlayout'; |
| 83 | +install(); |
| 84 | +``` |
| 85 | + |
| 86 | +then simply use the `layoutStyle="align"` as a collectionview property |
| 87 | +You can then use `layoutHorizontalAlignment`(left, right, justified) and `verticalHorizontalAlignment` (top, bottom, center) |
| 88 | + |
| 89 | + |
| 90 | +[](#demos-and-development) |
| 91 | + |
| 92 | + |
| 93 | +[](#demos-and-development) |
| 94 | + |
| 95 | +## Demos and Development |
| 96 | + |
| 97 | + |
| 98 | +### Repo Setup |
| 99 | + |
| 100 | +The repo uses submodules. If you did not clone with ` --recursive` then you need to call |
| 101 | +``` |
| 102 | +git submodule update --init |
| 103 | +``` |
| 104 | + |
| 105 | +The package manager used to install and link dependencies must be `pnpm` or `yarn`. `npm` wont work. |
| 106 | + |
| 107 | +To develop and test: |
| 108 | +if you use `yarn` then run `yarn` |
| 109 | +if you use `pnpm` then run `pnpm i` |
| 110 | + |
| 111 | +**Interactive Menu:** |
| 112 | + |
| 113 | +To start the interactive menu, run `npm start` (or `yarn start` or `pnpm start`). This will list all of the commonly used scripts. |
| 114 | + |
| 115 | +### Build |
| 116 | + |
| 117 | +```bash |
| 118 | +npm run build.all |
| 119 | +``` |
| 120 | +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` |
| 121 | + |
| 122 | +### Demos |
| 123 | + |
| 124 | +```bash |
| 125 | +npm run demo.[ng|react|svelte|vue].[ios|android] |
| 126 | + |
| 127 | +npm run demo.svelte.ios # Example |
| 128 | +``` |
| 129 | + |
| 130 | +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]` |
| 131 | +Instead you work in `demo-snippets/[ng|react|svelte|vue]` |
| 132 | +You can start from the `install.ts` of each flavor to see how to register new demos |
| 133 | + |
| 134 | + |
| 135 | +[](#contributing) |
| 136 | + |
| 137 | + |
| 138 | +[](#contributing) |
| 139 | + |
| 140 | +## Contributing |
| 141 | + |
| 142 | +### Update repo |
| 143 | + |
| 144 | +You can update the repo files quite easily |
| 145 | + |
| 146 | +First update the submodules |
| 147 | + |
| 148 | +```bash |
| 149 | +npm run update |
| 150 | +``` |
| 151 | + |
| 152 | +Then commit the changes |
| 153 | +Then update common files |
| 154 | + |
| 155 | +```bash |
| 156 | +npm run sync |
| 157 | +``` |
| 158 | +Then you can run `yarn|pnpm`, commit changed files if any |
| 159 | + |
| 160 | +### Update readme |
| 161 | +```bash |
| 162 | +npm run readme |
| 163 | +``` |
| 164 | + |
| 165 | +### Update doc |
| 166 | +```bash |
| 167 | +npm run doc |
| 168 | +``` |
| 169 | + |
| 170 | +### Publish |
| 171 | + |
| 172 | +The publishing is completely handled by `lerna` (you can add `-- --bump major` to force a major release) |
| 173 | +Simply run |
| 174 | +```shell |
| 175 | +npm run publish |
| 176 | +``` |
| 177 | + |
| 178 | +### modifying submodules |
| 179 | + |
| 180 | +The repo uses https:// for submodules which means you won't be able to push directly into the submodules. |
| 181 | +One easy solution is t modify `~/.gitconfig` and add |
| 182 | +``` |
| 183 | + |
| 184 | + pushInsteadOf = https://github.com/ |
| 185 | +``` |
| 186 | + |
| 187 | + |
| 188 | +[](#questions) |
| 189 | + |
| 190 | + |
| 191 | +[](#questions) |
| 192 | + |
| 193 | +## Questions |
| 194 | + |
| 195 | +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). |
| 196 | +</details> |
| 197 | +<details open> |
3 | 198 | <summary><b>collectionview</b></summary> |
4 | 199 |
|
5 | 200 | <!-- ⚠️ This README has been generated from the file(s) "blueprint.md" ⚠️--> |
|
0 commit comments