A simple Jahia NPM module created using the NPM module starter project template
If you don't use default configuration for the Docker container name or for Jahia deployments, please duplicate the provided .env.example
as a .env
file and modify its content.
JAHIA_DEPLOY_METHOD
can be curl or docker
You can find the documentation on how to use this module on the Jahia Academy templating tutorial.
- if not created, create a
.env
file with the following variables (adjust the values to your env) :
JAHIA_USER=username:password
JAHIA_HOST=http://localhost:8080
JAHIA_DOCKER_NAME=jahia
JAHIA_DEPLOY_METHOD=docker
JAHIA_DEPLOY_METHOD
could be curl or docker
- Enable Corepack if needed :
enable corepack
- Install the dependencies :
yarn install
- Build and deploy the project :
yarn build && yarn deploy
- Automatically build and deploy the project on file changes :
yarn watch
This command will upgrade yarn to the latest stable release and update the yarn installer in .yarn/releases
yarn set version stable