Web application to visualize proteins, ligands and pharmacophores. Web application is used in Molviewer KNIME nodes.
This project was bootstrapped with Create React App using scripts package @nlesc/react-scripts.
- yarn, https://yarnpkg.com/en/
yarn install
Development needs to be done together with Molviewer KNIME nodes. The KNIME nodes will use the MolViewer global variable to render one of the app classes.
Use Visual Studio Code v1.5 or later. When editing *.tsx files use Typescript inside the repo and not the Typescript shipped with VSCode.
yarn test
To also get coverage run
yarn test -- --coverage --no-cache -w 1
The coverage reports will be written to coverage/remapped
directory.
yarn prettier
Will format files in src/
.
See https://github.com/prettier/prettier how to setup your editor.
yarn lint
Enable tslinting inside Visual Studio Code with
- Open the command palette CRTL + P
- Run
ext install tslint
First build with:
yarn build
Then copy essential build files to the knime-molviewer repo:
./deploy.sh