Skip to content

Commit

Permalink
cli: send bot config to backend in botonic deploy #BLT-1008 (#2884)
Browse files Browse the repository at this point in the history
## Description

When deploying a bot the cli will get bot config from the @Botonic
packages installed, npm and node version .
This config is send to backend in deploy endpoint. 

## Context

This config will be used to read bot information from the flow builder
frontend.

## Approach taken / Explain the design

PRs merged in this PR:

- #2895
- #2894
- #2892
- #2885
  • Loading branch information
Iru89 authored Oct 1, 2024
1 parent fd86324 commit e08d09f
Show file tree
Hide file tree
Showing 8 changed files with 440 additions and 259 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,16 @@ All notable changes to Botonic will be documented in this file.
Click to see more.
</summary>

## [0.30.X] - aaaa-mm-dd
## [0.30.X] - 2024-10-03

### Added

### Changed

- [@botonic/cli](https://www.npmjs.com/package/@botonic/cli)

- [use new endpoint v2 to deploy bots](https://github.com/hubtype/botonic/pull/2884)

### Fixed

</details>
Expand Down
27 changes: 16 additions & 11 deletions packages/botonic-cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,16 @@ Build Chatbots Using React
[![License](https://img.shields.io/npm/l/@botonic/cli.svg)](https://github.com/hubtype/botonic/blob/master/package.json)

<!-- toc -->
* [@botonic/cli](#botoniccli)
* [Usage](#usage)
* [Commands](#commands)

- [@botonic/cli](#botoniccli)
- [Usage](#usage)
- [Commands](#commands)
<!-- tocstop -->

# Usage

<!-- usage -->

```sh-session
$ npm install -g @botonic/cli
$ botonic COMMAND
Expand All @@ -27,19 +29,21 @@ USAGE
$ botonic COMMAND
...
```

<!-- usagestop -->

# Commands

<!-- commands -->
* [`botonic deploy [PROVIDER]`](#botonic-deploy-provider)
* [`botonic destroy [PROVIDER]`](#botonic-destroy-provider)
* [`botonic help [COMMAND]`](#botonic-help-command)
* [`botonic login`](#botonic-login)
* [`botonic logout`](#botonic-logout)
* [`botonic new NAME [PROJECTNAME]`](#botonic-new-name-projectname)
* [`botonic serve`](#botonic-serve)
* [`botonic test`](#botonic-test)

- [`botonic deploy [PROVIDER]`](#botonic-deploy-provider)
- [`botonic destroy [PROVIDER]`](#botonic-destroy-provider)
- [`botonic help [COMMAND]`](#botonic-help-command)
- [`botonic login`](#botonic-login)
- [`botonic logout`](#botonic-logout)
- [`botonic new NAME [PROJECTNAME]`](#botonic-new-name-projectname)
- [`botonic serve`](#botonic-serve)
- [`botonic test`](#botonic-test)

## `botonic deploy [PROVIDER]`

Expand Down Expand Up @@ -192,4 +196,5 @@ EXAMPLE
```

_See code: [lib/commands/test.js](https://github.com/hubtype/botonic/blob/v0.30.0/lib/commands/test.js)_

<!-- commandsstop -->
2 changes: 1 addition & 1 deletion packages/botonic-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"cloc": "../../scripts/qa/cloc-package.sh .",
"prepublishOnly": "npm i && npm run build",
"build": "rm -rf lib && ../../node_modules/.bin/tsc -p tsconfig.json",
"build:watch": "rm -rf lib && ./node_modules/.bin/tsc -w",
"build:watch": "rm -rf lib && ../../node_modules/.bin/tsc -w",
"postpack": "rm -f oclif.manifest.json",
"prepack": "oclif-dev manifest && oclif-dev readme",
"version": "oclif-dev readme && git add README.md",
Expand Down
Loading

0 comments on commit e08d09f

Please sign in to comment.