0.7.3 • Published 12 months ago
mc-react-structure-visualizer v0.7.3
Materials Cloud React Structure Visualizer
A React component to visualize structures on the Materials Cloud platform.
Install via
npm install mc-react-structure-visualizerNote: make sure all peerDependencies (defined in package.json) are installed in the host application!
Note: the library (i.e. npm package) only contains the code in src/StructureVisualizer folder. The rest of the code in src/ is for development/demo purposes.
Development
Using the demo page
For developing the library of components, start the demo page (in src\) by
npm install
npm run devBuilding and testing locally
To build the library and test it locally in an external application (before publishing to npm), use
npm run build
npm packwhich will create a .tgz file that can then be installed by the external application via
npm install /path/to/package-x.y.z.tgzPublishing a new version
To make a new version and publish to npm via GitHub Actions:
npm version <major/minor/patch>
git push --follow-tags