POD AxaChCore
This is the core for the webub (https://axa.ch).
It contains mostly legacy code and replaces the former frontend-lib
. This pod hooks to the AEM-html and enriches it interactive functionality. It also contains all the css styles, which the webhub needs on the top level.
Scripts
To install the pod locally: npm install @axa-ch/axa-ch-core
DEV commands
-
npm start
start local DEV 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).
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
Worth a read
AEM developers
If you are developing for AEM, you probably want to test local builds directly in AEM.
To do so, change the 'installedPods' config in your manifest.json locally to something like this:
"installedPods": [
{
"axa-ch-core": "file:/Users/benzahler/Documents/code/repos/axa-ch-core",
"type": "basic"
}
]
The file:/ configuration should point to the axa-ch-core base dir in your local file system.
With the manifest above, you can now deploy the specific axa-ch-core pod into AEM:
- in the axa-ch-core directory: 'npm run build'
- in the aem-all directory 'mvn clean install -PautoInstallCombined'