-
Notifications
You must be signed in to change notification settings - Fork 277
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[create-sitecore-jss] New initializer journey for Angular (#1845)
* sxp/xmc journey for angular * add stub initializers
- Loading branch information
1 parent
5f22d45
commit 6eb8615
Showing
6 changed files
with
103 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
packages/create-sitecore-jss/src/initializers/angular-sxp/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
packages/create-sitecore-jss/src/initializers/angular-xmcloud/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
packages/create-sitecore-jss/src/initializers/node-xmcloud-proxy/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |