@powsybl/diagram-viewer v0.4.0
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
thencd powsybl-diagram-viewer && git checkout <tag>
- (Optional) Test your package:
npm install
- Build the package - npm will publish the README.md, the package.json and the dist directory you just generate :
npm run build
- Login on the command line to the npm registry:
npm login
- Publish the package:
npm publish
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 licensecartocolor@4.0.2
is Creative Commons but not correctly described in the packagerw@0.1.4
is BSD-3-Clause but not correctly described in the package
21 days ago
29 days ago
1 month ago
1 month ago
2 months ago
2 months ago
2 months ago
2 months ago
10 months ago
11 months ago
12 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago