Moved the Cornerstone viewport code to an extension. Tons of changes to rollup and package.json files to make everything play nicely

This commit is contained in:
Erik Ziegler committed 2019-02-06 14:46:06 +01:00
1 parent 9a0f417eec
commit 22202141b8
45 files changed
+6193 -208

No files matched your search

@@ -1,6 +1,6 @@
{
"name": "ohif-dicom-microscopy-extension",
"version": "0.0.4",
"version": "0.0.5",
"description": "OHIF extension for Dicom Microscopy",
"author": "OHIF",
"license": "MIT",
@@ -19,7 +19,8 @@
},
"peerDependencies": {
"react": "^15.0.0 || ^16.0.0",
"react-dom": "^15.0.0 || ^16.0.0"
"react-dom": "^15.0.0 || ^16.0.0",
"ohif-core": "^0.2.6"
},
"devDependencies": {
"@babel/core": "^7.2.2",
@@ -76,7 +77,6 @@
"dependencies": {
"@babel/runtime": "^7.2.0",
"classnames": "^2.2.6",
"dicom-microscopy-viewer": "^0.2.0",
"ohif-core": "^0.2.4"
"dicom-microscopy-viewer": "^0.2.0"
}
}
@@ -8,6 +8,12 @@ import pkg from './package.json'
// Deal with https://github.com/rollup/rollup-plugin-commonjs/issues/297
import builtins from 'rollup-plugin-node-builtins';
const globals = {
'react': 'React',
'react-dom': 'ReactDOM',
'ohif-core': 'OHIF'
}
export default {
input: 'src/index.js',
output: [
@@ -16,16 +22,13 @@ export default {
format: 'umd',
name: 'ohif-dicom-microscopy-extension',
sourcemap: true,
exports: 'named',
globals: {
'react': 'React',
'react-dom': 'ReactDOM'
}
globals
},
{
file: pkg.module,
format: 'es',
sourcemap: true
sourcemap: true,
globals
}
],
plugins: [
@@ -35,7 +38,6 @@ export default {
modules: false
}),
url(),
svgr(),
babel({
exclude: 'node_modules/**',
plugins: [ '@babel/external-helpers' ],
@@ -51,5 +53,6 @@ export default {
]
}
})
]
],
external: Object.keys(pkg.peerDependencies || {}),
}
@@ -1,5 +1,3 @@
import OHIFDicomMicroscopyExtension from './OHIFDicomMicroscopyExtension.js';
export { OHIFDicomMicroscopyExtension };
export default OHIFDicomMicroscopyExtension;