0.4.0 • Published 21 days ago

@powsybl/diagram-viewer v0.4.0

Weekly downloads
-
License
MPL-2.0
Repository
github
Last release
21 days ago

powsybl-diagram-viewer

Typescript library to integrate a powsybl svg diagram in a javascript project. The library is built with the Vite bundler. Node from v18+ is required to build with Vite.

Installation using npm:
'npm install @powsybl/diagram-viewer'

For developers

For development purpose, to install this library locally from an app, you should run these commands in the library project :

  • npm install
  • npm run build
  • npm pack

Then in the app project :

  • npm install {PATH_TO_LIBRARY}/powsybl-diagram-viewer-{LIBRARY_VERSION}.tgz

Warning : with Create React App, we realised the library was not updating correctly if you try to install the library multiple times. To fix this, run this command from the app after running "npm install"

  • rm -Rf node_modules/.cache

For integrators

If you want to deploy a new version of powsybl-diagram-viewer in the NPM package registry, you need to follow the steps below:

  • Update to the new version in package.json (example 0.6.0)
  • Update the package-lock.json: npm install
  • Commit the package.json and package-lock.json files, push to a branch, make a PR, have it reviewed and merged to main.
  • Pull and checkout main on your last commit.
  • Tag your last commit : git tag <tag> (example: git tag v0.6.0)
  • Push tag : git push origin <tag>

  • (Optional) Checkout the tag in a fresh repo copy : cd $(mktemp -d) && git clone https://github.com/powsybl/powsybl-diagram-viewer.git then cd powsybl-diagram-viewer && git checkout <tag>
  • (Optional) Test your package: npm install

Notes :

  • Check license-checker-config.json for license white list and exclusion. If you need to update this list, please inform organization's owners.
  • We need to exclude some packages for now :
    • @mapbox/jsonlint-lines-primitives@2.0.2 is a special license
    • cartocolor@4.0.2 is Creative Commons but not correctly described in the package
    • rw@0.1.4 is BSD-3-Clause but not correctly described in the package

0.4.0

21 days ago

0.3.5

29 days ago

0.3.4

1 month ago

0.3.3

1 month ago

0.3.2

2 months ago

0.3.1

2 months ago

0.3.0

2 months ago

0.2.0

2 months ago

0.1.11

10 months ago

0.1.10

11 months ago

0.1.9

12 months ago

0.1.8

1 year ago

0.1.7

1 year ago

0.1.4

1 year ago

0.1.6

1 year ago

0.1.5

1 year 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