Skip to content

Commit

Permalink
docs(docs): added docs for published lib modules
Browse files Browse the repository at this point in the history
  • Loading branch information
xmlking committed Jan 8, 2019
1 parent d5f7d4b commit 10861f7
Show file tree
Hide file tree
Showing 23 changed files with 178 additions and 28 deletions.
1 change: 1 addition & 0 deletions PLAYBOOK.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ npm i -D lint-staged
> update 3rd party modules/schematics
```bash
ng update
ng update @angular/core@next
ng update @angular/cli@next
ng update @angular/material --force
Expand Down
9 changes: 9 additions & 0 deletions libs/app-confirm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@ Conform Popup
=============
confirm popup dialog to get user's choice.


### Install

```bash
npm i @ngx-starter-kit/app-confirm
```

### Usage

```ts
import { AppConfirmModule } from '@ngx-starter-kit/app-confirm'
import { AppConfirmService } from '@ngx-starter-kit/app-confirm';
Expand Down
8 changes: 8 additions & 0 deletions libs/breadcrumbs/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
# Breadcrumbs


### Install

```bash
npm i @ngx-starter-kit/breadcrumbs
```

### Usage

### Publish
```bash
# build
Expand Down
10 changes: 9 additions & 1 deletion libs/chat-box/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,16 @@
- multiple active conversations
- save and retrieve active conversations

### Install

```bash
npm i @ngx-starter-kit/chat-box
```

### Usage

### Publish

```bash
# build deps first
ng build utils
Expand All @@ -19,7 +28,6 @@ export NPM_TOKEN="00000000-0000-0000-0000-000000000000"
npm publish dist/libs/chat-box --access public
```


TODO
multiple conversations inspired by
https://www.weave.works/
1 change: 0 additions & 1 deletion libs/chat-box/src/lib/state/chat-box.store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ import {
SynthesisVoice,
} from './chat-box.actions';


export class ChatBoxStateModel {
conversations: Conversation[];
activeConversationId: string | number;
Expand Down
24 changes: 16 additions & 8 deletions libs/clap/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,16 @@

Clap micro-interaction

### TODO

1. How I Implemented the Medium Clap from Scratch!
### Install

- https://medium.com/@yonatandoron/how-i-implemented-the-medium-clap-from-scratch-4a16ac90ad3b

2. Creating Reusable Animations in Angular

- https://netbasal.com/creating-reusable-animations-in-angular-6a2350d6191a
```bash
npm i @ngx-starter-kit/clap
```

### Usage

### Publish

```bash
# build
ng build clap
Expand All @@ -22,3 +20,13 @@ export NPM_TOKEN="00000000-0000-0000-0000-000000000000"
# publish
npm publish dist/libs/clap --access public
```

### TODO

1. How I Implemented the Medium Clap from Scratch!

- https://medium.com/@yonatandoron/how-i-implemented-the-medium-clap-from-scratch-4a16ac90ad3b

2. Creating Reusable Animations in Angular

- https://netbasal.com/creating-reusable-animations-in-angular-6a2350d6191a
9 changes: 7 additions & 2 deletions libs/context-menu/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Context Menu

### Install

```bash
npm i @ngx-starter-kit/context-menu
```

### Usage

1. Add `ContextMenuModule` module to your module `imports`
Expand All @@ -22,8 +28,8 @@
<div [contextMenu]="myContextMenu">Right click me to see the menu</div>
```


### Publish

```bash
# build
ng build context-menu
Expand All @@ -32,4 +38,3 @@ export NPM_TOKEN="00000000-0000-0000-0000-000000000000"
# publish
npm publish dist/libs/context-menu --access public
```

9 changes: 8 additions & 1 deletion libs/draggable/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
# Draggable

### Install

```bash
npm i @ngx-starter-kit/draggable
```

### Usage

### Publish

```bash
# build deps first
ng build utils
Expand All @@ -13,4 +21,3 @@ export NPM_TOKEN="00000000-0000-0000-0000-000000000000"
# publish
npm publish dist/libs/draggable --access public
```

7 changes: 7 additions & 0 deletions libs/image-comparison/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Image Comparison

### Install

```bash
npm i @ngx-starter-kit/image-comparison
```

### Usage

```html
Expand All @@ -14,6 +20,7 @@
- [ImageComparison](https://github.com/M-Ulyanov/ImageComparison)

### Publish

```bash
# build
ng build image-comparison
Expand Down
8 changes: 8 additions & 0 deletions libs/json-diff/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
# Json Diff

