Skip to content

Commit

Permalink
doc:update version && update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
laclys committed May 17, 2024
1 parent 2d34a03 commit 2684f0b
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 15 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dayjs-jp-calendar",
"version": "1.2.0",
"version": "1.3.0",
"description": "day.js plugin for japanese calendar",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
36 changes: 22 additions & 14 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,29 +30,37 @@ dayjs(date).format('RRR') // --> 令和
dayjs(date).format('RR') // --> R5
dayjs(date).format('R') // --> R

dayjs(date).format('rr') // --> ㋿5
dayjs(date).format('r') // --> ㋿

dayjs(date).format('YYYY(RR)/MM/DD') // --> 2023(R5)/11/13
dayjs(date).format('YYYY(rr)/MM/DD') // --> 2023(㋿5)/11/13
```

### Test Coverage

```
% Coverage report from v8
----------|---------|----------|---------|---------|----------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
----------|---------|----------|---------|---------|----------------------
All files | 91.25 | 82.6 | 100 | 91.25 |
index.ts | 91.25 | 82.6 | 100 | 91.25 | 18-19,46,51-52,71-72
```

### For Dev
```bash
----------|---------|----------|---------|---------|
File | % Stmts | % Branch | % Funcs | % Lines |
----------|---------|----------|---------|---------|
All files | 92.3 | 85.71 | 100 | 92.3 |
index.ts | 92.3 | 85.71 | 100 | 92.3 |
----------|---------|----------|---------|---------|
```

### For Dev

```bash
#Install
pnpm i
#Test
pnpm run test
#Build
pnpm run build
```
pnpm run build
```

### Example case

### Example case
> with antd
todo
> with antd
> todo

0 comments on commit 2684f0b

Please sign in to comment.