Skip to content

Commit

Permalink
add stub initializers
Browse files Browse the repository at this point in the history
(cherry picked from commit f90190b)
  • Loading branch information
art-alexeyenko committed Jul 22, 2024
1 parent 798edbe commit f59e55d
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 0 deletions.
17 changes: 17 additions & 0 deletions packages/create-sitecore-jss/src/initializers/angular-sxp/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { ClientAppArgs, DEFAULT_APPNAME, Initializer } from '../../common';
import { InitializerResults } from '../../common/Initializer';

export default class AngularXmCloudInitializer implements Initializer {
get isBase(): boolean {
return false;
}

async init(args: ClientAppArgs) {
const response: InitializerResults = {
nextSteps: [],
appName: args.appName || DEFAULT_APPNAME,
};

return response;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { ClientAppArgs, DEFAULT_APPNAME, Initializer } from '../../common';
import { InitializerResults } from '../../common/Initializer';

export default class AngularXmCloudInitializer implements Initializer {
get isBase(): boolean {
return false;
}

async init(args: ClientAppArgs) {
const response: InitializerResults = {
nextSteps: [],
appName: args.appName || DEFAULT_APPNAME,
};

return response;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { Initializer } from '../../common';

export default class AngularXmCloudInitializer implements Initializer {
get isBase(): boolean {
return false;
}

async init() {
const response = {
appName: 'node-xmcloud-proxy',
};

return response;
}
}

0 comments on commit f59e55d

Please sign in to comment.