kubi-code
v0.0.9
Published
Easiest way to sync code from [Kubi Design](https://kubi.design) app with your actual code-base
Downloads
4
Readme
Kubi Code
Easiest way to sync code from Kubi Design app with your actual code-base
- Get the package
npm install -g kubi-code
- Run
kubi-code
in your project codebase
kubi-code start
You'll be prompted to specify where
components
andpages
should be placedYou will be taken to Kubi Design app which will setup configuration link automatically
In the Kubi Design app go to Code export mode and enable automatic code syncing (you can specify individual files too)
Developing
- Pull the repo locally
- Run
yarn install
- Run
npm link
(so that you can callkubi-code
CLI command from anywhere in your console) - 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)