Run from source in development mode (requirements in the main README "Usage" section):
npm install
npm run devthen browse the demo page: http://localhost:9090/
some useful tools for contributors npm run <scriptname>
startrun in production modedevrun in development modelintrun eslint on the whole repovalidate-custom-configvalidateserver/custom.config.ymlvia the clidocker-buildbuild the docker imagedocker-uprun in local docker-compose containerbenchmarkrun the benchmarks, alias ofnpm start --workspace=benchmark
Benchmarks live in their own npm workspace, which spawns the server by itself (see Benchmarks)
Publishing a new release is a two step flow, driven by the postversion and postpublish scripts in package.json.
Prerequisites: publish rights on the @stefcud/geopicker npm package (npm login) and push rights on the stefcud/geopicker Docker Hub repository (docker login).
- bump the version — creates the version commit and the git tag, then (
postversion) pushes both to the remote:
npm version patch # or: minor, major- publish — pushes the package (
lib/andcli/, seefilesinpackage.json) to the npm registry, then (postpublish) builds the Docker image and pushes it to Docker Hub tagged bothlatestand the new version:
npm publish .