create-sitecore-jss 22.2.0-canary.20 → 22.2.0-canary.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -20,6 +20,9 @@ const chalk_1 = __importDefault(require("chalk"));
|
|
|
20
20
|
* @param {string[]} nextStepsArr next steps to be performed after app is created
|
|
21
21
|
*/
|
|
22
22
|
const nextSteps = (appNames, nextStepsArr) => __awaiter(void 0, void 0, void 0, function* () {
|
|
23
|
+
const successMessage = appNames.length > 1
|
|
24
|
+
? `JSS applications ${chalk_1.default.green(appNames.join(', '))} are ready!`
|
|
25
|
+
: `JSS application ${chalk_1.default.green(appNames[0])} is ready!`;
|
|
23
26
|
console.log(chalk_1.default.red(' -/oyhdmNNNNmdhyo/- '));
|
|
24
27
|
console.log(chalk_1.default.red(' :sdMMMMMMMMMMMMMMMMMMMMds: '));
|
|
25
28
|
console.log(chalk_1.default.red(' :yNMMMMMMMMMMMMMMMMMMMMMMMMMMNy: '));
|
|
@@ -51,7 +54,7 @@ const nextSteps = (appNames, nextStepsArr) => __awaiter(void 0, void 0, void 0,
|
|
|
51
54
|
console.log(chalk_1.default.white(' / // /\\ \\_\\ \\ '));
|
|
52
55
|
console.log(chalk_1.default.white(' \\___/___/___/'));
|
|
53
56
|
console.log();
|
|
54
|
-
console.log(
|
|
57
|
+
console.log(successMessage);
|
|
55
58
|
console.log();
|
|
56
59
|
console.log(chalk_1.default.yellow('Next steps:'));
|
|
57
60
|
nextStepsArr.forEach((step) => {
|
|
@@ -11,7 +11,6 @@ import { JssTranslationClientLoaderService } from './i18n/jss-translation-client
|
|
|
11
11
|
import { JssTranslationLoaderService } from './i18n/jss-translation-loader.service';
|
|
12
12
|
import { GraphQLModule } from './jss-graphql.module';
|
|
13
13
|
import { JssMetaService } from './jss-meta.service';
|
|
14
|
-
import { JssLinkService } from './jss-link.service';
|
|
15
14
|
|
|
16
15
|
@NgModule({
|
|
17
16
|
imports: [
|
|
@@ -33,7 +32,6 @@ import { JssLinkService } from './jss-link.service';
|
|
|
33
32
|
JssContextService,
|
|
34
33
|
JssLayoutService,
|
|
35
34
|
JssMetaService,
|
|
36
|
-
JssLinkService,
|
|
37
35
|
// IMPORTANT: you must set the base href with this token, not a <base> tag in the HTML.
|
|
38
36
|
// the Sitecore Experience Editor will not work correctly when a base tag is used.
|
|
39
37
|
{ provide: APP_BASE_HREF, useValue: '/' },
|
|
@@ -2,7 +2,9 @@ import { Inject, Injectable } from '@angular/core';
|
|
|
2
2
|
import { DOCUMENT } from '@angular/common';
|
|
3
3
|
import { HTMLLink } from '@sitecore-jss/sitecore-jss-angular';
|
|
4
4
|
|
|
5
|
-
@Injectable(
|
|
5
|
+
@Injectable({
|
|
6
|
+
providedIn: 'root',
|
|
7
|
+
})
|
|
6
8
|
export class JssLinkService {
|
|
7
9
|
constructor(@Inject(DOCUMENT) private document: Document) {}
|
|
8
10
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-sitecore-jss",
|
|
3
|
-
"version": "22.2.0-canary.
|
|
3
|
+
"version": "22.2.0-canary.22",
|
|
4
4
|
"description": "Sitecore JSS initializer",
|
|
5
5
|
"bin": "./dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"ts-node": "^10.9.1",
|
|
64
64
|
"typescript": "~4.9.5"
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "beab63322dff1a38c33b3580620377215a8b3ab2"
|
|
67
67
|
}
|