Skip to content

Commit

Permalink
kie-issues#527: Fix @kogito-apps/form-details: The embedded monaco-ed…
Browse files Browse the repository at this point in the history
…itor doesn't show the proper syntax highlighting (apache#1885)

* kie-issues#527: Fix @kogito-apps/form-details: The embedded monaco-editor doesn't show the proper syntax highlighting

* fic react forms colors  in runtime-tools-dev-ui-webapp

* fix html colors in runtime-tools-dev-ui-webapp

* Remove duplicates not needed in runtime-tools-dev-ui-webapp

* trigger build
  • Loading branch information
jomarko authored and rgdoliveira committed Dec 13, 2023
1 parent e2ec2f2 commit a4fa319
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 241 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
<outputDirectory>${basedir}/target/classes/dev-static/webapp</outputDirectory>
<resources>
<resource>
<directory>${path.to.webapp.app}/dist</directory>
<directory>${path.to.webapp.app}/dist/resources/webapp</directory>
<filtering>false</filtering>
</resource>
</resources>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
"cypress": "^12.17.0",
"express": "^4.18.2",
"file-loader": "^6.2.0",
"filemanager-webpack-plugin": "^6.1.7",
"filemanager-webpack-plugin": "^7.0.0",
"html-webpack-plugin": "^5.5.3",
"https-browserify": "^1.0.0",
"identity-obj-proxy": "^3.0.0",
Expand Down
18 changes: 11 additions & 7 deletions ui-packages/packages/runtime-tools-dev-ui-webapp/webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
* under the License.
*/
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin');
const webpack = require('webpack');
const BG_IMAGES_DIRNAME = 'bgimages';
Expand All @@ -43,7 +42,7 @@ module.exports = {
},
plugins: [
new MonacoWebpackPlugin({
languages: ['typescript', 'json'],
languages: ['typescript', 'json', 'html'],
customLanguages: [
{
label: 'yaml',
Expand Down Expand Up @@ -80,11 +79,15 @@ module.exports = {
new FileManagerPlugin({
events: {
onEnd: {
mkdir: ['./dist/resources/webapp/'],
mkdir: ['./dist/resources/webapp', './dist/webapp/', './dist/webapp/fonts/'],
copy: [
{ source: './dist/*.js', destination: './dist/resources/webapp/' },
{ source: './dist/*.map', destination: './dist/resources/webapp/' },
{ source: './dist/fonts', destination: './dist/resources/webapp/' },
{ source: './dist/envelope.js', destination: './dist/resources/webapp/' },
{ source: './dist/envelope.js.map', destination: './dist/resources/webapp/' },
{ source: './dist/standalone.js', destination: './dist/resources/webapp/' },
{ source: './dist/standalone.js.map', destination: './dist/resources/webapp/' },
{ source: './dist/*.js', destination: './dist/webapp/', globOptions: {ignore: ['./dist/envelope.js', './dist/standalone.js']} },
{ source: './dist/*.map', destination: './dist/webapp/', globOptions: {ignore: ['./dist/envelope.js.map', './dist/standalone.js.map']}},
{ source: './dist/fonts', destination: './dist/webapp/fonts/' },
{
source: './dist/monitoring-webapp',
destination: './dist/resources/webapp/monitoring-webapp'
Expand All @@ -93,7 +96,8 @@ module.exports = {
source: './dist/custom-dashboard-view',
destination: './dist/resources/webapp/custom-dashboard-view'
}
]
],
delete: ['./dist/*.js*', './dist/fonts', './dist/standalone']
}
}
}),
Expand Down
Loading

0 comments on commit a4fa319

Please sign in to comment.