From f2ed799b8bd7ea09fee0cc9af8d1ea4e7ad5dfa1 Mon Sep 17 00:00:00 2001 From: Jon Koops Date: Thu, 17 Feb 2022 23:10:41 +0100 Subject: [PATCH] Add profile to conditionally build account2 theme (#10267) * Add profile to conditionally build account2 theme * Use a property for activation instead --- themes/pom.xml | 110 +++++++++++++++++++++++++++++-------------------- 1 file changed, 65 insertions(+), 45 deletions(-) diff --git a/themes/pom.xml b/themes/pom.xml index d8d69f6724..e26ab3c85d 100755 --- a/themes/pom.xml +++ b/themes/pom.xml @@ -24,57 +24,12 @@ maven-clean-plugin - - ${dir.account2}/web_modules - ${dir.common}/web_modules - - com.github.eirslett - frontend-maven-plugin - - - - setup-node - - install-node-and-npm - - initialize - - - - compile-account2 - - npm - - generate-resources - - ${dir.account2} - run build --scripts-prepend-node-path - - - - - npm-install-account2 - initialize - - npm - - - ${dir.account2} - ${args.npm.install} - - - - - ${node.version} - ${project.basedir} - - @@ -131,6 +86,71 @@ + + account2 + + + !skipAccount2 + + + + + + maven-clean-plugin + + + + ${dir.account2}/web_modules + + + + + + com.github.eirslett + frontend-maven-plugin + + + + setup-node + + install-node-and-npm + + initialize + + + + compile-account2 + + npm + + generate-resources + + ${dir.account2} + run build --scripts-prepend-node-path + + + + + npm-install-account2 + initialize + + npm + + + ${dir.account2} + ${args.npm.install} + + + + + ${node.version} + ${project.basedir} + + + + + + admin-preview