core-cif-components-examples-frontend
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>com.adobe.commerce.cif</groupId> <artifactId>core-cif-components-examples-frontend</artifactId> <version>2.27.0</version> </dependency>
<?xml version="1.0" encoding="UTF-8"?> <!-- Copyright 2015 Adobe Systems Incorporated Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <!-- ====================================================================== --> <!-- P A R E N T P R O J E C T D E S C R I P T I O N --> <!-- ====================================================================== --> <parent> <groupId>com.adobe.commerce.cif</groupId> <artifactId>core-cif-components-parent</artifactId> <version>2.27.0</version> <relativePath>../../parent/pom.xml</relativePath> </parent> <!-- ====================================================================== --> <!-- P R O J E C T D E S C R I P T I O N --> <!-- ====================================================================== --> <artifactId>core-cif-components-examples-frontend</artifactId> <packaging>pom</packaging> <name>AEM CIF Core Components - Examples Frontend</name> <description>Example Frontend React App for AEM CIF Core Components Library</description> <url>https://github.com/adobe/aem-core-cif-components</url> <!-- ====================================================================== --> <!-- B U I L D D E F I N I T I O N --> <!-- ====================================================================== --> <build> <sourceDirectory>src/main/content/jcr_root</sourceDirectory> <plugins> <plugin> <groupId>com.github.eirslett</groupId> <artifactId>frontend-maven-plugin</artifactId> <configuration> <installDirectory>../../frontend-maven-plugin</installDirectory> <workingDirectory>${basedir}</workingDirectory> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-assembly-plugin</artifactId> <version>3.1.1</version> <executions> <execution> <phase>package</phase> <goals> <goal>single</goal> </goals> <configuration> <descriptors> <descriptor>assembly.xml</descriptor> </descriptors> <appendAssemblyId>false</appendAssemblyId> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.apache.rat</groupId> <artifactId>apache-rat-plugin</artifactId> <configuration> <skip>true</skip> </configuration> </plugin> <plugin> <artifactId>maven-clean-plugin</artifactId> <configuration> <filesets> <fileset> <directory>../ui.apps/src/main/content/jcr_root/apps/cif-components-examples/clientlibs/cif-examples-react</directory> </fileset> </filesets> </configuration> </plugin> </plugins> </build> <profiles> <profile> <id>prod</id> <activation> <activeByDefault>true</activeByDefault> </activation> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-assembly-plugin</artifactId> <version>3.1.1</version> <executions> <execution> <phase>package</phase> <goals> <goal>single</goal> </goals> <configuration> <descriptors> <descriptor>assembly.xml</descriptor> </descriptors> <appendAssemblyId>false</appendAssemblyId> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.apache.rat</groupId> <artifactId>apache-rat-plugin</artifactId> <configuration> <skip>true</skip> </configuration> </plugin> <plugin> <artifactId>maven-clean-plugin</artifactId> <configuration> <filesets> <fileset> <directory>../ui.apps/src/main/content/jcr_root/apps/cif-components-examples/clientlibs/cif-examples-react</directory> </fileset> </filesets> </configuration> </plugin> </plugins> </build> </profile> <profile> <id>fedDev</id> <activation> <activeByDefault>true</activeByDefault> </activation> <build> <plugins> <plugin> <groupId>com.github.eirslett</groupId> <artifactId>frontend-maven-plugin</artifactId> <executions> <execution> <id>Install node and npm</id> <goals> <goal>install-node-and-npm</goal> </goals> </execution> <execution> <id>npm-install</id> <goals> <goal>npm</goal> </goals> </execution> <execution> <id>npm build components</id> <phase>generate-resources</phase> <goals> <goal>npm</goal> </goals> <configuration> <arguments>run webpack:prod</arguments> <workingDirectory>${basedir}/../../react-components</workingDirectory> </configuration> </execution> <execution> <id>npm link</id> <phase>generate-resources</phase> <goals> <goal>npm</goal> </goals> <configuration> <arguments>link</arguments> <workingDirectory>${basedir}/../../react-components</workingDirectory> </configuration> </execution> <execution> <id>npm link components</id> <phase>generate-resources</phase> <goals> <goal>npm</goal> </goals> <configuration> <arguments>link @adobe/aem-core-cif-react-components</arguments> </configuration> </execution> <execution> <id>npm run prod</id> <phase>generate-resources</phase> <goals> <goal>npm</goal> </goals> <configuration> <arguments>run prod</arguments> </configuration> </execution> </executions> </plugin> </plugins> </build> </profile> </profiles> </project>