Skip to content

Conversation

marlowp
Copy link

@marlowp marlowp commented May 14, 2025

This PR adds a new script to package.json to support hybrid builds using the MAPSTORE_COMPILE_DEV=true flag now supported by mapstore-project. See geosolutions-it/mapstore-project#27 in the mapstore-project repository for details on this.

Changes:
Adds a new NPM script:

"compile:dev": "MAPSTORE_COMPILE_DEV=true mapstore-project compile && node postCompile"

This allows the MapStore client to be built with:

  • Source maps
  • Development Webpack mode
  • All production assets (themes, translations, configs)

Why:
This is useful for deploying builds to staging/QA environments where full production content is needed but debugging (e.g., via browser DevTools and source maps) is still required.

Example usage:

npm run compile:dev

This will produce a fully deployable client that is easier to debug in non-local environments.

Closes #2055

@marlowp marlowp changed the title [Fixes #2055] Add compiledev script using MAPSTORE_DEV=true for debug-friendly production builds [Fixes #2055] Add compiledev script using MAPSTORE_COMPILE_DEV=true for debug-friendly production builds Sep 25, 2025
@marlowp marlowp changed the title [Fixes #2055] Add compiledev script using MAPSTORE_COMPILE_DEV=true for debug-friendly production builds [Fixes #2055] Add compile:dev script using MAPSTORE_COMPILE_DEV=true for debug-friendly production builds Oct 7, 2025
@marlowp
Copy link
Author

marlowp commented Oct 7, 2025

Thanks @allyoucanmap, I've made that change now.

@allyoucanmap allyoucanmap merged commit 8a7ce29 into GeoNode:master Oct 7, 2025
1 check passed
@allyoucanmap
Copy link
Collaborator

thanks again @marlowp

dsuren1 added a commit to dsuren1/geonode-mapstore-client that referenced this pull request Oct 9, 2025
…me_series

* commit '89fc69cd1f20ce048a5e0e19baa8a06bfca466a7':
  Fix: 2154 : Download metadata available for everyone (GeoNode#2172)
  [create-pull-request] automated change (GeoNode#2179)
  Add support for uploading/deleting assets from a resource (GeoNode#2174)
  [create-pull-request] automated change (GeoNode#2178)
  [Fixes GeoNode#2055] Add compile:dev script using MAPSTORE_COMPILE_DEV=true for debug-friendly production builds (GeoNode#2056)
  Upgrade to Django 5.2 (GeoNode#2173)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add compile:dev script for building debug-friendly production bundles

2 participants