0.4.19 • Published 2 years ago

devlibx-ui v0.4.19

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

Setup

  1. Install required packages
npm install --save-dev @babel/preset-react

How to publish a NPM react package

  1. Add the babel.config.js (you can copy from this project)

  2. Edit package.json

"name": "devlibx-ui",
"version": "0.1.5",
"private": false,
"main": "dist/index.js",
"module": "dist/index.js",

Also edit scripts section in package.json

"build": "rm -rf dist && NODE_ENV=production babel src/components --out-dir dist --copy-files"

We need to build the package and compile JSX to native JS. For that we use bable, here out build command will compile the js file to final files and will push in under dist folder

Publish

Make changes and run following commands

sh publish.sh

Common errors

  1. When you install this lib from source code for debug and development, then there are 2 copies of ract used. first from your app, and second from yor lib. This can cause a problem. To void this issue, use the following hack

Point the react in your application project to point to the react module where you have checked-out this project.

"dependencies": {
    ...
    "react": "file:../devlibx-ui/node_modules/react",
    ...
}

Kafka broker input

This will show a input to take kafka broker URL. 1. leftSideTitle - label to show 2. helpStr - tooltip for help

<KafkaBroker helpStr="You need to pass the broker to use" leftSideTitle="Broker URL"></KafkaBroker>

kafka topic input

This will show a input to take kafka topic.

<KafkaTopic 
    helpStr="Provide your topic name." 
    leftSideTitle="Kafka Topic" 
    topic="$INTERNAL_TOPIC"
/>

Version

v0.4.7

0.4.19

2 years ago

0.4.18

2 years ago

0.4.17

2 years ago

0.4.16

2 years ago

0.4.15

2 years ago

0.4.14

2 years ago

0.4.13

2 years ago

0.4.12

2 years ago

0.4.11

2 years ago

0.4.10

2 years ago

0.4.9

2 years ago

0.4.8

2 years ago

0.4.7

2 years ago

0.4.6

2 years ago

0.4.5

2 years ago

0.4.4

2 years ago

0.4.3

2 years ago

0.4.2

2 years ago

0.4.1

2 years ago

0.4.0

2 years ago

0.3.0

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago