# kubi-code

> Easiest way to sync code from [Kubi Design](https://kubi.design) app with your actual code-base

Latest version **0.0.9** (published 2023-08-13) · 0 weekly downloads

## Install

```sh
npm install kubi-code
pnpm add kubi-code
yarn add kubi-code
bun add kubi-code
```

Provides the command `kubi-code`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.9 |
| Published | 2023-08-13 |
| First published | 2023-05-02 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | ESM |
| Dependencies | 19 |
| Unpacked size | 9.4 KB |
| Known vulnerabilities | 0 (+16 in 3 direct dependencies) |
| Install scripts | no |
| Maintainers | bytasv |

## Links

- npm: https://www.npmjs.com/package/kubi-code
- npm.io page: https://npm.io/package/kubi-code

## Dependencies (19)

- [cors](https://npm.io/package/cors.md) ^2.8.5
- [diff](https://npm.io/package/diff.md) ^5.1.0
- [jade](https://npm.io/package/jade.md) ~1.11.0
- [open](https://npm.io/package/open.md) ^9.1.0
- [debug](https://npm.io/package/debug.md) ~2.6.9
- [patch](https://npm.io/package/patch.md) ^0.0.1
- [morgan](https://npm.io/package/morgan.md) ~1.9.1
- [multer](https://npm.io/package/multer.md) ^1.4.5-lts.1
- [express](https://npm.io/package/express.md) ~4.16.1
- [nodemon](https://npm.io/package/nodemon.md) ^2.0.22
- [fs-extra](https://npm.io/package/fs-extra.md) ^11.1.1
- [get-port](https://npm.io/package/get-port.md) ^6.1.2
- [inquirer](https://npm.io/package/inquirer.md) ^9.1.5
- [sanitiser](https://npm.io/package/sanitiser.md) ^0.0.2
- [body-parser](https://npm.io/package/body-parser.md) ^1.20.2
- [http-errors](https://npm.io/package/http-errors.md) ~1.6.3
- [cookie-parser](https://npm.io/package/cookie-parser.md) ~1.4.4
- [@purfect/bin-helper](https://npm.io/package/@purfect/bin-helper.md) ^0.1.0
- [@npmcli/package-json](https://npm.io/package/@npmcli/package-json.md) ^4.0.1

## Recent versions

- 0.0.9 (latest) — 2023-08-13
- 0.0.8 — 2023-06-20
- 0.0.7 — 2023-06-14
- 0.0.6 — 2023-05-17
- 0.0.5 — 2023-05-16
- 0.0.4 — 2023-05-04
- 0.0.3 — 2023-05-03
- 0.0.2 — 2023-05-02
- 0.0.1 — 2023-05-02

## README

# Kubi Code

Easiest way to sync code from [Kubi Design](https://kubi.design) app with your actual code-base

1. Get the package
```bash
npm install -g kubi-code
```

2. Run `kubi-code` in your project codebase
```bash
kubi-code start
```

3. You'll be prompted to specify where `components` and `pages` should be placed

4. You will be taken to Kubi Design app which will setup configuration link automatically

5. In the Kubi Design app go to Code export mode and enable automatic code syncing (you can specify individual files too)

## Developing

1. Pull the repo locally
2. Run `yarn install`
3. Run `npm link` (so that you can call `kubi-code` CLI command from anywhere in your console)
4. Run `kubi-code start --host http://localhost:3001 --dev true --id <PROJECT-ID>` in your project codebase (`--host` option chooses your local Kubi Design version, you can ommit it if you want to use production version, `--dev` option makes sure that service is restarted when files are changed, project `--id` is optional)

---
_Source: https://npm.io/package/kubi-code · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
