Easy and fast base library for ui components, If you want to build UI lib for your company or project - all you have to do is to clone the project and create your own ui component library!
- Dev Env in express / storybook react as dev env & doc.
- Tests ENV in Enzyme & mocha & growl suport.
- CI integratoin.
- Easy webpack configuration structure (see webpack per env files and webpack folder).
- HMR with webpack and react hot loader.
- Clone the project locally.
- Pick a name for your UI component library.
- Run
Yarn install
(or justyarn
). - search within the code for
<your_lib_name>
and replace it with your library name. - Run
Yarn start
- this will be our development mode. - Craete a folder inside
src
(or duplicate one of the folders). - Go to
http://localhost:5566/dev/ComponentName
(changeComponentName
to your new component).
or you can use react storybook dev env:
run yarn storybook
and go to http://localhost:6006/.
- First clone the project locally.
- Run
Yarn Install
(or justyarn
). - Run
Yarn start
- this will be our development mode. - Craete a folder inside
src
(or duplicate one of the folders). - Go to
http://localhost:5566/dev/ComponentName
(changeComponentName
to your new component).
- Install with
npm install <your_lib_name> --save
. - Import to your "js" file:
import { Component } from '<your_lib_name>';
. - In your project's code, use like that:
<Component/>
.
- Go to
<your_lib_name>
folder. - run
npm link
. - Go to the project where you want to use the component - and write
npm link <your_lib_name>
. - Run
yarn build:watch
- now each time you change your component it should automaticlly update inside your own project. npm link creates a symlink inside your project'snode_modules
folder to your local<your_lib_name>
library and each time you update<your_lib_name>
locally you update it within the project you work on.
- Work with webpack 2 and tree shaking.
- Inside
index.js
load theComponentsList
across all components for easy and fast access (as dropdown with a small icon on the top right).