### Install

```bash
npm i @ngx-starter-kit/json-diff
```

### Usage

### Publish

```bash
# build
ng build json-diff
Expand Down
8 changes: 8 additions & 0 deletions libs/led/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
# Led

### Install

```bash
npm i @ngx-starter-kit/led
```

### Usage

### Publish

```bash
# build
ng build led
Expand Down
8 changes: 8 additions & 0 deletions libs/loading-overlay/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
# loading-overlay

### Install

```bash
npm i @ngx-starter-kit/loading-overlay
```

### Usage

### Publish

```bash
# build
ng build loading-overlay
Expand Down
18 changes: 13 additions & 5 deletions libs/ngx-utils/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ same as [@ngrx-utils/store](https://github.com/ngrx-utils/ngrx-utils) without de

**Directive:** inViewport, ngLet, routerLinkMatch

## Install

```bash
npm i @ngx-starter-kit/ngx-utils
```

## Usage

### InViewport Directive

> Add `IntersectionObserver` [polyfill](https://github.com/w3c/IntersectionObserver/tree/master/polyfill) to [polyfills.ts](../../apps/webapp/src/polyfills.ts) for `Safari` Support
Expand All @@ -16,14 +24,14 @@ same as [@ngrx-utils/store](https://github.com/ngrx-utils/ngrx-utils) without de
</div>
```

> If `entry.intersectionRatio >= 0.5` ==> `Inside Viewport`
> <br/>
> If `entry.intersectionRatio >= 0.5` ==> `Inside Viewport` > <br/>
> If `entry.intersectionRatio < 0.5` ==> `Outside Viewport`
#### Flags
1. Trigger only One Time : `[oneTime]="true"` usecase: image loading.

1. Trigger only One Time : `[oneTime]="true"` usecase: image loading.
2. Server-Side Rendering : By default, loads the elements on the server.
> If you do not want to pre-render the elements in server, you can set `preRender to false. i.e., `[preRender]="false"`
> If you do not want to pre-render the elements in server, you can set `preRender to false. i.e.,`[preRender]="false"`
### Viewport Service

Expand Down Expand Up @@ -61,8 +69,8 @@ export class ViewportDemoComponent implements OnInit, OnDestroy {
}
```

## Publish

### Publish
```bash
# build
ng build ngx-utils
Expand Down
8 changes: 8 additions & 0 deletions libs/notifications/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
# Notifications

### Install

```bash
npm i @ngx-starter-kit/notifications
```

### Usage

### Publish

```bash
# build
ng build notifications
Expand Down
9 changes: 9 additions & 0 deletions libs/scroll-to-top/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
# Scroll-to-Top

### Install

```bash
npm i @ngx-starter-kit/scroll-to-top
```

### Usage

### Publish

```bash
# build
ng build scroll-to-top
Expand Down
8 changes: 8 additions & 0 deletions libs/scrollbar/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
# Scrollbar

### Install

```bash
npm i @ngx-starter-kit/scrollbar
```

### Usage

### Publish

```bash
# build
ng build scrollbar
Expand Down
9 changes: 9 additions & 0 deletions libs/socketio-plugin/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
# socketio-plugin

### Install

```bash
npm i @ngx-starter-kit/socketio-plugin
```

### Usage

### Publish

```bash
# build
ng build socketio-plugin
Expand Down
8 changes: 8 additions & 0 deletions libs/svg-viewer/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
# Svg-Viewer

### Install

```bash
npm i @ngx-starter-kit/svg-viewer
```

### Usage

### Publish

```bash
# build
ng build svg-viewer
Expand Down
8 changes: 8 additions & 0 deletions libs/theme-picker/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
# Theme-Picker

### Install

```bash
npm i @ngx-starter-kit/theme-picker
```

### Usage

### Publish

```bash
# build
ng build theme-picker
Expand Down
8 changes: 8 additions & 0 deletions libs/tree/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
# Tree

### Install

```bash
npm i @ngx-starter-kit/tree
```

### Usage

### Publish

```bash
# build
ng build tree
Expand Down
8 changes: 8 additions & 0 deletions libs/utils/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
# Utils

### Install

```bash
npm i @ngx-starter-kit/utils
```

### Usage

### Publish

```bash
# build
ng build utils
Expand Down
Loading

0 comments on commit 10861f7

Please sign in to comment.