title: Build ohif index.umd.js
body: <p>I have started with OHIF dicom viewer(<a href="https://github.com/OHIF/Viewers" rel="nofollow noreferrer">https://github.com/OHIF/Viewers</a>).</p>
  <p>I forked it and I am running in dev mode.</p>
  <p>But, I´d like to create a umd as said in src code: 'index-umd.js'.</p>
  <p>I read several docs from ohif code but I ddn´t find what scripts from package.json I have to run to generate a 'index-umd.js'</p>
  <p>The viewer package.json is something as:</p>
  <pre><code>{
    &quot;name&quot;: &quot;root&quot;,
    &quot;private&quot;: true,
    &quot;workspaces&quot;: [
      &quot;platform/*&quot;,
      &quot;extensions/*&quot;
    ],
    &quot;engines&quot;: {
      &quot;node&quot;: &quot;&gt;=10&quot;,
      &quot;npm&quot;: &quot;&gt;=6&quot;,
      &quot;yarn&quot;: &quot;&gt;=1.16.0&quot;
    },
    &quot;scripts&quot;: {
      &quot;cm&quot;: &quot;npx git-cz&quot;,
      &quot;build&quot;: &quot;lerna run build:viewer --stream&quot;,
      &quot;build:lt&quot;: &quot;lerna run build:viewer:lesion-tracker --stream&quot;,
      &quot;build:ci&quot;: &quot;lerna run build:viewer:ci --stream&quot;,
      &quot;build:demo&quot;: &quot;lerna run build:viewer:demo --stream&quot;,
      &quot;build:package&quot;: &quot;lerna run build:viewer:package --stream&quot;,
      &quot;build:package-all&quot;: &quot;lerna run build:package --parallel --stream&quot;,
      &quot;dev&quot;: &quot;lerna run dev:viewer --stream&quot;,
      &quot;dev:lt&quot;: &quot;lerna run dev:viewer:lesion-tracker --stream&quot;,
      &quot;dev:project&quot;: &quot;.scripts/dev.sh&quot;,
      &quot;dev:orthanc&quot;: &quot;lerna run dev:orthanc --stream&quot;,
      &quot;orthanc:up&quot;: &quot;docker-compose -f .docker/Nginx-Orthanc/docker-compose.yml up&quot;,
      &quot;start&quot;: &quot;yarn run dev&quot;,
      &quot;test&quot;: &quot;yarn run test:unit&quot;,
      &quot;test:unit&quot;: &quot;jest --collectCoverage&quot;,
      &quot;test:unit:ci&quot;: &quot;lerna run test:unit:ci --parallel --stream&quot;,
      &quot;test:e2e&quot;: &quot;lerna run test:e2e --stream&quot;,
      &quot;test:e2e:script-tag&quot;: &quot;lerna run test:e2e:script-tag --stream&quot;,
      &quot;test:e2e:ci&quot;: &quot;lerna run test:e2e:ci --stream&quot;,
      &quot;test:e2e:dist&quot;: &quot;lerna run test:e2e:dist --stream&quot;,
      &quot;test:e2e:serve&quot;: &quot;lerna run test:e2e:serve --stream&quot;,
      &quot;see-changed&quot;: &quot;lerna changed&quot;,
      &quot;docs:publish&quot;: &quot;chmod +x ./build-and-publish-docs.sh &amp;&amp; ./build-and-publish-docs.sh&quot;,
      &quot;release&quot;: &quot;yarn run lerna:version &amp;&amp; yarn run lerna:publish&quot;,
      &quot;lerna:cache&quot;: &quot;./netlify-lerna-cache.sh&quot;,
      &quot;lerna:restore&quot;: &quot;./netlify-lerna-restore.sh&quot;,
      &quot;lerna:version&quot;: &quot;npx lerna version prerelease --force-publish&quot;,
      &quot;lerna:publish&quot;: &quot;lerna publish from-package --canary --dist-tag canary&quot;,
      &quot;link-list&quot;: &quot;npm ls --depth=0 --link=true&quot;
    },
    &quot;dependencies&quot;: {
      &quot;@babel/runtime&quot;: &quot;^7.5.5&quot;,
      &quot;core-js&quot;: &quot;^3.2.1&quot;
    },
    &quot;devDependencies&quot;: {
      &quot;@babel/core&quot;: &quot;^7.5.0&quot;,
      &quot;@babel/plugin-proposal-class-properties&quot;: &quot;^7.5.0&quot;,
      &quot;@babel/plugin-proposal-object-rest-spread&quot;: &quot;^7.5.5&quot;,
      &quot;@babel/plugin-syntax-dynamic-import&quot;: &quot;^7.2.0&quot;,
      &quot;@babel/plugin-transform-arrow-functions&quot;: &quot;^7.2.0&quot;,
      &quot;@babel/plugin-transform-regenerator&quot;: &quot;^7.4.5&quot;,
      &quot;@babel/plugin-transform-runtime&quot;: &quot;^7.5.0&quot;,
      &quot;@babel/preset-env&quot;: &quot;^7.5.0&quot;,
      &quot;@babel/preset-react&quot;: &quot;^7.0.0&quot;,
      &quot;@percy/cypress&quot;: &quot;^2.2.0&quot;,
      &quot;@webpack-cli/serve&quot;: &quot;^1.6.1&quot;,
      &quot;babel-eslint&quot;: &quot;9.x&quot;,
      &quot;babel-loader&quot;: &quot;^8.0.6&quot;,
      &quot;babel-plugin-inline-react-svg&quot;: &quot;1.1.0&quot;,
      &quot;babel-plugin-module-resolver&quot;: &quot;^3.2.0&quot;,
      &quot;clean-webpack-plugin&quot;: &quot;^3.0.0&quot;,
      &quot;copy-webpack-plugin&quot;: &quot;^5.0.3&quot;,
      &quot;cross-env&quot;: &quot;^5.2.0&quot;,
      &quot;css-loader&quot;: &quot;^3.2.0&quot;,
      &quot;cypress-file-upload&quot;: &quot;^3.5.3&quot;,
      &quot;dotenv&quot;: &quot;^8.1.0&quot;,
      &quot;eslint&quot;: &quot;5.16.0&quot;,
      &quot;eslint-config-prettier&quot;: &quot;^6.4.0&quot;,
      &quot;eslint-config-react-app&quot;: &quot;^4.0.1&quot;,
      &quot;eslint-plugin-flowtype&quot;: &quot;2.x&quot;,
      &quot;eslint-plugin-import&quot;: &quot;2.x&quot;,
      &quot;eslint-plugin-jsx-a11y&quot;: &quot;6.x&quot;,
      &quot;eslint-plugin-node&quot;: &quot;^9.1.0&quot;,
      &quot;eslint-plugin-prettier&quot;: &quot;^3.1.1&quot;,
      &quot;eslint-plugin-promise&quot;: &quot;^4.2.1&quot;,
      &quot;eslint-plugin-react&quot;: &quot;7.x&quot;,
      &quot;eslint-plugin-react-hooks&quot;: &quot;1.5.0&quot;,
      &quot;extract-css-chunks-webpack-plugin&quot;: &quot;^4.5.4&quot;,
      &quot;html-webpack-plugin&quot;: &quot;^3.2.0&quot;,
      &quot;husky&quot;: &quot;^3.0.0&quot;,
      &quot;jest&quot;: &quot;^24.8.0&quot;,
      &quot;jest-canvas-mock&quot;: &quot;^2.1.0&quot;,
      &quot;jest-junit&quot;: &quot;^6.4.0&quot;,
      &quot;lerna&quot;: &quot;^3.15.0&quot;,
      &quot;lint-staged&quot;: &quot;^9.0.2&quot;,
      &quot;optimize-css-assets-webpack-plugin&quot;: &quot;^5.0.3&quot;,
      &quot;postcss-import&quot;: &quot;^12.0.1&quot;,
      &quot;postcss-loader&quot;: &quot;^3.0.0&quot;,
      &quot;postcss-preset-env&quot;: &quot;^6.6.0&quot;,
      &quot;prettier&quot;: &quot;^1.18.2&quot;,
      &quot;react&quot;: &quot;^16.8.6&quot;,
      &quot;react-dom&quot;: &quot;^16.8.6&quot;,
      &quot;react-hot-loader&quot;: &quot;^4.12.11&quot;,
      &quot;redux-testkit&quot;: &quot;^1.0.6&quot;,
      &quot;serve&quot;: &quot;^11.1.0&quot;,
      &quot;shader-loader&quot;: &quot;^1.3.1&quot;,
      &quot;start-server-and-test&quot;: &quot;^1.10.0&quot;,
      &quot;style-loader&quot;: &quot;^1.0.0&quot;,
      &quot;styled-components&quot;: &quot;^5.3.5&quot;,
      &quot;stylelint&quot;: &quot;^10.1.0&quot;,
      &quot;stylelint-config-recommended&quot;: &quot;^2.2.0&quot;,
      &quot;stylus&quot;: &quot;^0.54.5&quot;,
      &quot;stylus-loader&quot;: &quot;^3.0.2&quot;,
      &quot;terser-webpack-plugin&quot;: &quot;^2.1.0&quot;,
      &quot;webpack&quot;: &quot;^4.35.2&quot;,
      &quot;webpack-cli&quot;: &quot;^4.9.2&quot;,
      &quot;webpack-dev-server&quot;: &quot;^4.7.3&quot;,
      &quot;webpack-hot-middleware&quot;: &quot;^2.25.0&quot;,
      &quot;webpack-merge&quot;: &quot;^4.2.1&quot;,
      &quot;workbox-webpack-plugin&quot;: &quot;^5.0.0-beta.1&quot;,
      &quot;worker-loader&quot;: &quot;^2.0.0&quot;
    },
    &quot;husky&quot;: {
      &quot;hooks&quot;: {
        &quot;pre-commit&quot;: &quot;lint-staged&quot;
      }
    },
    &quot;lint-staged&quot;: {
      &quot;src/**/*.{js,json,css}&quot;: [
        &quot;prettier --write&quot;,
        &quot;git add&quot;
      ]
    },
    &quot;resolutions&quot;: {
      &quot;**/node-gyp&quot;: &quot;8.4.1&quot;,
      &quot;**/@babel/runtime&quot;: &quot;7.5.5&quot;
    }
  }
  </code></pre>