0.105.4 • Published 3 years ago
@gokiteam/uikit v0.105.4
Supported platforms
web
development
after clone the project please run this command
yarn add or
npm installfor run the dev server and see the results on the browser run
npm run storybookor
yarn storybookContributing
- all components exist
in src/componentsfolder you can add your own components and export it inindex.js - please check folder structure and use the same structure for new components,
- run
yarn buid:libto re-generate dist. - run
yarn releaseto build & publish on npm.
How to use
make sure you have configured .npmrc & have GOKI_NPM_TOKEN in your environment variables.
- in order to create an access token, open your gitlab profile & go to
Settings > Personal Access Tokens& create a new token withread registry(orapi) scope. - your account should have access to the backpack registry project
# .npmrc
//gitlab.com/api/v4/projects/:_authToken="${GOKI_NPM_TOKEN}"
//gitlab.com/api/v4/projects/31892934/packages/npm/:_authToken="${GOKI_NPM_TOKEN}"
@backpack:registry=https://gitlab.com/api/v4/projects/31892934/packages/npm/
always-auth=trueand install the package:
yarn add @backpack/web-uikitor
npm install @backpack/web-uikitHow to use it in your project
- import and use the component you want in your react app also you can check the example app in exmaple
import {Button} from '@backpack/web-uikit'
const icon = (
<Button
onClick={() => { }}
disabled={false}
loading={false}
type="primary">
Primary
</Button>
)Publish Storybook
first you need to build the storybook, run
yarn build-storybookuse chromatic to publish the storybook
yarn chromaticthen you can see the result and share it in the chromatic
0.105.4
3 years ago