POD PodAhvEasy
This is a Micro Frontend deployable on the AXA.ch WebHub
Prerequisites
Needed to run
Main dependencies
Available Scripts
To install the pod locally: npm install @axa-ch/pod-ahv-easy
DEV commands
-
npm run start
to start DEV environment -
npm run start:local
to start LOCAL environment -
npm run start:dev
to start DEV environment -
npm run start:acc
to start ACC environment -
npm run build
to trigger a ESM build needed for Midgard -
npm run test
to run local tests -
npm run release
to execute a release to NPM (VERY IMPORTANT: Read How To Release on this document). -
npm run format
to format the code -
npm run lint
to run eslint -
npm run lint:fix
to fix linter errors -
npm run type-check
to check types
In order to keep the code clean pre-commit
git-hook is defined. This hook will format your code and check if there are errors.
API
The API base url depends on the stage environment. You can change stage environment by running the appropriate script for desired environment such as npm run start:local
or npm run start:dev
.
How to release
-
update package.json in the
"version": "x.x.x"
field. Please follow semver best practices -
run
npm run release
-
commit to develop, add git tag containg the same version as in step 1 and push
-
Execute jenkins jobs (build & deploy and if all good: promote) with the version added in point 1