1.2.3 • Published 2 years ago

upcharts v1.2.3

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

UPCHARTS📈

UPCHARTS is a “wheel”(yeah, u konw what i mean!👀),it can help you with React Visualization Library rather than spending lots of time on how to configure these charts, and what you need to to is just input the data!

Getting Started

npm install upchart --save or yarn upchart, than you can import these instance in the React projects!

Development

Local

ADD LOCAL DEPENDENCY

  • cd example goto example directory
  • npm i add lots of npm's packages🙉

LOCAL DEVELOPMENT

  • npm run ex To start the example development
  • npm run dev To listen anything changes in ./src and move the whole src directory to ./example/src
  • npm run hbuild To listen anything changes in ./src and rebuild the npm

Attention, i have created the npm directory, so you can publish the npm package in this folder, so you can config the control.sh to do something, in this case to avoid some unless dependencies!

How to build?

  1. do npm install to import some dependences
  2. develop under src/ directory(or you can modify rollup.config.js -> input to change the rule)
  3. do npm run build to generate index.js on root,the publish it to the NPM platform

About

Support Typescript

Firstly, you need to npm install --save typescript @types/node @types/react @types/react-dom @types/jest and npm install --save-dev @rollup/plugin-typescript to support Typescript compile and package!

Then, we need to add some configs:

  • remove outDir in tsconfig.json, or you will caught some errors when packing
  • config types in package.json, which will take the type define file into the bundle
  • config files to open whitelist, used to publish the target files to npm

Attention: dependencies is required to support the .d.ts file, see publish for more details

React

In most case, you will not want to include some packages(like React, lodash etc) when bundle up.

You can config external: ["react", "react-dom"] in rollup.config.js to avoid this case, it will not the bundle up the whole react, and will replace with var React = require('react');, so you must ensure that you have included the react in your project!

1.2.3

2 years ago

1.2.2

3 years ago

1.2.0

3 years ago

1.1.26

3 years ago

1.1.24

3 years ago

1.1.18

3 years ago

1.1.12

3 years ago

1.1.22

3 years ago

1.1.20

3 years ago

1.1.16

3 years ago

1.1.14

3 years ago

1.1.8

3 years ago

1.1.10

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.0

3 years ago

1.0.10

3 years ago

1.1.2

3 years ago

1.0.2

3 years ago

1.0.8

3 years ago

1.0.6

3 years ago

1.0.4

3 years ago

1.0.1

3 years ago