zod-openapi 0.0.0-semantically-released

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ ### MIT License
2
+
3
+ Copyright (c) 2020 SEEK
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,128 @@
1
+ # zod-openapi
2
+
3
+ [![Powered by skuba](https://img.shields.io/badge/🤿%20skuba-powered-009DC4)](https://github.com/seek-oss/skuba)
4
+
5
+ This package is intended to be public on [seek-oss].
6
+ To create an internal package,
7
+ run `skuba init` and select the `private-npm-package` template.
8
+
9
+ Next steps:
10
+
11
+ 1. [ ] Read [SEEK's Open Source RFC].
12
+ 2. [ ] Create a new repository in the [seek-oss] GitHub organisation.
13
+ 3. [ ] Push local commits to the upstream GitHub branch.
14
+ 4. [ ] Configure [GitHub repository settings].
15
+ 5. [ ] Keep dependencies up to date with [Renovate];
16
+ request installation in [#open-source].
17
+ 6. [ ] Delete this checklist 😌.
18
+
19
+ [#open-source]: https://slack.com/app_redirect?channel=C39P1H2SU
20
+ [github repository settings]: https://github.com/seek-oss/zod-openapi/settings
21
+ [renovate]: https://github.com/apps/renovate
22
+ [seek's open source rfc]: https://rfc.skinfra.xyz/RFC016-Open-Source.html
23
+
24
+ ## API
25
+
26
+ ### `log`
27
+
28
+ Writes the module name to stdout.
29
+ Thrilling stuff.
30
+
31
+ ```typescript
32
+ import { log } from 'zod-openapi';
33
+
34
+ log();
35
+ ```
36
+
37
+ ## Development
38
+
39
+ ### Prerequisites
40
+
41
+ - Node.js LTS
42
+ - Yarn 1.x
43
+
44
+ ```shell
45
+ yarn install
46
+ ```
47
+
48
+ ### Test
49
+
50
+ ```shell
51
+ yarn test
52
+ ```
53
+
54
+ ### Lint
55
+
56
+ ```shell
57
+ # Fix issues
58
+ yarn format
59
+
60
+ # Check for issues
61
+ yarn lint
62
+ ```
63
+
64
+ ### Package
65
+
66
+ ```shell
67
+ # Compile source
68
+ yarn build
69
+
70
+ # Review bundle
71
+ npm pack
72
+ ```
73
+
74
+ ## Release
75
+
76
+ This package is published to the public npm registry with a GitHub Actions [release workflow].
77
+
78
+ The workflow runs on select branches:
79
+
80
+ ```yaml
81
+ on:
82
+ push:
83
+ branches:
84
+ # add others as necessary
85
+ - beta
86
+ - master
87
+ # - alpha
88
+ ```
89
+
90
+ It depends on this repo being hosted on [seek-oss] with appropriate access.
91
+
92
+ To set up this repo for publishing, follow the instructions in our [OSS npm package guidance].
93
+
94
+ ### Commit messages
95
+
96
+ This package is published with **[semantic-release]**, which requires a particular commit format to manage semantic versioning.
97
+ You can run the interactive `yarn commit` command in place of `git commit` to generate a compliant commit title and message.
98
+ If you use the `Squash and merge` option on pull requests, take extra care to format the squashed commit in the GitHub UI before merging.
99
+
100
+ ### Releasing latest
101
+
102
+ Commits to the `master` branch will be released with the `latest` tag,
103
+ which is the default used when running `npm install` or `yarn install`.
104
+
105
+ ### Releasing other dist-tags
106
+
107
+ **[semantic-release]** prescribes a branch-based workflow for managing [distribution tags].
108
+
109
+ You can push to other branches to manage betas, maintenance updates to prior major versions, and more.
110
+
111
+ Here are some branches that **semantic-release** supports by default:
112
+
113
+ | Git branch | npm dist-tag |
114
+ | :--------- | :----------- |
115
+ | master | latest |
116
+ | alpha | alpha |
117
+ | beta | beta |
118
+ | next | next |
119
+ | 1.x | release-1.x |
120
+
121
+ For more information, see the **semantic-release** docs on [triggering a release].
122
+
123
+ [distribution tags]: https://docs.npmjs.com/adding-dist-tags-to-packages
124
+ [oss npm package guidance]: https://github.com/SEEK-Jobs/seek-oss-ci/blob/master/NPM_PACKAGES.md#access-to-publish-to-npm
125
+ [release workflow]: .github/workflows/release.yml
126
+ [seek-oss]: https://github.com/seek-oss
127
+ [semantic-release]: https://github.com/semantic-release/semantic-release
128
+ [triggering a release]: https://github.com/semantic-release/semantic-release/#triggering-a-release
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.log = void 0;
4
+ /**
5
+ * Writes the module name to stdout.
6
+ * Thrilling stuff.
7
+ */
8
+ const log = () =>
9
+ /* eslint-disable-next-line no-console */
10
+ console.log('zod-openapi');
11
+ exports.log = log;
12
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACI,MAAM,GAAG,GAAG,GAAG,EAAE;AACtB,yCAAyC;AACzC,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;AAFhB,QAAA,GAAG,OAEa"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Writes the module name to stdout.
3
+ * Thrilling stuff.
4
+ */
5
+ export const log = () =>
6
+ /* eslint-disable-next-line no-console */
7
+ console.log('zod-openapi');
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,CAAC,MAAM,GAAG,GAAG,GAAG,EAAE;AACtB,yCAAyC;AACzC,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Writes the module name to stdout.
3
+ * Thrilling stuff.
4
+ */
5
+ export declare const log: () => void;
package/package.json ADDED
@@ -0,0 +1,54 @@
1
+ {
2
+ "name": "zod-openapi",
3
+ "version": "0.0.0-semantically-released",
4
+ "description": "Zod OpenAPI Plugin",
5
+ "homepage": "https://github.com/seek-oss/zod-openapi#readme",
6
+ "bugs": {
7
+ "url": "https://github.com/seek-oss/zod-openapi/issues"
8
+ },
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+ssh://git@github.com/seek-oss/zod-openapi.git"
12
+ },
13
+ "license": "MIT",
14
+ "sideEffects": false,
15
+ "main": "./lib-commonjs/index.js",
16
+ "module": "./lib-es2015/index.js",
17
+ "types": "./lib-types/index.d.ts",
18
+ "files": [
19
+ "lib*/**/*.d.ts",
20
+ "lib*/**/*.js",
21
+ "lib*/**/*.js.map",
22
+ "lib*/**/*.json"
23
+ ],
24
+ "scripts": {
25
+ "build": "skuba build-package",
26
+ "commit": "cz",
27
+ "format": "skuba format",
28
+ "lint": "skuba lint",
29
+ "release": "yarn build && skuba release",
30
+ "test": "skuba test",
31
+ "test:ci": "skuba test --coverage",
32
+ "test:watch": "skuba test --watch"
33
+ },
34
+ "config": {
35
+ "commitizen": {
36
+ "path": "cz-conventional-changelog"
37
+ }
38
+ },
39
+ "dependencies": {},
40
+ "devDependencies": {
41
+ "@types/node": "^16.18.3",
42
+ "commitizen": "^4.2.4",
43
+ "skuba": "6.0.0"
44
+ },
45
+ "engines": {
46
+ "node": ">=16.11"
47
+ },
48
+ "skuba": {
49
+ "entryPoint": "src/index.ts",
50
+ "template": "oss-npm-package",
51
+ "type": "package",
52
+ "version": "6.0.0"
53
+ }
54
+ }