chrt-markers

0.0.22 • Public • Published

chrt-markers

Component for the creations of markers in XY charts

How to build

Install the dependencies

npm install

Build the package

npm build

Developing

If you want to develop and see the changes reloaded live into another app you can use the watch script

npm run watch

Use it as a module

Method 1 - tgz package

Use the tgz provided in the repository

You can use the chrt-markers-VERSION.tgz package. The following commands will expand the chrt module in the node_modules folder of your project. Ready to be used with the usual import command:

cp chrt-markers-VERSION.tgz SOMEWHERE
cd myproject
npm install SOMEWHERE/chrt-markers-VERSION.tgz

Create a tgz npm package

You can create a package for testing with

npm pack

This command will create a file called chrt-markers-VERSION.tgz in the root folder of chrt.

Method 2 - symlinked package

Create a global node module

npm link

This creates chrt-markers module inside your global node_modules so that you can import it

Use the module in a different app

npm link chrt

This will create a sym link to the module created in your global.

Use it in your code

After having installed or sym-linked the node you can use it as usual

import { chrtMarkers } from 'chrt-markers';

Testing

Unit test with Jest

Run npm run test to run all the tests on the code with Jest.

npm run test

To run only one test:

npx jest test/scales/scaleLinear.test.js

/chrt-markers/

    Package Sidebar

    Install

    npm i chrt-markers

    Homepage

    chrt.io

    Weekly Downloads

    18

    Version

    0.0.22

    License

    MIT

    Unpacked Size

    33.8 kB

    Total Files

    17

    Last publish

    Collaborators

    • chrt