From cddfac55038a066dfdc78f56195a5d76ba43172f Mon Sep 17 00:00:00 2001 From: Hans Pagel Date: Tue, 30 Jan 2024 00:28:33 +0100 Subject: [PATCH] chore: update docs --- CONTRIBUTING | 37 +++++++++++++++++++++++++++++ LICENSE | 21 +++++++++++++++++ README.md | 53 +++++++++++++++++++++++++++++++++++++++++- packages/cli/README.md | 3 +-- 4 files changed, 111 insertions(+), 3 deletions(-) create mode 100644 CONTRIBUTING create mode 100644 LICENSE diff --git a/CONTRIBUTING b/CONTRIBUTING new file mode 100644 index 00000000..77a52253 --- /dev/null +++ b/CONTRIBUTING @@ -0,0 +1,37 @@ +# Contributing + +Contributions are welcome. We’re using [pnpm](https://pnpm.io/). + +Install all dependencies: +`$ pnpm install` + +Run the cli: +`$ pnpm @scalar/cli --version` + +Build all packages: +`$ pnpm turbo build` + +We require a semantic PR title, e. g.: + +``` +docs: Add information about semantic commits +^ ^ +| |__ Subject +|________ Prefix +``` + +Here are all the prefixes you need to know: + +| Prefix | Description | +| -------- | ----------------------------------------------------------------------------------------------------------- | +| feat | A new feature | +| fix | A bug fix | +| docs | Documentation only changes | +| style | Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc) | +| refactor | A code change that neither fixes a bug nor adds a feature | +| perf | A code change that improves performance | +| test | Adding missing tests or correcting existing tests | +| build | Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm) | +| ci | Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs) | +| chore | Other changes that don't modify src or test files | +| revert | Reverts a previous commit | diff --git a/LICENSE b/LICENSE new file mode 100644 index 00000000..2a51663d --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2024 Scalar + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md index 2e5ddfca..0e9855ce 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,54 @@ # Scalar CLI -WIP :) \ No newline at end of file +[![CI](https://github.com/scalar/cli/actions/workflows/ci.yml/badge.svg)](https://github.com/scalar/cli/actions/workflows/ci.yml) +[![Release](https://github.com/scalar/cli/actions/workflows/release.yml/badge.svg)](https://github.com/scalar/cli/actions/workflows/release.yml) +[![Contributors](https://img.shields.io/github/contributors/scalar/cli)](https://github.com/scalar/cli/graphs/contributors) +[![GitHub License](https://img.shields.io/github/license/scalar/cli)](https://github.com/scalar/cli/blob/main/LICENSE) +[![Discord](https://img.shields.io/discord/1135330207960678410?style=flat&color=5865F2)](https://discord.gg/8HeZcRGPFS) + +Command-line interface to work with OpenAPI files + +## Quickstart + +```bash +npx @scalar/cli help +``` + +## Installation + +```bash +npm install -g @scalar/cli +scalar --version +``` + +## Usage + +```bash +scalar init +scalar format openapi.json +scalar validate openapi.json +scalar reference openapi.json +scalar mock openapi.json +scalar share openapi.json +``` + +## Features + +* Format & validate OpenAPI files +* Upload your OpenAPI files to Scalar +* Get a fully mocked API for testing purposes +* Preview your API reference + +[Full documentation](https://github.com/scalar/cli/blob/main/packages/cli/README.md) + +## Community + +We are API nerds. You too? Let’s chat on Discord: + +## Contributors + +Contributions are welcome! Read [`CONTRIBUTING`](https://github.com/scalar/cli/blob/main/CONTRIBUTING). + +## License + +The source code in this repository is licensed under [MIT](https://github.com/scalar/cli/blob/main/LICENSE). \ No newline at end of file diff --git a/packages/cli/README.md b/packages/cli/README.md index c82e4e17..1cfedcf5 100644 --- a/packages/cli/README.md +++ b/packages/cli/README.md @@ -1,7 +1,6 @@ # Scalar CLI -> [!CAUTION] -> WIP, not published yet +Command-line interface to work with OpenAPI files ## Installation