@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 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](API tokens setup area of your Bookwhen account).
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
- Contributions are welcome! (proper guidelines to be written)
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
- ### Setting Up Husky for Contributions
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
@@ -1,3 +1 @@
1
- declare const test: () => void;
2
-
3
- export { test };
1
+ export declare const test: () => void;
package/dist/index.js CHANGED
@@ -1,7 +1,4 @@
1
- // src/index.ts
2
- var test = () => {
3
- console.log("hello test");
4
- };
5
- export {
6
- test
1
+ export const test = () => {
2
+ console.log('hello test');
7
3
  };
4
+ //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@jphil/bookwhen-client",
3
- "version": "0.0.4",
3
+ "version": "0.0.8",
4
4
  "description": "",
5
5
  "private": false,
6
- "main": "/dist/index.js",
7
- "module": "/dist/index.mjs",
8
- "types": "/dist/index.d.ts",
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": "tsup src/index.ts --format esm --dts",
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
- "prettier": "prettier --check 'src/**/*.ts'",
68
- "format": "prettier --write 'src/**/*.ts' README.md"
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
  }