Skip to content
Permalink
Browse files

chore(project-generator): allow disabling of EE activation workflow

  • Loading branch information...
Arne Diekmann
Arne Diekmann committed Oct 7, 2019
1 parent ac51152 commit 1d31f4163f56f3c182661260287ff708e898ff07
@@ -50,12 +50,21 @@ module.exports = class extends Generator {
return response.enterpriseEdition || response.maintenanceReleases;
}
},
{
type: "confirm",
name: "enableActivationWorkflow",
message: "Enable the activation workflow?",
default: false,
when: response => {
return response.enterpriseEdition;
}
},
{
type: "list",
name: "javaVersion",
message: "Which Java version should Magnolia use?",
choices: ["8", "11"],
default: "11"
choices: ["8", "11", "13"],
default: "13"
}
]);
}
@@ -133,11 +142,13 @@ module.exports = class extends Generator {
),
this.answers
);
}

async install() {
const pathToCLI = `${path.dirname(
require.resolve("@magnolia/cli/package.json")
)}/bin/mgnl.js`;
this.spawnCommandSync(pathToCLI, [
await this.spawnCommandSync(pathToCLI, [
"create-light-module",
"-f",
"-p",
@@ -148,15 +159,12 @@ module.exports = class extends Generator {
this.fs.copyTpl(
this.templatePath("pages.yaml.ejs"),
this.destinationPath(
`backend/magnolia/light-modules/${
this.projectName
}/restEndpoints/pages.yaml`
`backend/magnolia/light-modules/${this.projectName}/restEndpoints/pages.yaml`
),
{ restVersion: this.restVersion }
);
}

install() {
this.spawnCommandSync("docker-compose", ["build", "magnolia"]);
this.fs.commit([], () => {
this.spawnCommandSync("docker-compose", ["build", "magnolia"]);
});
}
};
@@ -27,6 +27,18 @@
<artifactId>magnolia-dx-core-webapp</artifactId>
<version>${magnoliaBundleVersion}</version>
<type>pom</type>
<% if (!enableActivationWorkflow) { %>
<exclusions>
<exclusion>
<groupId>info.magnolia.workflow</groupId>
<artifactId>magnolia-module-workflow</artifactId>
</exclusion>
<exclusion>
<groupId>info.magnolia.workflow</groupId>
<artifactId>magnolia-module-workflow-jbpm</artifactId>
</exclusion>
</exclusions>
<% } %>
</dependency>
<% } else { %>
<dependency>

0 comments on commit 1d31f41

Please sign in to comment.
You can’t perform that action at this time.