Skip to content

Commit

Permalink
Merge pull request #6 from BibbyChung/features/code-coverage
Browse files Browse the repository at this point in the history
Features/code coverage
  • Loading branch information
BibbyChung authored Jan 25, 2023
2 parents a8272f6 + 47b9edf commit 8ad88e1
Show file tree
Hide file tree
Showing 93 changed files with 1,087 additions and 772 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,13 @@ jobs:
git config user.name github-actions
git config user.email github-actions@github.com
- name: start-test
- name: install-packages
run: |
cd /app
pnpm i -r
pnpm run test:ci
- name: start-test
run: |
cd /app
pnpm run coverage
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
node_modules
.pnpm-store
coverage
.nyc_output
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,27 @@ console.log(sPagination);

[playground](https://stackblitz.com/edit/vitejs-vite-dxv9cy)

## Todo
## Todos

- [x] UI demo
- [x] testing
- [ ] middle pagination

## Code Coverage

```bash
-------------------------|---------|----------|---------|---------|-------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
-------------------------|---------|----------|---------|---------|-------------------
All files | 100 | 100 | 100 | 100 |
src | 100 | 100 | 100 | 100 |
_index.ts | 100 | 100 | 100 | 100 |
src/code | 100 | 100 | 100 | 100 |
core.ts | 100 | 100 | 100 | 100 |
getSimplePagination.ts | 100 | 100 | 100 | 100 |
-------------------------|---------|----------|---------|---------|-------------------
```

## Workspace

```
Expand Down
Empty file modified dist/cjs/_index.d.ts
100644 → 100755
Empty file.
Empty file modified dist/cjs/_index.js
100644 → 100755
Empty file.
Empty file modified dist/cjs/_index.js.map
100644 → 100755
Empty file.
Empty file modified dist/cjs/code/_old/core/IPagination.d.ts
100644 → 100755
Empty file.
Empty file modified dist/cjs/code/_old/core/IPagination.js
100644 → 100755
Empty file.
Empty file modified dist/cjs/code/_old/core/IPagination.js.map
100644 → 100755
Empty file.
Empty file modified dist/cjs/code/_old/core/pagerItem.d.ts
100644 → 100755
Empty file.
Empty file modified dist/cjs/code/_old/core/pagerItem.js
100644 → 100755
Empty file.
Empty file modified dist/cjs/code/_old/core/pagerItem.js.map
100644 → 100755
Empty file.
Empty file modified dist/cjs/code/_old/core/paginationBase.d.ts
100644 → 100755
Empty file.
Empty file modified dist/cjs/code/_old/core/paginationBase.js
100644 → 100755
Empty file.
Empty file modified dist/cjs/code/_old/core/paginationBase.js.map
100644 → 100755
Empty file.
Empty file modified dist/cjs/code/_old/core/paginationSetting.d.ts
100644 → 100755
Empty file.
Empty file modified dist/cjs/code/_old/core/paginationSetting.js
100644 → 100755
Empty file.
Empty file modified dist/cjs/code/_old/core/paginationSetting.js.map
100644 → 100755
Empty file.
Empty file modified dist/cjs/code/_old/middlePagination.d.ts
100644 → 100755
Empty file.
Empty file modified dist/cjs/code/_old/middlePagination.js
100644 → 100755
Empty file.
Empty file modified dist/cjs/code/_old/middlePagination.js.map
100644 → 100755
Empty file.
Empty file modified dist/cjs/code/core.d.ts
100644 → 100755
Empty file.
Empty file modified dist/cjs/code/core.js
100644 → 100755
Empty file.
Empty file modified dist/cjs/code/core.js.map
100644 → 100755
Empty file.
6 changes: 0 additions & 6 deletions dist/cjs/code/core/IPagination.d.ts

This file was deleted.

3 changes: 0 additions & 3 deletions dist/cjs/code/core/IPagination.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/cjs/code/core/IPagination.js.map

This file was deleted.

Empty file removed dist/cjs/code/core/p.d.ts
Empty file.
1 change: 0 additions & 1 deletion dist/cjs/code/core/p.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/cjs/code/core/p.js.map

This file was deleted.

16 changes: 0 additions & 16 deletions dist/cjs/code/core/pagerItem.d.ts

This file was deleted.

17 changes: 0 additions & 17 deletions dist/cjs/code/core/pagerItem.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/cjs/code/core/pagerItem.js.map

This file was deleted.

25 changes: 0 additions & 25 deletions dist/cjs/code/core/paginationBase.d.ts

This file was deleted.

59 changes: 0 additions & 59 deletions dist/cjs/code/core/paginationBase.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/cjs/code/core/paginationBase.js.map

This file was deleted.

11 changes: 0 additions & 11 deletions dist/cjs/code/core/paginationSetting.d.ts

This file was deleted.

7 changes: 0 additions & 7 deletions dist/cjs/code/core/paginationSetting.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/cjs/code/core/paginationSetting.js.map

This file was deleted.

Empty file modified dist/cjs/code/getSimplePagination.d.ts
100644 → 100755
Empty file.
7 changes: 5 additions & 2 deletions dist/cjs/code/getSimplePagination.js
100644 → 100755

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/cjs/code/getSimplePagination.js.map
100644 → 100755

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 0 additions & 12 deletions dist/cjs/code/middlePagination.d.ts

This file was deleted.

Loading

0 comments on commit 8ad88e1

Please sign in to comment.