0.0.9 • Published 2 years ago
kubi-code v0.0.9
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-codein your project codebase
kubi-code startYou'll be prompted to specify where
componentsandpagesshould 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-codeCLI command from anywhere in your console) - Run
kubi-code start --host http://localhost:3001 --dev true --id <PROJECT-ID>in your project codebase (--hostoption chooses your local Kubi Design version, you can ommit it if you want to use production version,--devoption makes sure that service is restarted when files are changed, project--idis optional)