feat(app): change ohif viewer to ohif app (#3451)

This commit is contained in:
Alireza authored and GitHub committed 2023-06-06 20:06:31 -04:00
1 parent 6715ad9bd6
commit 16afa740b6
333 files changed
+2123 -1149

No files matched your search

@@ -3,6 +3,10 @@ const webpackCommon = require('./../../../.webpack/webpack.base.js');
const SRC_DIR = path.join(__dirname, '../src');
const DIST_DIR = path.join(__dirname, '../dist');
module.exports = (env, argv) => {
return webpackCommon(env, argv, { SRC_DIR, DIST_DIR });
const ENTRY = {
app: `${SRC_DIR}/index.tsx`,
};
module.exports = (env, argv) => {
return webpackCommon(env, argv, { SRC_DIR, DIST_DIR, ENTRY });
};
@@ -2,6 +2,8 @@ const webpack = require('webpack');
const { merge } = require('webpack-merge');
const path = require('path');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer')
.BundleAnalyzerPlugin;
const pkg = require('./../package.json');
const webpackCommon = require('./../../../.webpack/webpack.base.js');
@@ -10,8 +12,12 @@ const ROOT_DIR = path.join(__dirname, './../');
const SRC_DIR = path.join(__dirname, '../src');
const DIST_DIR = path.join(__dirname, '../dist');
const ENTRY = {
app: `${SRC_DIR}/index.tsx`,
};
module.exports = (env, argv) => {
const commonConfig = webpackCommon(env, argv, { SRC_DIR, DIST_DIR });
const commonConfig = webpackCommon(env, argv, { SRC_DIR, DIST_DIR, ENTRY });
return merge(commonConfig, {
stats: {
@@ -27,23 +33,26 @@ module.exports = (env, argv) => {
},
optimization: {
minimize: true,
sideEffects: true,
sideEffects: false,
},
output: {
path: ROOT_DIR,
library: 'OHIFExtCornerstone',
library: 'ohif-extension-measurement-tracking',
libraryTarget: 'umd',
libraryExport: 'default',
filename: pkg.main,
},
externals: [
/\b(vtk.js)/,
/\b(dcmjs)/,
/\b(gl-matrix)/,
/^@ohif/,
/^@cornerstonejs/,
],
plugins: [
new webpack.optimize.LimitChunkCountPlugin({
maxChunks: 1,
}),
new MiniCssExtractPlugin({
filename: './dist/[name].css',
chunkFilename: './dist/[id].css',
}),
// new BundleAnalyzerPlugin(),
],
});
};
+10 -10
View File
@@ -1,11 +1,11 @@
{
"name": "@ohif/extension-measurement-tracking",
"version": "3.0.0",
"version": "3.5.0-beta.1",
"description": "Tracking features and functionality for basic image viewing",
"author": "OHIF Core Team",
"license": "MIT",
"repository": "OHIF/Viewers",
"main": "dist/index.umd.js",
"main": "dist/ohif-extension-measurement-tracking.umd.js",
"module": "src/index.tsx",
"publishConfig": {
"access": "public"
@@ -23,30 +23,30 @@
"ohif-extension"
],
"scripts": {
"dev": "cross-env NODE_ENV=development webpack --config .webpack/webpack.dev.js --watch --debug --output-pathinfo",
"dev": "cross-env NODE_ENV=development webpack --config .webpack/webpack.dev.js --watch --output-pathinfo",
"dev:dicom-pdf": "yarn run dev",
"build": "cross-env NODE_ENV=production webpack --config .webpack/webpack.prod.js",
"build:package": "yarn run build",
"build:package-1": "yarn run build",
"start": "yarn run dev"
},
"peerDependencies": {
"@ohif/core": "^3.0.0",
"classnames": "^2.3.2",
"@cornerstonejs/core": "^1.1.0",
"@cornerstonejs/tools": "^1.1.0",
"@ohif/extension-cornerstone-dicom-sr": "^3.0.0",
"@ohif/core": "3.5.0-beta.1",
"@ohif/extension-cornerstone-dicom-sr": "3.5.0-beta.1",
"@ohif/ui": "3.5.0-beta.1",
"classnames": "^2.3.2",
"dcmjs": "^0.29.5",
"lodash.debounce": "^4.17.21",
"prop-types": "^15.6.2",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"webpack": "^5.50.0",
"webpack-merge": "^5.7.3",
"@ohif/ui": "^2.0.0"
"webpack-merge": "^5.7.3"
},
"dependencies": {
"@babel/runtime": "^7.20.13",
"@ohif/ui": "^2.0.0",
"@ohif/ui": "3.5.0-beta.1",
"@xstate/react": "^0.8.1",
"xstate": "^4.10.0"
}