We need to pull cornerstone-wado-image-loader files from hoisted node_modules

This commit is contained in:
dannyrb 2019-07-16 13:11:16 -04:00
parent bc8d505a0a
commit c3fead1ca9

View File

@ -71,7 +71,7 @@ mkdir ./docs/latest/_book/demo/
# Install build deps and all monorepo package dependencies. Yarn Workspaces
# should also symlink all projects appropriately
# yarn install --no-ignore-optional --pure-lockfile
yarn install --no-ignore-optional --pure-lockfile
# Navigate to our Viewer project
cd ./platform/viewer/
@ -79,12 +79,12 @@ cd ./platform/viewer/
# Create a Versions File
node -p -e \"'export default \\'' + require('./package.json').version + '\\';'\" > src/version.js
# Copy over wado-image-loader codecs and worker file
cp \"node_modules/cornerstone-wado-image-loader/dist/*.min.js*\" \"public\" -v
cp \".\\..\\..\\node_modules/cornerstone-wado-image-loader/dist/*.min.js*\" \"public\" -v
# Build using react-scripts
# npx cross-env PUBLIC_URL=/demo REACT_APP_CONFIG=config/netlify.js react-scripts --max_old_space_size=4096 build
# Build using WebPack
# TODO: consume public/config correctly instead of hardcode
npx cross-env NODE_ENV=production webpack-dev-server --config config/webpack.prod.js --mode production -w -d
npx webpack --config config/webpack.prod.js --mode production --env.production
# Copy output to the folder that is our publish target
cp 'dist/**/*' ./../../docs/latest/_book/demo --verbose