Skip to content

Jahia/luxe-jahia-demo

Repository files navigation

luxe-jahia-demo

A simple Jahia NPM module created using the NPM module starter project template

Configuration

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

Documentation

You can find the documentation on how to use this module on the Jahia Academy templating tutorial.

Build and deploy

  1. 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

  1. Enable Corepack if needed :

enable corepack

  1. Install the dependencies :

yarn install

  1. Build and deploy the project :

yarn build && yarn deploy

  1. Automatically build and deploy the project on file changes :

yarn watch

How to upgrade yarn version to latest stable

This command will upgrade yarn to the latest stable release and update the yarn installer in .yarn/releases

yarn set version stable