Skip to content

Commit

Permalink
embed the kiota release
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaTP authored and carlesarnal committed Mar 22, 2023
1 parent dead31b commit ec591de
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 6 deletions.
1 change: 1 addition & 0 deletions ui/client-gen/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
dist
kiota
21 changes: 19 additions & 2 deletions ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@
"html-webpack-plugin": "^5.3.1",
"imagemin": "^6.0.0",
"mini-css-extract-plugin": "2.6.0",
"node-polyfill-webpack-plugin": "^1.1.4",
"null-loader": "4.0.1",
"postcss": "8.4.12",
"postcss-loader": "6.2.1",
"node-polyfill-webpack-plugin": "^1.1.4",
"prettier": "^1.15.2",
"prop-types": "^15.6.1",
"raw-loader": "4.0.2",
Expand All @@ -54,26 +54,27 @@
"webpack-bundle-analyzer": "4.5.0",
"webpack-cli": "4.10.0",
"webpack-dev-server": "4.7.4",
"webpack-merge": "5.8.0"
"webpack-merge": "5.8.0",
"webpack-shell-plugin-next": "^2.3.1"
},
"dependencies": {
"@apicurio/data-models": "^1.1.26",
"@asyncapi/react-component": "^1.0.0-next.40",
"@patternfly/patternfly": "4.185.1",
"@patternfly/react-core": "4.202.16",
"@patternfly/react-icons": "4.53.16",
"@patternfly/react-styles": "4.64.1",
"@patternfly/react-table": "4.71.16",
"ace-builds": "1.7.1",
"@apicurio/data-models": "^1.1.26",
"axios": "0.21.2",
"keycloak-js": "^19.0.2",
"mobx": "^6.5.0",
"moment": "2.29.4",
"oidc-client-ts": "^2.0.3",
"react": "17.0.2",
"react-ace": "10.1.0",
"react-dom": "17.0.2",
"react-moment": "1.1.2",
"oidc-client-ts": "^2.0.3",
"react-router-dom": "5.2.1",
"redoc": "2.0.0-rc.72",
"styled-components": "^4.2.0",
Expand Down
12 changes: 12 additions & 0 deletions ui/webpack.common.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const path = require("path");
const HtmlWebpackPlugin = require("html-webpack-plugin");
const CopyPlugin = require("copy-webpack-plugin");
const WebpackShellPluginNext = require('webpack-shell-plugin-next');
const TsconfigPathsPlugin = require("tsconfig-paths-webpack-plugin");
const Dotenv = require("dotenv-webpack");
const {dependencies, federatedModuleName} = require("./package.json");
Expand Down Expand Up @@ -87,6 +88,17 @@ module.exports = (env, argv) => {
publicPath: "auto"
},
plugins: [
new WebpackShellPluginNext({
onBuildStart:{
scripts: [
'rm -rf client-gen/dist client-gen/kiota',
'curl -sL https://github.com/andreaTP/apicurio-client-gen-poc/releases/download/0.0.4/dist.tar.gz | tar -xz -C client-gen',
'mv client-gen/dist client-gen/kiota'
],
blocking: true,
parallel: false
}
}),
new CopyPlugin({
patterns: [
{ from: 'client-gen' }
Expand Down

0 comments on commit ec591de

Please sign in to comment.