Clean up UI to set webpack scripts
This commit is contained in:
parent
e0cf337222
commit
9a5372766c
@ -18,17 +18,12 @@
|
||||
"dist"
|
||||
],
|
||||
"scripts": {
|
||||
"dev": "docz dev",
|
||||
"docs": "docz build",
|
||||
"build:package": "webpack --config config/webpack.prod.js -d",
|
||||
"test:unit": "jest --watch",
|
||||
"test:unit:ci": "jest --ci --runInBand --collectCoverage --passWithNoTests",
|
||||
"dev": "docz dev",
|
||||
"lerna:build": "webpack --config config/webpack.prod.js -w -d",
|
||||
"build": "rollup -c",
|
||||
"start": "rollup -c -w",
|
||||
"prepare": "yarn build",
|
||||
"prepublishOnly": "yarn build",
|
||||
"generateStaticSite": "docz build",
|
||||
"contributors:add": "all-contributors add",
|
||||
"contributors:generate": "all-contributors generate"
|
||||
"dev:ui": "yarn run dev"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@ohif/i18n": "0.2.1",
|
||||
@ -56,21 +51,12 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@mdx-js/tag": "^0.20.3",
|
||||
"all-contributors-cli": "6.7.0",
|
||||
"autoprefixer": "^9.6.0",
|
||||
"commitizen": "3.0.7",
|
||||
"cz-conventional-changelog": "2.1.0",
|
||||
"docz": "1.2.0",
|
||||
"docz-core": "1.2.0",
|
||||
"docz-plugin-css": "0.11.0",
|
||||
"docz-theme-default": "1.2.0",
|
||||
"lodash.clonedeep": "^4.5.0",
|
||||
"react-powerplug": "1.0.0",
|
||||
"semantic-release": "15.13.x"
|
||||
},
|
||||
"config": {
|
||||
"commitizen": {
|
||||
"path": "./node_modules/cz-conventional-changelog"
|
||||
}
|
||||
"react-powerplug": "1.0.0"
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,61 +0,0 @@
|
||||
import autoprefixer from 'autoprefixer';
|
||||
import babel from 'rollup-plugin-babel';
|
||||
import builtins from 'rollup-plugin-node-builtins';
|
||||
import commonjs from 'rollup-plugin-commonjs';
|
||||
import external from 'rollup-plugin-peer-deps-external';
|
||||
import pkg from './package.json';
|
||||
import postcss from 'rollup-plugin-postcss';
|
||||
import resolve from 'rollup-plugin-node-resolve';
|
||||
import url from 'rollup-plugin-url';
|
||||
|
||||
const globals = {
|
||||
react: 'React',
|
||||
'react-dom': 'ReactDOM',
|
||||
'react-i18next': 'reactI18next',
|
||||
'@ohif/i18n': 'i18n',
|
||||
};
|
||||
|
||||
export default {
|
||||
input: 'src/index.js',
|
||||
output: [
|
||||
{
|
||||
file: pkg.main,
|
||||
format: 'umd',
|
||||
name: 'react-viewerbase',
|
||||
sourcemap: true,
|
||||
exports: 'named',
|
||||
globals,
|
||||
},
|
||||
{
|
||||
file: pkg.module,
|
||||
format: 'es',
|
||||
sourcemap: true,
|
||||
globals,
|
||||
},
|
||||
],
|
||||
plugins: [
|
||||
builtins(),
|
||||
external(),
|
||||
postcss({
|
||||
modules: false,
|
||||
plugins: [autoprefixer],
|
||||
}),
|
||||
url(),
|
||||
babel({
|
||||
exclude: 'node_modules/**',
|
||||
runtimeHelpers: true,
|
||||
}),
|
||||
resolve({
|
||||
browser: true,
|
||||
}),
|
||||
commonjs({
|
||||
// https://github.com/airbnb/react-dates/issues/1183#issuecomment-392073823
|
||||
namedExports: {
|
||||
'node_modules/react-dates/index.js': [
|
||||
'DateRangePicker',
|
||||
'isInclusivelyBeforeDay',
|
||||
],
|
||||
},
|
||||
}),
|
||||
],
|
||||
};
|
||||
@ -30,6 +30,7 @@
|
||||
"cy": "cypress open",
|
||||
"cy:run": "cypress run",
|
||||
"cy:run:ci": "yarn run cy:run -- --record",
|
||||
"build:package": "echo 'VIEWER: No package'",
|
||||
"build:viewer": "webpack --config config/webpack.prod.js",
|
||||
"dev:viewer": "cross-env NODE_ENV=development webpack-dev-server --config config/webpack.dev.js --mode development -w -d"
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user