@jphil/bookwhen-client 0.0.4 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +41 -6
- package/dist/index.d.ts +1 -3
- package/dist/index.js +3 -6
- package/package.json +12 -10
package/README.md
CHANGED
|
@@ -34,6 +34,8 @@ pnpm add @jphil/bookwhen-client
|
|
|
34
34
|
|
|
35
35
|
## Usage
|
|
36
36
|
|
|
37
|
+
\[wip\]!
|
|
38
|
+
|
|
37
39
|
```typescript
|
|
38
40
|
// ... todo
|
|
39
41
|
```
|
|
@@ -46,13 +48,22 @@ Required configuration options:
|
|
|
46
48
|
|
|
47
49
|
API requests to the Bookwhen API are authenticated using Basic Authentication with the API Key as the username and a blank password.
|
|
48
50
|
|
|
49
|
-
API keys can be generated in the [https://YOUR-ACCOUNT-NAME.bookwhen.com/settings/api_access_permission_sets
|
|
51
|
+
API keys can be generated in the [API tokens setup area of your Bookwhen account](https://YOUR-ACCOUNT-NAME.bookwhen.com/settings/api_access_permission_sets).
|
|
50
52
|
|
|
51
53
|
## Contributing
|
|
52
54
|
|
|
53
|
-
|
|
55
|
+
### How to Contribute
|
|
56
|
+
|
|
57
|
+
Thank you for your interest in contributing!
|
|
58
|
+
|
|
59
|
+
This library follows the standard Github Flow contribution workflow, have a read of the guide to [Github Flow](https://docs.github.com/en/get-started/using-github/github-flow#following-github-flow) from the Github docs, if you're not familiar.
|
|
54
60
|
|
|
55
|
-
###
|
|
61
|
+
### Contribution Requirements
|
|
62
|
+
|
|
63
|
+
- Use the [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/) style when writing your commit messages.
|
|
64
|
+
- Ensure you create a [changeset](https://github.com/changesets/changesets) as the final commit before creating a new PR (or updating one).
|
|
65
|
+
|
|
66
|
+
#### Setting Up Husky for Contributions
|
|
56
67
|
|
|
57
68
|
This project uses Husky for Git hooks and Commitlint to enforce commit message standards.
|
|
58
69
|
|
|
@@ -74,6 +85,33 @@ This command sets up a .husky/ directory in the project, linking the necessary s
|
|
|
74
85
|
|
|
75
86
|
Thank you for helping maintain commit quality and consistency!
|
|
76
87
|
|
|
88
|
+
\[wip\]!
|
|
89
|
+
|
|
90
|
+
## CI
|
|
91
|
+
|
|
92
|
+
>>> consider changesets in the following?
|
|
93
|
+
|
|
94
|
+
### Contrib flow
|
|
95
|
+
|
|
96
|
+
- Contrib user clones repo locally
|
|
97
|
+
- Contrib user creates a feature branch
|
|
98
|
+
- Contrib user generates commits to feature branch
|
|
99
|
+
- Contrib user create a PR back to the origin/[default branch]
|
|
100
|
+
- CI pipeline activates and runs at least tests && build
|
|
101
|
+
-> On success PR can be merged to main by Maintainer
|
|
102
|
+
-> On fail PR needs updating until tests and build success
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
### Maintainer flow
|
|
106
|
+
|
|
107
|
+
- Maintainer decides that code on main is ready to release
|
|
108
|
+
- Mt pulls main
|
|
109
|
+
- Mt checks out new "release" branch
|
|
110
|
+
- Mt runs: pnpm changeset add
|
|
111
|
+
- Mt commits results when happy with the change set
|
|
112
|
+
- Mt run changeset version
|
|
113
|
+
[WIP]
|
|
114
|
+
|
|
77
115
|
## Roadmap
|
|
78
116
|
|
|
79
117
|
- Keep up with any future changes or additions to the [Bookwhen API](https://api.bookwhen.com/v2).
|
|
@@ -82,6 +120,3 @@ Thank you for helping maintain commit quality and consistency!
|
|
|
82
120
|
|
|
83
121
|
ISC License. See [LICENSE](LICENSE) for more information.
|
|
84
122
|
|
|
85
|
-
## Notice
|
|
86
|
-
|
|
87
|
-
This software is "unofficial" - its development is not affiliated with or funded by Bookwhen.
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jphil/bookwhen-client",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8",
|
|
4
4
|
"description": "",
|
|
5
5
|
"private": false,
|
|
6
|
-
"main": "
|
|
7
|
-
"module": "
|
|
8
|
-
"types": "
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"module": "dist/index.mjs",
|
|
8
|
+
"types": "dist/index.d.ts",
|
|
9
9
|
"keywords": [
|
|
10
10
|
"bookwhen",
|
|
11
11
|
"booking",
|
|
@@ -55,16 +55,18 @@
|
|
|
55
55
|
},
|
|
56
56
|
"scripts": {
|
|
57
57
|
"dev": "vitest",
|
|
58
|
-
"build": "
|
|
58
|
+
"build": "tsc",
|
|
59
59
|
"lint": "tsc",
|
|
60
60
|
"test": "vitest run",
|
|
61
|
-
"ci": "pnpm lint && pnpm test && pnpm build",
|
|
62
|
-
"release": "pnpm lint && pnpm test && pnpm build && changeset publish",
|
|
63
|
-
"commit": "cz",
|
|
64
61
|
"type-check": "tsc --noEmit",
|
|
62
|
+
"check-exports": "attw --pack . --ignore-rules=cjs-resolves-to-esm",
|
|
63
|
+
"prettier-check": "prettier --check 'src/**/*.ts'",
|
|
64
|
+
"format": "prettier --write 'src/**/*.ts' README.md",
|
|
65
65
|
"pre-commit": "pnpm lint && pnpm build",
|
|
66
|
+
"commit": "cz",
|
|
66
67
|
"prepush": "pnpm test",
|
|
67
|
-
"
|
|
68
|
-
"
|
|
68
|
+
"local-release": "changeset version && changeset publish",
|
|
69
|
+
"release": "pnpm lint && pnpm test && pnpm build && changeset publish",
|
|
70
|
+
"ci": "pnpm test && pnpm check-exports && pnpm build"
|
|
69
71
|
}
|
|
70
72
|
}
|