mkovacek / aem-react-webcomponents

Example how to use React Web Components in Adobe Experience Manager (AEM) project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sample AEM project with React Web Components

Sample AEM project with integrated standard HTL and React Web Components.

How to integrate React Web Components

  • check ui.frontend.react module
  • check components /apps/aem-integrations/components/react/*

Modules

The main parts of the template are:

  • core: Java bundle containing all core functionality like OSGi services, listeners or schedulers, as well as component-related Java code such as servlets or request filters.
  • ui.apps: contains the /apps (and /etc) parts of the project, ie JS&CSS clientlibs, components, and templates
  • ui.frontend: dedicated front-end build mechanism (general Webpack project)
  • ui.frontend.react: dedicated front-end build mechanism (React Web Components Webpack project)
  • ui.content: contains sample content using the components from the ui.apps
  • ui.config: contains runmode specific OSGi configs for the project
  • ui.tests: Selenium based UI tests
  • it.tests: Java based integration tests
  • all: a single content package that embeds all of the compiled modules (bundles and content packages) including any vendor dependencies
  • analyse: this module runs analysis on the project which provides additional validation for deploying into AEMaaCS

How to build

To build all the modules and deploy the all package to a local instance of AEM, run in the project root directory the following command:

mvn clean install -PautoInstallSinglePackage -PautoInstallSinglePackagePublish

Note: This project is generated for AEM as Cloud Service

About

Example how to use React Web Components in Adobe Experience Manager (AEM) project

License:Apache License 2.0


Languages

Language:Java 44.7%Language:JavaScript 29.8%Language:HTML 11.7%Language:SCSS 7.4%Language:TypeScript 3.3%Language:Shell 1.3%Language:Dockerfile 1.0%Language:Less 0.7%Language:CSS 0.2%