Skip to content

Commit

Permalink
fixes for publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
jagankumar-egov authored Sep 20, 2024
1 parent fd15507 commit 329d304
Show file tree
Hide file tree
Showing 3 changed files with 87 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publishUIPackages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
# Push events on main branch
- 'master'
# Push events to branches matching refs/heads/mona/octocat
- 'UAT'
- 'FIX'
- 'MUKTA-v2.1-Develop'
- 'MUKTA-DEVELOP-v2.1.1'
paths:
Expand Down
79 changes: 79 additions & 0 deletions frontend/micro-ui/web/micro-ui-internals/publish-package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
{
"name": "egovernments",
"version": "1.0.0",
"main": "index.js",
"workspaces": [
"packages/libraries",
"packages/react-components",
"packages/modules/Estimate",
"packages/modules/RateAnalysis",
"packages/Mukta"
],
"author": "JaganKumar <[email protected]>",
"license": "MIT",
"private": true,
"engines": {
"node": ">=14"
},
"scripts": {
"start": "SKIP_PREFLIGHT_CHECK=true run-s build start:dev",
"sprint": "SKIP_PREFLIGHT_CHECK=true run-s start:script",
"start:dev": "run-p dev:**",
"start:script": "./scripts/create.sh",
"dev:css": "cd packages/css && yarn start",
"publish:css": "cd packages/css && yarn publish --access public",
"dev:libraries": "cd packages/libraries && yarn start",
"dev:components": "cd packages/react-components && yarn start",
"dev:contracts": "cd packages/modules/Contracts && yarn start",
"dev:attendencemgmt": "cd packages/modules/AttendenceMgmt && yarn start",
"dev:masters": "cd packages/modules/Masters && yarn start",
"dev:measurement": "cd packages/modules/Measurement && yarn start",
"dev:project": "cd packages/modules/Project && yarn start",
"dev:estimate": "cd packages/modules/Estimate && yarn start",
"dev:mukta": "cd packages/Mukta && yarn start",
"devD:works": "cd packages/modules/works && yarn start",
"dev:expenditure": "cd packages/modules/Expenditure && yarn start",
"dev:rateAnalysis":"cd packages/modules/RateAnalysis && yarn start",
"dev:example": "cd example && yarn start",
"build": "run-p build:**",
"buildD": "run-p buildD:**",
"build:libraries": "cd packages/libraries && yarn build",
"build:components": "cd packages/react-components && yarn build",
"buildD:attendencemgmt": "cd packages/modules/AttendenceMgmt && yarn build",
"buildD:contracts": "cd packages/modules/Contracts && yarn build",
"buildD:masters": "cd packages/modules/Masters && yarn build",
"build:estimate": "cd packages/modules/Estimate && yarn build",
"buildD:measurement": "cd packages/modules/Measurement && yarn build",
"build:mukta": "cd packages/Mukta && yarn build",
"buildD:project": "cd packages/modules/Project && yarn build",
"buildD:works": "cd packages/modules/works && yarn build",
"buildD:expenditure": "cd packages/modules/Expenditure && yarn build",
"build:rateAnalysis":"cd packages/modules/RateAnalysis && yarn build",
"deploy:jenkins": "./scripts/jenkins.sh",
"clean": "rm -rf node_modules"
},
"devDependencies": {
"husky": "7.0.4",
"lint-staged": "12.3.7",
"npm-run-all": "4.1.5",
"prettier": "2.1.2",
"react-responsive": "9.0.2"
},
"husky": {},
"lint-staged": {
"*.{js,css,md}": "prettier --write"
},
"dependencies": {
"react-google-recaptcha": "^3.1.0",
"lodash": "^4.17.21",
"microbundle-crl": "0.13.11",
"react": "17.0.2",
"react-dom": "17.0.2",
"react-hook-form": "6.15.8",
"react-i18next": "11.16.2",
"react-query": "3.6.1",
"react-router-dom": "5.3.0",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-proposal-unicode-property-regex": "^7.18.6"
}
}
14 changes: 7 additions & 7 deletions frontend/micro-ui/web/micro-ui-internals/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@ msg() {
echo -e "\n\n\033[32;32m$1\033[0m"
}

# msg "Pre-building all packages"
msg "Removing the default package dependency file"
rm package.json

msg "replacing the default package dependency file"
cp publish-package.json package.json

msg "Pre-building all packages"
yarn
# sleep 5

msg "Building and publishing css"
cd "$BASEDIR/packages/css" && yarn&& npm publish --tag mukta-2.1.2-uicomp-v0.2

# msg "Building and publishing libraries"
# cd "$BASEDIR/packages/libraries" && yarn publish --access public

# msg "Building and publishing react-components"
# cd "$BASEDIR/packages/react-components" && yarn publish --access public

# sleep 10
# msg "Updating dependencies"
# cd "$BASEDIR" && yarn upgrade -S @egovernments
Expand Down

0 comments on commit 329d304

Please sign in to comment.