Lerna monorepo containing Open Chemistry npm packages.
@openchemistry/types
@openchemistry/utils
@openchemistry/moljs-es
@openchemistry/molecule-moljs
@openchemistry/molecule-vtkjs
@openchemistry/volume-controls
@openchemistry/molecule-menu
@openchemistry/vibrational-spectrum
@openchemistry/molecule
molecule-vtkjs
, molecule-moljs
, vibrational-spectrum
and molecule-menu
.@openchemistry/energy-plot
@openchemistry/sample-data
@openchemistry/girder-client
@openchemistry/girder-redux
@openchemistry/girder-ui
@openchemistry/rest
@openchemistry/redux
@openchemistry/sagas
To build all the packages in the monorepo, follow the steps below.
Clone the repository:
git clone git@github.com:OpenChemistry/oc-web-components.git
Install the monorepo dependencies and bootstrap the various packages:
cd oc-web-components
yarn install
yarn run bootstrap
Build the packages:
yarn run build
To use the local dev version of the Open Chemistry packages within the mongochem project follow the steps below.
NOTE: When linking the packages in development, yarn
must be used instead of npm
.
Build all the packages in the monorepo. See instructions above.
Create local links for all the packages:
# From the oc-web-components root directory
export OPENCHEMISTRY_PACKAGES=$(ls packages)
for package in $OPENCHEMISTRY_PACKAGES; do \
cd packages/${package} && \
yarn unlink && \
yarn link && \
cd ../../
done;
Consume the linked packages in the mongochemclient:
# From the mongochemclient root directory
yarn install
for package in $OPENCHEMISTRY_PACKAGES; do \
yarn link @openchemistry/${package}
done;
yarn run start