gen-jhipster
Version:
VHipster - Spring Boot + Angular/React/Vue in one handy generator
216 lines (215 loc) • 8.33 kB
TypeScript
declare const command: {
readonly configs: {
readonly ciCd: {
readonly argument: {
readonly type: ArrayConstructor;
};
readonly prompt: {
readonly type: "checkbox";
readonly message: "What CI/CD pipeline do you want to generate?";
};
readonly choices: readonly [{
readonly name: "GitHub Actions";
readonly value: "github";
}, {
readonly name: "Jenkins pipeline";
readonly value: "jenkins";
}, {
readonly name: "GitLab CI";
readonly value: "gitlab";
}, {
readonly name: "Azure Pipelines";
readonly value: "azure";
}, {
readonly name: "Travis CI";
readonly value: "travis";
}, {
readonly name: "CircleCI";
readonly value: "circle";
}];
readonly internal: {
readonly type: ArrayConstructor;
};
readonly scope: "context";
};
readonly ciCdIntegrations: {
readonly prompt: {
readonly type: "checkbox";
readonly message: "What tasks/integrations do you want to include ?";
};
readonly choices: readonly [{
readonly name: `Deploy your application to an ${string}`;
readonly value: "deploy";
}, {
readonly name: `Analyze your code with ${string}`;
readonly value: "sonar";
}, {
readonly name: `Build and publish a ${string} image`;
readonly value: "publishDocker";
}, {
readonly name: `${string}: dependency scanning for security vulnerabilities (requires SNYK_TOKEN)`;
readonly value: "snyk";
}, {
readonly name: `Deploy to ${string} (requires HEROKU_API_KEY set on CI service)`;
readonly value: "heroku";
}, {
readonly name: `Would you like to enable the ${string} (requires both CYPRESS_PROJECT_ID and CYPRESS_RECORD_KEY set on CI service)`;
readonly value: "cypressDashboard";
}];
readonly internal: {
readonly type: ArrayConstructor;
};
readonly scope: "context";
};
readonly insideDocker: {
readonly prompt: {
readonly when: (answers: any) => any;
readonly type: "confirm";
readonly message: "Would you like to perform the build in a Docker container ?";
readonly default: false;
};
readonly internal: {
readonly type: BooleanConstructor;
};
readonly scope: "context";
};
readonly sendBuildToGitlab: {
readonly prompt: {
readonly when: (answers: any) => any;
readonly type: "confirm";
readonly message: "Would you like to send build status to GitLab ?";
readonly default: false;
};
readonly internal: {
readonly type: BooleanConstructor;
};
readonly scope: "context";
};
readonly artifactorySnapshotsId: {
readonly prompt: {
readonly when: (answers: any) => any;
readonly type: "input";
readonly message: `${string}: what is the ID of distributionManagement for snapshots ?`;
};
readonly default: "snapshots";
readonly internal: {
readonly type: StringConstructor;
};
readonly scope: "context";
};
readonly artifactorySnapshotsUrl: {
readonly prompt: {
readonly when: (answers: any) => any;
readonly type: "input";
readonly message: `${string}: what is the URL of distributionManagement for snapshots ?`;
};
readonly default: "http://artifactory:8081/artifactory/libs-snapshot";
readonly internal: {
readonly type: StringConstructor;
};
readonly scope: "context";
};
readonly artifactoryReleasesId: {
readonly prompt: {
readonly when: (answers: any) => any;
readonly type: "input";
readonly message: `${string}: what is the ID of distributionManagement for releases ?`;
};
readonly default: "releases";
readonly internal: {
readonly type: StringConstructor;
};
readonly scope: "context";
};
readonly artifactoryReleasesUrl: {
readonly prompt: {
readonly when: (answers: any) => any;
readonly type: "input";
readonly message: `${string}: what is the URL of distributionManagement for releases ?`;
};
readonly default: "http://artifactory:8081/artifactory/libs-release";
readonly internal: {
readonly type: StringConstructor;
};
readonly scope: "context";
};
readonly sonarName: {
readonly prompt: {
readonly when: (answers: any) => any;
readonly type: "input";
readonly message: `${string}: what is the name of the Sonar server ?`;
};
readonly default: "sonar";
readonly internal: {
readonly type: StringConstructor;
};
readonly scope: "context";
};
readonly sonarUrl: {
readonly prompt: {
readonly when: (answers: any) => any;
readonly type: "input";
readonly message: `${string}: what is the URL of the Sonar server ?`;
};
readonly default: "https://sonarcloud.io";
readonly internal: {
readonly type: StringConstructor;
};
readonly scope: "context";
};
readonly sonarOrga: {
readonly prompt: {
readonly when: (answers: any) => any;
readonly type: "input";
readonly message: `${string}: what is the Organization of the Sonar server ?`;
};
readonly internal: {
readonly type: StringConstructor;
};
readonly scope: "context";
};
readonly dockerImage: {
readonly prompt: ({ jhipsterConfigWithDefaults: config }: any) => {
when: (answers: any) => any;
type: "input";
message: string;
default: () => string;
};
readonly internal: {
readonly type: StringConstructor;
};
readonly scope: "context";
};
readonly herokuAppName: {
readonly prompt: {
readonly when: (answers: any) => any;
readonly type: "input";
readonly message: `${string}: name of your Heroku Application ?`;
};
readonly internal: {
readonly type: StringConstructor;
};
readonly scope: "context";
readonly default: (this: any) => string;
};
readonly buildTool: {
readonly cli: {
readonly hide: true;
readonly name: "build";
readonly type: StringConstructor;
};
readonly prompt: undefined;
readonly choices: readonly [{
readonly name: "Maven";
readonly value: "maven";
}, {
readonly name: "Gradle";
readonly value: "gradle";
}];
readonly default: "maven";
readonly description: "Provide build tool for the application when skipping server side generation";
readonly scope: "storage";
};
};
};
export default command;