Component library for Konstellation projects
npm install --save kwc
or
yarn add kwc
Add styles at the index of your website
import 'kwc/dist/index.css';
You can now import the components directly from the library
import React from 'react'
import { Button } from 'kwc'
function Example() {
render() {
return <Button />
}
}
In case you want to deploy the documentation site for this project you first need to install the dependencies:
yarn install
or
npm install
And then you can deploy the docs by executing this command:
yarn docz dev
or
npm run docz dev
To develop or update KWC components we need to follow the next steps:
Go to kwc/packages/konstellation-web-components
and start the live build script:
yarn live-build
In the same directory link the package:
yarn link
Go to the dev environment kwc/dev-env
and link the previous package:
yarn link kwc
Start the application:
yarn start
Note: remember to install the dependencies first using
yarn
oryarn install
MIT © konstellation-io