Skip to content
Snippets Groups Projects
Commit ee82c4e8 authored by Michal Malý's avatar Michal Malý
Browse files

Add shell script to build Molstar

parent 45449d18
No related branches found
No related tags found
No related merge requests found
#! /bin/sh
function fail() {
echo "ERROR: $1"
exit 1
}
function cpy_css() {
cp "src/apps/watlas/$1.css" ../ || fail "Cannot copy $1.css"
}
cd molstar || fail "Cannot cd into molstar directory"
npm install molstar || fail "Cannot install modules required to build Molstar"
npm run build || fail "Failed to build Molstar"
cp build/watlas/molstar.js ../ || fail "Cannot copy molstar.js"
cpy_css "molstar"
cpy_css "watlas-viewer"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment