Skip to content

Commit

Permalink
fix: add drag drop deps and remove unused code editor deps (patternfl…
Browse files Browse the repository at this point in the history
…y#3866)

* fix: add drag drop deps and remove unused code editor deps

* bump react-docs to fix error

* bump the prerelease versions
  • Loading branch information
nicolethoen committed Mar 28, 2024
1 parent c36d871 commit 314b874
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
3 changes: 0 additions & 3 deletions packages/documentation-framework/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@
"mdast-util-to-hast": "9.1.1",
"mdurl": "1.0.1",
"mini-css-extract-plugin": "2.7.5",
"monaco-editor": "0.34.1",
"monaco-editor-webpack-plugin": "7.0.1",
"null-loader": "4.0.1",
"parse-entities": "2.0.0",
"path-browserify": "1.0.1",
Expand All @@ -54,7 +52,6 @@
"puppeteer": "19.11.1",
"puppeteer-cluster": "0.23.0",
"react-docgen": "5.3.1",
"react-monaco-editor": "^0.51.0",
"react-ssr-prepass": "1.5.0",
"remark-footnotes": "1.0.0",
"remark-frontmatter": "2.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ const path = require('path');
const webpack = require('webpack');
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
const CopyWebpackPlugin = require('copy-webpack-plugin');
const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin');

module.exports = (_env, argv) => {
const {
Expand Down Expand Up @@ -156,9 +155,6 @@ module.exports = (_env, argv) => {
patterns: [
{ from: path.join(__dirname, '../../assets'), to: 'assets' }
]
}),
new MonacoWebpackPlugin({
globalAPI: true,
})
],
stats: 'minimal'
Expand Down
2 changes: 1 addition & 1 deletion packages/documentation-site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"@patternfly/react-console": "5.0.0",
"@patternfly/react-docs": "7.0.0-alpha.37",
"@patternfly/react-log-viewer": "5.1.0-prerelease.1",
"@patternfly/react-topology": "5.2.0-prerelease.3",
"@patternfly/react-topology": "5.2.0-prerelease.4",
"@patternfly/react-user-feedback": "5.0.0",
"@patternfly/react-component-groups": "5.1.0-prerelease.2",
"@patternfly/react-virtualized-extension": "5.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ module.exports = (sourceMD, sourceProps, sourceFunctionDocs) => {
const reactChartsPath = require
.resolve('@patternfly/react-charts/package.json')
.replace('package.json', 'src');
const reactDragDropPath = require
.resolve('@patternfly/react-drag-drop/package.json')
.replace('package.json', 'src');

const reactTopologyPath = require
.resolve('@patternfly/react-topology/package.json')
Expand All @@ -65,6 +68,7 @@ module.exports = (sourceMD, sourceProps, sourceFunctionDocs) => {
sourceProps(path.join(reactTablePath, '/**/*.tsx'), reactPropsIgnore);
sourceProps(path.join(reactCodeEditorPath, '/**/*.tsx'),reactPropsIgnore);
sourceProps(path.join(reactChartsPath, '/**/*.tsx'),reactPropsIgnore);
sourceProps(path.join(reactDragDropPath, '/**/*.tsx'),reactPropsIgnore);
sourceProps(path.join(reactTopologyPath, '/**/*.tsx'), reactPropsIgnore);

// React MD
Expand All @@ -85,6 +89,9 @@ module.exports = (sourceMD, sourceProps, sourceFunctionDocs) => {
// React-code-editor MD
sourceMD(path.join(reactCodeEditorPath, '/**/examples/*.md'), 'react');

// Drag drop MD
sourceMD(path.join(reactDragDropPath, '/**/examples/*.md'), 'react-next');

// React-topology MD
sourceMD(path.join(reactTopologyPath, '/**/*.md'), 'extensions');

Expand Down
1 change: 1 addition & 0 deletions scripts/latest-versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ packages=(
@patternfly/react-component-groups
@patternfly/react-console
@patternfly/react-core
@patternfly/react-drag-drop
@patternfly/react-icons
@patternfly/react-log-viewer
@patternfly/react-styles
Expand Down

0 comments on commit 314b874

Please sign in to comment.