From 2931f8b5a0e953a1093a887defc3510cafa59316 Mon Sep 17 00:00:00 2001 From: Sriranjan Srivastava Date: Thu, 29 Feb 2024 17:07:06 +0530 Subject: [PATCH] added microbundle crl --- .../example/devpackage.json | 1 + .../micro-ui-internals/example/package.json | 1 + .../packages/modules/common/package.json | 1 + .../packages/modules/commonPt/package.json | 1 + .../packages/modules/core/package.json | 1 + .../packages/modules/dss/package.json | 1 + .../packages/modules/obps/package.json | 1 + .../packages/modules/pgr/package.json | 1 + .../packages/modules/pt/package.json | 1 + .../packages/modules/tl/package.json | 1 + .../web/micro-ui-internals/publish.sh | 38 +++++++++---------- 11 files changed, 29 insertions(+), 19 deletions(-) diff --git a/frontend/micro-ui/web/micro-ui-internals/example/devpackage.json b/frontend/micro-ui/web/micro-ui-internals/example/devpackage.json index 22e59dfa557..576693132c3 100644 --- a/frontend/micro-ui/web/micro-ui-internals/example/devpackage.json +++ b/frontend/micro-ui/web/micro-ui-internals/example/devpackage.json @@ -9,6 +9,7 @@ "start": "react-scripts start" }, "devDependencies": { + "microbundle-crl": "^0.13.11", "@upyog/digit-ui-libraries":"^1.4.0", "@upyog/digit-ui-module-common":"1.7.0-beta.3", "@upyog/digit-ui-module-engagement":"^1.4.0", diff --git a/frontend/micro-ui/web/micro-ui-internals/example/package.json b/frontend/micro-ui/web/micro-ui-internals/example/package.json index 234a91deeff..6c444f50dc7 100644 --- a/frontend/micro-ui/web/micro-ui-internals/example/package.json +++ b/frontend/micro-ui/web/micro-ui-internals/example/package.json @@ -9,6 +9,7 @@ "start": "react-scripts start" }, "devDependencies": { + "microbundle-crl": "^0.13.11", "@upyog/digit-ui-libraries": "^1.7.0-beta.2", "@upyog/digit-ui-module-common": "1.7.0-beta.3", "@upyog/digit-ui-module-engagement": "^1.7.0-beta.2", diff --git a/frontend/micro-ui/web/micro-ui-internals/packages/modules/common/package.json b/frontend/micro-ui/web/micro-ui-internals/packages/modules/common/package.json index db37acd0f8d..b0219d66142 100644 --- a/frontend/micro-ui/web/micro-ui-internals/packages/modules/common/package.json +++ b/frontend/micro-ui/web/micro-ui-internals/packages/modules/common/package.json @@ -17,6 +17,7 @@ "dependencies": { "@upyog/digit-ui-libraries": "1.7.0-beta.2", "@upyog/digit-ui-react-components": "^1.7.0-beta.2", + "microbundle-crl": "^0.13.11", "react": "17.0.2", "react-dom": "17.0.2", "react-hook-form": "6.15.8", diff --git a/frontend/micro-ui/web/micro-ui-internals/packages/modules/commonPt/package.json b/frontend/micro-ui/web/micro-ui-internals/packages/modules/commonPt/package.json index 355a1b2a974..404f647e8a9 100644 --- a/frontend/micro-ui/web/micro-ui-internals/packages/modules/commonPt/package.json +++ b/frontend/micro-ui/web/micro-ui-internals/packages/modules/commonPt/package.json @@ -20,6 +20,7 @@ }, "dependencies": { "@upyog/digit-ui-react-components": "^1.7.0-beta.2", + "microbundle-crl": "^0.13.11", "lodash.merge": "^4.6.2", "react": "17.0.2", "react-dom": "17.0.2", diff --git a/frontend/micro-ui/web/micro-ui-internals/packages/modules/core/package.json b/frontend/micro-ui/web/micro-ui-internals/packages/modules/core/package.json index 684b997cc97..808995a481b 100644 --- a/frontend/micro-ui/web/micro-ui-internals/packages/modules/core/package.json +++ b/frontend/micro-ui/web/micro-ui-internals/packages/modules/core/package.json @@ -16,6 +16,7 @@ }, "dependencies": { "@upyog/digit-ui-react-components": "^1.7.0-beta.2", + "microbundle-crl": "^0.13.11", "react": "17.0.2", "react-dom": "17.0.2", "react-i18next": "11.16.2", diff --git a/frontend/micro-ui/web/micro-ui-internals/packages/modules/dss/package.json b/frontend/micro-ui/web/micro-ui-internals/packages/modules/dss/package.json index d0a6e5540b6..7e9be5fac20 100644 --- a/frontend/micro-ui/web/micro-ui-internals/packages/modules/dss/package.json +++ b/frontend/micro-ui/web/micro-ui-internals/packages/modules/dss/package.json @@ -20,6 +20,7 @@ }, "dependencies": { "@upyog/digit-ui-react-components": "^1.7.0-beta.2", + "microbundle-crl": "^0.13.11", "lodash": "4.17.21", "react": "17.0.2", "react-date-range": "1.3.0", diff --git a/frontend/micro-ui/web/micro-ui-internals/packages/modules/obps/package.json b/frontend/micro-ui/web/micro-ui-internals/packages/modules/obps/package.json index 8947781501a..0df77900b5e 100644 --- a/frontend/micro-ui/web/micro-ui-internals/packages/modules/obps/package.json +++ b/frontend/micro-ui/web/micro-ui-internals/packages/modules/obps/package.json @@ -19,6 +19,7 @@ }, "dependencies": { "@upyog/digit-ui-react-components": "^1.7.0-beta.2", + "microbundle-crl": "^0.13.11", "react": "17.0.2", "react-dom": "17.0.2", "react-hook-form": "6.15.8", diff --git a/frontend/micro-ui/web/micro-ui-internals/packages/modules/pgr/package.json b/frontend/micro-ui/web/micro-ui-internals/packages/modules/pgr/package.json index f2586b58121..2ae08210f4e 100644 --- a/frontend/micro-ui/web/micro-ui-internals/packages/modules/pgr/package.json +++ b/frontend/micro-ui/web/micro-ui-internals/packages/modules/pgr/package.json @@ -20,6 +20,7 @@ "dependencies": { "@upyog/digit-ui-react-components": "^1.7.0-beta.2", + "microbundle-crl": "^0.13.11", "lodash.merge": "^4.6.2", "react": "17.0.2", "react-dom": "17.0.2", diff --git a/frontend/micro-ui/web/micro-ui-internals/packages/modules/pt/package.json b/frontend/micro-ui/web/micro-ui-internals/packages/modules/pt/package.json index eedef47103f..ed0a2fc8ba4 100644 --- a/frontend/micro-ui/web/micro-ui-internals/packages/modules/pt/package.json +++ b/frontend/micro-ui/web/micro-ui-internals/packages/modules/pt/package.json @@ -20,6 +20,7 @@ "dependencies": { "axios": "0.21.1", "@upyog/digit-ui-react-components": "^1.7.0-beta.2", + "microbundle-crl": "^0.13.11", "lodash.merge": "^4.6.2", "react": "17.0.2", "react-dom": "17.0.2", diff --git a/frontend/micro-ui/web/micro-ui-internals/packages/modules/tl/package.json b/frontend/micro-ui/web/micro-ui-internals/packages/modules/tl/package.json index eddfb18544b..d90e69459cf 100644 --- a/frontend/micro-ui/web/micro-ui-internals/packages/modules/tl/package.json +++ b/frontend/micro-ui/web/micro-ui-internals/packages/modules/tl/package.json @@ -20,6 +20,7 @@ "dependencies": { "@upyog/digit-ui-react-components": "^1.7.0-beta.2", + "microbundle-crl": "^0.13.11", "lodash.merge": "^4.6.2", "react": "17.0.2", "react-dom": "17.0.2", diff --git a/frontend/micro-ui/web/micro-ui-internals/publish.sh b/frontend/micro-ui/web/micro-ui-internals/publish.sh index 01080375e19..d95ab3c2d7d 100644 --- a/frontend/micro-ui/web/micro-ui-internals/publish.sh +++ b/frontend/micro-ui/web/micro-ui-internals/publish.sh @@ -7,15 +7,15 @@ msg() { } # msg "Pre-building all packages" -# yarn build +# yarn install && yarn build # sleep 5 msg "Building and publishing libraries" -cd "$BASEDIR/packages/libraries" && rm -rf node_modules && rm -rf dist && yarn build && npm publish --access public --tag upyog-2.0 +cd "$BASEDIR/packages/libraries" && rm -rf node_modules && rm -rf dist && yarn install && yarn build && npm publish --access public --tag upyog-2.0 msg "Building and publishing react-components" -cd "$BASEDIR/packages/react-components" && rm -rf node_modules && rm -rf dist && yarn build && npm publish --access public --tag upyog-2.0 +cd "$BASEDIR/packages/react-components" && rm -rf node_modules && rm -rf dist && yarn install && yarn build && npm publish --access public --tag upyog-2.0 # sleep 10 # msg "Updating dependencies" @@ -23,49 +23,49 @@ cd "$BASEDIR/packages/react-components" && rm -rf node_modules && rm -rf dist # sleep 5 msg "Building and publishing PGR module" -cd "$BASEDIR/packages/modules/pgr" && rm -rf node_modules && rm -rf dist && yarn build && npm publish --access public --tag upyog-2.0 +cd "$BASEDIR/packages/modules/pgr" && rm -rf node_modules && rm -rf dist && yarn install && yarn build && npm publish --access public --tag upyog-2.0 msg "Building and publishing FSM module" -cd "$BASEDIR/packages/modules/fsm" && rm -rf node_modules && rm -rf dist && yarn build && npm publish --access public --tag upyog-2.0 +cd "$BASEDIR/packages/modules/fsm" && rm -rf node_modules && rm -rf dist && yarn install && yarn build && npm publish --access public --tag upyog-2.0 msg "Building and publishing PT module" -cd "$BASEDIR/packages/modules/pt" && rm -rf node_modules && rm -rf dist && yarn build && npm publish --access public --tag upyog-2.0 +cd "$BASEDIR/packages/modules/pt" && rm -rf node_modules && rm -rf dist && yarn install && yarn build && npm publish --access public --tag upyog-2.0 msg "Building and publishing DSS module" -cd "$BASEDIR/packages/modules/dss" && rm -rf node_modules && rm -rf dist && yarn build && npm publish --access public --tag upyog-2.0 +cd "$BASEDIR/packages/modules/dss" && rm -rf node_modules && rm -rf dist && yarn install && yarn build && npm publish --access public --tag upyog-2.0 msg "Building and publishing Common module" -cd "$BASEDIR/packages/modules/common" && rm -rf node_modules && rm -rf dist && yarn build && npm publish --access public --tag upyog-2.0 +cd "$BASEDIR/packages/modules/common" && rm -rf node_modules && rm -rf dist && yarn install && yarn build && npm publish --access public --tag upyog-2.0 msg "Building and publishing Core module" -cd "$BASEDIR/packages/modules/core" && rm -rf node_modules && rm -rf dist && yarn build && npm publish --access public --tag upyog-2.0 +cd "$BASEDIR/packages/modules/core" && rm -rf node_modules && rm -rf dist && yarn install && yarn build && npm publish --access public --tag upyog-2.0 msg "Building and publishing OBPS module" -cd "$BASEDIR/packages/modules/obps" && rm -rf node_modules && rm -rf dist && yarn build && npm publish --access public --tag upyog-2.0 +cd "$BASEDIR/packages/modules/obps" && rm -rf node_modules && rm -rf dist && yarn install && yarn build && npm publish --access public --tag upyog-2.0 msg "Building and publishing tl module" -cd "$BASEDIR/packages/modules/tl" && rm -rf node_modules && rm -rf dist && yarn build && npm publish --access public --tag upyog-2.0 +cd "$BASEDIR/packages/modules/tl" && rm -rf node_modules && rm -rf dist && yarn install && yarn build && npm publish --access public --tag upyog-2.0 msg "Building and publishing bills module" -cd "$BASEDIR/packages/modules/bills" && rm -rf node_modules && rm -rf dist && yarn build && npm publish --access public --tag upyog-2.0 +cd "$BASEDIR/packages/modules/bills" && rm -rf node_modules && rm -rf dist && yarn install && yarn build && npm publish --access public --tag upyog-2.0 msg "Building and publishing noc module" -cd "$BASEDIR/packages/modules/noc" && rm -rf node_modules && rm -rf dist && yarn build && npm publish --access public --tag upyog-2.0 +cd "$BASEDIR/packages/modules/noc" && rm -rf node_modules && rm -rf dist && yarn install && yarn build && npm publish --access public --tag upyog-2.0 msg "Building and publishing commonPt module" -cd "$BASEDIR/packages/modules/commonPt" && rm -rf node_modules && rm -rf dist && yarn build && npm publish --access public --tag upyog-2.0 +cd "$BASEDIR/packages/modules/commonPt" && rm -rf node_modules && rm -rf dist && yarn install && yarn build && npm publish --access public --tag upyog-2.0 msg "Building and publishing engagement module" -cd "$BASEDIR/packages/modules/engagement" && rm -rf node_modules && rm -rf dis && yarn build && npm publish --access public --tag upyog-2.0 +cd "$BASEDIR/packages/modules/engagement" && rm -rf node_modules && rm -rf dis && yarn install && yarn build && npm publish --access public --tag upyog-2.0 msg "Building and publishing receipts module" -cd "$BASEDIR/packages/modules/receipts" && rm -rf node_modules && rm -rf dist && yarn build && npm publish --access public --tag upyog-2.0 +cd "$BASEDIR/packages/modules/receipts" && rm -rf node_modules && rm -rf dist && yarn install && yarn build && npm publish --access public --tag upyog-2.0 msg "Building and publishing hrms module" -cd "$BASEDIR/packages/modules/hrms" && rm -rf node_modules && rm -rf dist && yarn build&& npm publish --access public --tag upyog-2.0 +cd "$BASEDIR/packages/modules/hrms" && rm -rf node_modules && rm -rf dist && yarn install && yarn build&& npm publish --access public --tag upyog-2.0 msg "Building and publishing ws module" -cd "$BASEDIR/packages/modules/ws" && rm -rf node_modules && rm -rf dist && yarn build && npm publish --access public --tag upyog-2.0 +cd "$BASEDIR/packages/modules/ws" && rm -rf node_modules && rm -rf dist && yarn install && yarn build && npm publish --access public --tag upyog-2.0 msg "Building and publishing mCollect module" -cd "$BASEDIR/packages/modules/mCollect" && rm -rf node_modules && rm -rf dist && yarn build && npm publish --access public --tag upyog-2.0 +cd "$BASEDIR/packages/modules/mCollect" && rm -rf node_modules && rm -rf dist && yarn install && yarn build && npm publish --access public --tag upyog-2.0