0.0.9 • Published 9 months ago

kubi-code v0.0.9

Weekly downloads
-
License
-
Repository
-
Last release
9 months ago

Kubi Code

Easiest way to sync code from Kubi Design app with your actual code-base

  1. Get the package
npm install -g kubi-code
  1. Run kubi-code in your project codebase
kubi-code start
  1. You'll be prompted to specify where components and pages should be placed

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

  3. 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)