@abitechdev/openchasqui-emitter-bruno 0.1.0 → 0.1.1

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.
Files changed (2) hide show
  1. package/README.md +46 -7
  2. package/package.json +14 -7
package/README.md CHANGED
@@ -1,12 +1,51 @@
1
+ <p align="center">
2
+ <a href="https://github.com/abitech-dev/abitech-openchasqui-cli#readme"><img alt="OpenChasqui" src="https://raw.githubusercontent.com/abitech-dev/abitech-openchasqui-cli/main/.github/assets/logo-light.svg" width="320"></a>
3
+ </p>
4
+
1
5
  # @abitechdev/openchasqui-emitter-bruno
2
6
 
3
- Emits Bruno collections in the OpenCollection YAML format, with environments and tests.
7
+ [![npm](https://img.shields.io/npm/v/@abitechdev/openchasqui-emitter-bruno?color=c2410c&label=npm)](https://www.npmjs.com/package/@abitechdev/openchasqui-emitter-bruno)
8
+ [![CI](https://github.com/abitech-dev/abitech-openchasqui-cli/actions/workflows/ci.yml/badge.svg)](https://github.com/abitech-dev/abitech-openchasqui-cli/actions/workflows/ci.yml)
9
+ [![Apache-2.0](https://img.shields.io/badge/license-Apache--2.0-blue)](https://github.com/abitech-dev/abitech-openchasqui-cli/blob/main/LICENSE)
10
+
11
+ Genera la colección de Bruno en formato OpenCollection YAML, con entornos, carpetas y pruebas listas para `bru run`.
12
+
13
+ > **¿Solo quieres generar colecciones?** Instala el CLI,
14
+ > [`@abitechdev/openchasqui`](https://www.npmjs.com/package/@abitechdev/openchasqui), que ya incluye este paquete.
15
+
16
+ ## Instalación
17
+
18
+ ```bash
19
+ npm i @abitechdev/openchasqui-core @abitechdev/openchasqui-loader-openapi @abitechdev/openchasqui-emitter-bruno
20
+ pnpm add @abitechdev/openchasqui-core @abitechdev/openchasqui-loader-openapi @abitechdev/openchasqui-emitter-bruno
21
+ yarn add @abitechdev/openchasqui-core @abitechdev/openchasqui-loader-openapi @abitechdev/openchasqui-emitter-bruno
22
+ ```
23
+
24
+ Requiere Node.js 22 o superior.
25
+
26
+ ## Uso
27
+
28
+ ```ts
29
+ import { readFile } from "node:fs/promises";
30
+ import { run } from "@abitechdev/openchasqui-core";
31
+ import { openApiLoader } from "@abitechdev/openchasqui-loader-openapi";
32
+ import { brunoEmitter } from "@abitechdev/openchasqui-emitter-bruno";
33
+
34
+ const result = await run(
35
+ { version: 1, source: "openapi.yaml", targets: ["bruno"], output: "collections" },
36
+ {
37
+ reader: { readText: (path) => readFile(path, "utf8") },
38
+ plugins: [openApiLoader, brunoEmitter],
39
+ },
40
+ );
41
+ ```
42
+
43
+ La carpeta se abre en Bruno o se corre con `npx @usebruno/cli run --env dev`.
44
+
45
+ ## Documentación
4
46
 
5
- Part of [OpenChasqui](https://github.com/abitech-dev/abitech-openchasqui-cli/blob/main/README.en.md)
6
- ([en español](https://github.com/abitech-dev/abitech-openchasqui-cli#readme)), which generates API collections from
7
- OpenAPI. Most projects only need the command line,
8
- [`@abitechdev/openchasqui`](https://www.npmjs.com/package/@abitechdev/openchasqui).
47
+ [Español](https://github.com/abitech-dev/abitech-openchasqui-cli#readme) · [English](https://github.com/abitech-dev/abitech-openchasqui-cli/blob/main/README.en.md)
9
48
 
10
- ## License
49
+ ## Licencia
11
50
 
12
- Apache-2.0
51
+ [Apache-2.0](https://github.com/abitech-dev/abitech-openchasqui-cli/blob/main/LICENSE). Parte de [OpenChasqui](https://github.com/abitech-dev/abitech-openchasqui-cli).
package/package.json CHANGED
@@ -1,7 +1,14 @@
1
1
  {
2
2
  "name": "@abitechdev/openchasqui-emitter-bruno",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Emits Bruno collections in the OpenCollection YAML format, with environments and tests.",
5
+ "keywords": [
6
+ "openapi",
7
+ "bruno",
8
+ "opencollection",
9
+ "api-client",
10
+ "openchasqui"
11
+ ],
5
12
  "license": "Apache-2.0",
6
13
  "type": "module",
7
14
  "exports": {
@@ -25,13 +32,13 @@
25
32
  },
26
33
  "dependencies": {
27
34
  "yaml": "2.9.1",
28
- "@abitechdev/openchasqui-plugin-kit": "^0.1.0",
29
- "@abitechdev/openchasqui-spec": "^0.1.0"
35
+ "@abitechdev/openchasqui-plugin-kit": "^0.1.1",
36
+ "@abitechdev/openchasqui-spec": "^0.1.1"
30
37
  },
31
38
  "devDependencies": {
32
- "@abitechdev/openchasqui-generator-tests": "^0.1.0",
33
- "@abitechdev/openchasqui-generator-examples": "^0.1.0",
34
- "@abitechdev/openchasqui-loader-openapi": "^0.1.0",
35
- "@abitechdev/openchasqui-core": "^0.1.0"
39
+ "@abitechdev/openchasqui-core": "^0.1.1",
40
+ "@abitechdev/openchasqui-generator-examples": "^0.1.1",
41
+ "@abitechdev/openchasqui-generator-tests": "^0.1.1",
42
+ "@abitechdev/openchasqui-loader-openapi": "^0.1.1"
36
43
  }
37
44
  }