Skip to content

Commit

Permalink
feat: watch for pwa updates in plugin (#5)
Browse files Browse the repository at this point in the history
* feat: track PWA update status from global shell

* fix: new deps

* chore: add typescript to project

* fix: update to latest @dhis2/pwa changes

* chore: a bit of clean-up

* refactor: remove old "pluginified app" way for PWA updates

* refactor: clean up which update state is used

* chore: edge case loop warning

* chore: comment

* chore: remove unused patch
  • Loading branch information
KaiVandivier authored Mar 3, 2025
1 parent e57c4ac commit fcbe234
Show file tree
Hide file tree
Showing 11 changed files with 783 additions and 870 deletions.
11 changes: 8 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,32 @@
"postinstall": "patch-package",
"bd": "yarn build && yarn deploy",
"del-adapter": "rm -rf node_modules/@dhis2/app-adapter/build",
"del-pwa": "rm -rf node_modules/@dhis2/pwa/build",
"del-headerbar": "rm -rf node_modules/@dhis2-ui/header-bar/build",
"del-offline": "rm -rf node_modules/@dhis2/app-service-offline/build",
"del-plugin": "rm -rf node_modules/@dhis2/app-service-plugin/build",
"del-nm-cache": "rm -rf .d2/shell/node_modules/.cache",
"cp-adapter": "cp -r ../app-platform/adapter/build node_modules/@dhis2/app-adapter/build",
"cp-pwa": "cp -r ../app-platform/pwa/build node_modules/@dhis2/pwa/build",
"cp-headerbar": "cp -r ../ui/components/header-bar/build node_modules/@dhis2-ui/header-bar/build",
"cp-offline": "cp -r ../app-runtime/services/offline/build node_modules/@dhis2/app-service-offline/build",
"cp-plugin": "cp -r ../app-runtime/services/plugin/build node_modules/@dhis2/app-service-plugin/build",
"import-adapter": "yarn del-adapter && yarn del-nm-cache && yarn cp-adapter && yarn patch-package @dhis2/app-adapter",
"import-pwa": "yarn del-pwa && yarn del-nm-cache && yarn cp-pwa && yarn patch-package @dhis2/pwa",
"import-headerbar": "yarn del-headerbar && yarn del-nm-cache && yarn cp-headerbar && yarn patch-package @dhis2-ui/header-bar",
"import-plugin": "yarn del-plugin && yarn del-nm-cache && yarn cp-plugin && yarn patch-package @dhis2/app-service-plugin",
"import-offline": "yarn del-offline && yarn del-nm-cache && yarn cp-offline"
},
"devDependencies": {
"@dhis2/cli-app-scripts": "^12.3.0",
"@dhis2/cli-style": "^10.7.5",
"@dhis2/cli-style": "^10.7.6",
"@types/react": "^19.0.10",
"patch-package": "^8.0.0",
"postinstall-postinstall": "^2.1.0"
"postinstall-postinstall": "^2.1.0",
"typescript": "^5.7.3"
},
"dependencies": {
"@dhis2/app-runtime": "^3.13.2",
"@dhis2/app-runtime": "^3.14.0",
"@dhis2/pwa": "^12.3.0",
"@dhis2/ui": "^10.1.13",
"react-router-dom": "^6.22.0"
Expand Down
591 changes: 0 additions & 591 deletions patches/@dhis2+app-adapter+12.3.0.patch

This file was deleted.

97 changes: 0 additions & 97 deletions patches/@dhis2+app-service-plugin+3.13.2.patch

This file was deleted.

Loading

0 comments on commit fcbe234

Please sign in to comment.