Our custom OHIF Viewer.
Go to file
dannyrb 7ba2916cf5 chore(release): publish %s [skip ci]
- @ohif/extension-cornerstone@0.0.39-alpha.0
 - @ohif/extension-dicom-html@0.0.4-alpha.0
 - @ohif/extension-dicom-microscopy@0.0.9-alpha.0
 - @ohif/extension-dicom-pdf@0.0.8-alpha.0
 - @ohif/extension-vtk@0.1.4-alpha.0
 - @ohif/core@0.11.1-alpha.0
 - @ohif/i18n@0.2.3-alpha.0
 - @ohif/ui@0.2.18-alpha.0
 - @ohif/viewer@0.0.22-alpha.0
2019-08-05 14:45:09 -04:00
.circleci Fix typo 2019-08-05 14:00:20 -04:00
.netlify Use cpx so our copying finishes? 2019-07-16 14:58:40 -04:00
.vscode Try using codecov orb 2019-08-05 11:07:14 -04:00
.webpack Generate example for codecov issue 2019-07-19 14:54:34 -04:00
docs First attempt at a netlify deploy preview 2019-07-16 09:24:24 -04:00
extensions chore(release): publish %s [skip ci] 2019-08-05 14:45:09 -04:00
platform chore(release): publish %s [skip ci] 2019-08-05 14:45:09 -04:00
.codecov.yml Set default threshold 2019-08-05 13:52:02 -04:00
.eslintrc Commit changes before a long weekend 2019-07-05 22:58:25 -04:00
.gitignore ci: add e2e tests with cypress 2019-06-22 10:02:07 -04:00
aliases.config.js Begin updating dependent libraries to use sync'd webpack builds w/ watches 2019-07-05 13:28:49 -04:00
babel.config.js Run and report individually and in parallel 2019-07-18 10:26:33 -04:00
eslintAliasesResolver.js Begin updating dependent libraries to use sync'd webpack builds w/ watches 2019-07-05 13:28:49 -04:00
jest.config.base.js Try using codecov orb 2019-08-05 11:07:14 -04:00
jest.config.js Get all platform unit tests to run 2019-07-17 14:57:50 -04:00
lerna.json Run version command instead of calling node directly 2019-07-16 14:14:34 -04:00
netlify.toml Attempt to fix ticks/escapes 2019-07-16 13:24:46 -04:00
package.json Changing to scoped package names 2019-08-05 14:29:14 -04:00
README.md Catch more updates 2019-08-05 14:44:45 -04:00
yarn.lock Remove individual codecov calls 2019-08-05 11:52:09 -04:00

OHIF Medical Imaging Platform

lerna Netlify Status

The Problem

...

Why Choose Us

...

Quick Start

...

Commands

Global

Commands
build:package Builds commonjs bundles for all projects
test:unit Jest multi-project test runner; overall coverage
test:unit:ci Runs tests in parallel. Reports coverage per project.

Local

Commands
test:unit Runs tests while watching for changes
test:unit:ci Runs tests, collects coverage, reports to codecov

Developing

The OHIF Medical Image Viewing Platform is maintained as a monorepo. This means that this repository, instead of containing a single project, contains many projects. If you explore our project structure, you'll see the following:

.
├── extensions              #
│   ├── _example            # Skeleton of example extension
│   ├── cornerstone         # 2D images w/ Cornerstone.js
│   ├── dicom-html          # Structured Reports as HTML in viewport
│   ├── dicom-microscopy    # Whole slide microscopy viewing
│   ├── dicom-pdf           # View DICOM wrapped PDFs in viewport
│   └── vtk                 # MPR and Volume support w/ VTK.js
│
├── platform                #
│   ├── core                # Business Logic
│   ├── i18n                # Internationalization Support
│   ├── ui                  # React component library
│   └── viewer              # Connects platform and extension projects
│
├── ...                     # misc. shared configuration
├── lerna.json              # MonoRepo (Lerna) settings
├── package.json            # Shared devDependencies and commands
└── README.md               # This file

Want to better understand why and how we've structured this repository? Read more about it in our Architecture Documentation.

Requirements

  • Yarn 1.17.3+
  • Node 8+
  • Yarn Workspaces should be enabled on your machine:
    • yarn config set workspaces-experimental true

Getting Started

  1. Fork this repository
  2. Clone your forked repository
    • git clone https://github.com/YOUR-USERNAME/Viewers.git
  3. Navigate to the cloned project's directory
  4. Add this repo as a remote named upstream
    • git remote add upstream https://github.com/OHIF/Viewers.git
  5. yarn install to restore dependencies and link projects

To Develop

# Force install
yarn install --force

# Link
# Redundent with yarn workspaces
npx lerna bootstrap
# Link for local dev
cd ./extensions/my-package
npx lerna add @ohif/my-package --scope=@ohif/my-package-consumer
# Add shared dev dependency for workspace
yarn add --dev -W package-name

// module vs main vs jsnext:main vs browser https://babeljs.io/blog/2018/06/26/on-consuming-and-publishing-es2015+-packages

Webpack: https://webpack.js.org/configuration/resolve/

UMD builds go through

  • index.umd.js
  • Extensions passed in via window config

PWA builds go through

  • index.js
  • Extensions specified in file or by window config

The module property should point to a script that utilizes ES2015 module syntax but no other syntax features that aren't yet supported by browsers or node. This enables webpack to parse the module syntax itself, allowing for lighter bundles via tree shaking if users are only consuming certain parts of the library.

Notes

Lerna requires GH_TOKEN for GitHub authentication token git remote update 1st call, need to verify host key