0.0.44 • Published 5 years ago

@opium-react/components v0.0.44

Weekly downloads
39
License
MIT
Repository
github
Last release
5 years ago

React Ui component library for the web

Quick start

Using NPM

Install button module to your project.

npm install @opium-react/button

Using button component

Import Button module to instantiate button component.

import Button from '@opium-react/button';

Using the module in your app

<Button>Button text</Button>

Please check the storybook for more reference.

For development

Install node_modules for all packages

Running npm install will install node_modules on the root package.json and then run lerna bootstrap to install the dependencies of each package

npm install

Start storybook

npm start

Build app

npm run build

Publish app

npm run publish

Add dependencies to modules

lerna add {some_new_module} --scope={to_module}

Link opium-generator

opium-generator will be used to create components boiler plate code. opium-generator can be installed locally by running the commands

$ cd opium-generator
$ npm link

Create a module

opium-generator create component_name
lerna exec --scope @opium-react/workflow -- babel src -d dist --ignore src/__tests__/,src/__stories__/ &&
lerna exec --scope @opium-react/layout -- babel src -d dist --ignore src/__tests__/,src/__stories__/ &&
lerna exec --scope @opium-react/page -- babel src -d dist --ignore src/__tests__/,src/__stories__/ &&

lerna exec --scope @opium-react/page -- node-sass src/style.scss --output src &&
lerna exec --scope @opium-react/page -- node-sass src/style.scss --output dist
0.0.44

5 years ago

0.0.43

5 years ago

0.0.42

5 years ago

0.0.41

5 years ago

0.0.40

5 years ago

0.0.39

5 years ago

0.0.38

5 years ago

0.0.37

5 years ago

0.0.36

5 years ago

0.0.35

5 years ago

0.0.34

5 years ago

0.0.33

5 years ago

0.0.32

5 years ago

0.0.30

5 years ago

0.0.29

5 years ago

0.0.27

5 years ago

0.0.26

5 years ago

0.0.25

5 years ago

0.0.23

5 years ago

0.0.22

5 years ago

0.0.21

5 years ago

0.0.20

5 years ago

0.0.19

5 years ago

0.0.18

5 years ago

0.0.17

5 years ago

0.0.16

5 years ago

0.0.15

5 years ago

0.0.14

5 years ago

0.0.12

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago