create-sitecore-jss 22.9.0-canary.2 → 22.9.0-canary.21
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.
- package/dist/InitializerFactory.js +17 -7
- package/dist/bin.js +17 -7
- package/dist/common/processes/transform.js +19 -9
- package/dist/common/utils/helpers.js +17 -7
- package/dist/init-runner.js +17 -7
- package/dist/initializers/angular-sxp/index.js +17 -7
- package/dist/initializers/angular-xmcloud/index.js +17 -7
- package/dist/initializers/nextjs/index.js +17 -7
- package/dist/initializers/nextjs-multisite/index.js +17 -7
- package/dist/initializers/nextjs-styleguide/index.js +17 -7
- package/dist/initializers/nextjs-styleguide-tracking/index.js +17 -7
- package/dist/initializers/nextjs-sxa/index.js +17 -7
- package/dist/initializers/nextjs-xmcloud/index.js +17 -7
- package/dist/initializers/react/index.js +17 -7
- package/dist/templates/angular/angular.json +8 -46
- package/dist/templates/angular/package.json +12 -9
- package/dist/templates/angular-xmcloud/package.json +2 -2
- package/dist/templates/nextjs/package.json +6 -6
- package/dist/templates/nextjs-xmcloud/package.json +3 -3
- package/dist/templates/node-headless-ssr-experience-edge/package.json +4 -4
- package/dist/templates/node-headless-ssr-proxy/package.json +6 -6
- package/dist/templates/node-headless-ssr-proxy/src/index.ts +1 -1
- package/dist/templates/node-xmcloud-proxy/package.json +7 -7
- package/dist/templates/node-xmcloud-proxy/src/index.ts +1 -1
- package/dist/templates/react/package.json +24 -24
- package/dist/templates/react/server/server.webpack.config.js +3 -3
- package/dist/templates/react/src/setupProxy.js +6 -6
- package/dist/templates/vue/package.json +4 -4
- package/package.json +20 -22
- package/dist/templates/angular/e2e/app.e2e-spec.ts +0 -14
- package/dist/templates/angular/e2e/app.po.ts +0 -11
- package/dist/templates/angular/e2e/tsconfig.e2e.json +0 -15
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
36
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
37
|
return new (P || (P = Promise))(function (resolve, reject) {
|
package/dist/bin.js
CHANGED
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
36
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
37
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
36
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
37
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -38,7 +48,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
38
48
|
exports.transform = exports.populateEjsData = exports.diffAndWriteFiles = exports.diffFiles = exports.mergeEnv = exports.merge = exports.transformFilename = void 0;
|
|
39
49
|
const chalk_1 = __importDefault(require("chalk"));
|
|
40
50
|
const fs_extra_1 = __importDefault(require("fs-extra"));
|
|
41
|
-
const glob_1 =
|
|
51
|
+
const glob_1 = require("glob");
|
|
42
52
|
const path_1 = __importStar(require("path"));
|
|
43
53
|
const dotenv_1 = require("dotenv");
|
|
44
54
|
const ejs_1 = require("ejs");
|
|
@@ -213,7 +223,7 @@ const transform = (templatePath_1, answers_1, ...args_1) => __awaiter(void 0, [t
|
|
|
213
223
|
}
|
|
214
224
|
const ejsData = (0, exports.populateEjsData)(answers);
|
|
215
225
|
// the templates to be run through ejs render or copied directly
|
|
216
|
-
const files = glob_1.
|
|
226
|
+
const files = glob_1.glob.sync('**/*', { cwd: templatePath, dot: true, nodir: true });
|
|
217
227
|
for (const file of files) {
|
|
218
228
|
try {
|
|
219
229
|
let pathToNewFile = `${destinationPath}${path_1.sep}${file}`;
|
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
36
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
37
|
return new (P || (P = Promise))(function (resolve, reject) {
|
package/dist/init-runner.js
CHANGED
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
36
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
37
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
36
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
37
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
36
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
37
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
36
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
37
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
36
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
37
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
36
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
37
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
36
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
37
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
36
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
37
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
36
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
37
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
36
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
37
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -19,13 +19,8 @@
|
|
|
19
19
|
"main": "src/main.ts",
|
|
20
20
|
"tsConfig": "src/tsconfig.app.json",
|
|
21
21
|
"polyfills": "src/polyfills.ts",
|
|
22
|
-
"assets": [
|
|
23
|
-
|
|
24
|
-
"src/favicon.ico"
|
|
25
|
-
],
|
|
26
|
-
"styles": [
|
|
27
|
-
"src/styles.css"
|
|
28
|
-
],
|
|
22
|
+
"assets": ["src/assets", "src/favicon.ico"],
|
|
23
|
+
"styles": ["src/styles.css"],
|
|
29
24
|
"scripts": [],
|
|
30
25
|
"allowedCommonJsDependencies": [
|
|
31
26
|
"zen-observable",
|
|
@@ -67,20 +62,20 @@
|
|
|
67
62
|
"serve": {
|
|
68
63
|
"builder": "@angular-builders/custom-webpack:dev-server",
|
|
69
64
|
"options": {
|
|
70
|
-
"
|
|
65
|
+
"buildTarget": "<%- appName %>:build",
|
|
71
66
|
"port": 3000,
|
|
72
67
|
"proxyConfig": "proxy.conf.js"
|
|
73
68
|
},
|
|
74
69
|
"configurations": {
|
|
75
70
|
"production": {
|
|
76
|
-
"
|
|
71
|
+
"buildTarget": "<%- appName %>:build:production"
|
|
77
72
|
}
|
|
78
73
|
}
|
|
79
74
|
},
|
|
80
75
|
"extract-i18n": {
|
|
81
76
|
"builder": "@angular-devkit/build-angular:extract-i18n",
|
|
82
77
|
"options": {
|
|
83
|
-
"
|
|
78
|
+
"buildTarget": "<%- appName %>:build"
|
|
84
79
|
}
|
|
85
80
|
},
|
|
86
81
|
"test": {
|
|
@@ -91,22 +86,14 @@
|
|
|
91
86
|
"polyfills": "src/polyfills.ts",
|
|
92
87
|
"tsConfig": "src/tsconfig.spec.json",
|
|
93
88
|
"scripts": [],
|
|
94
|
-
"styles": [
|
|
95
|
-
|
|
96
|
-
],
|
|
97
|
-
"assets": [
|
|
98
|
-
"src/assets",
|
|
99
|
-
"src/favicon.ico"
|
|
100
|
-
]
|
|
89
|
+
"styles": ["src/styles.css"],
|
|
90
|
+
"assets": ["src/assets", "src/favicon.ico"]
|
|
101
91
|
}
|
|
102
92
|
},
|
|
103
93
|
"lint": {
|
|
104
94
|
"builder": "@angular-eslint/builder:lint",
|
|
105
95
|
"options": {
|
|
106
|
-
"lintFilePatterns": [
|
|
107
|
-
"src/**/*.ts",
|
|
108
|
-
"src/**/*.html"
|
|
109
|
-
]
|
|
96
|
+
"lintFilePatterns": ["src/**/*.ts", "src/**/*.html"]
|
|
110
97
|
}
|
|
111
98
|
},
|
|
112
99
|
"server": {
|
|
@@ -132,31 +119,6 @@
|
|
|
132
119
|
}
|
|
133
120
|
}
|
|
134
121
|
}
|
|
135
|
-
},
|
|
136
|
-
"angular-e2e": {
|
|
137
|
-
"root": "",
|
|
138
|
-
"sourceRoot": "",
|
|
139
|
-
"projectType": "application",
|
|
140
|
-
"architect": {
|
|
141
|
-
"e2e": {
|
|
142
|
-
"builder": "@angular-devkit/build-angular:protractor",
|
|
143
|
-
"options": {
|
|
144
|
-
"protractorConfig": "./protractor.conf.js",
|
|
145
|
-
"devServerTarget": "<%- appName %>:serve"
|
|
146
|
-
}
|
|
147
|
-
},
|
|
148
|
-
"lint": {
|
|
149
|
-
"builder": "@angular-eslint/angular-eslint",
|
|
150
|
-
"options": {
|
|
151
|
-
"tsConfig": [
|
|
152
|
-
"e2e/tsconfig.e2e.json"
|
|
153
|
-
],
|
|
154
|
-
"exclude": [
|
|
155
|
-
"**/node_modules/**"
|
|
156
|
-
]
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
122
|
}
|
|
161
123
|
},
|
|
162
124
|
"schematics": {
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
"scripts": {
|
|
17
17
|
"ng": "ng",
|
|
18
18
|
"lint": "ng lint <%- appName %> --fix",
|
|
19
|
-
"e2e": "ng e2e",
|
|
20
19
|
"jss": "jss",
|
|
21
20
|
"start:connected": "npm-run-all --serial bootstrap start:angular start:watch-components",
|
|
22
21
|
"build": "npm-run-all --serial bootstrap build:client build:server",
|
|
@@ -60,11 +59,11 @@
|
|
|
60
59
|
"@sitecore-jss/sitecore-jss-angular": "<%- version %>",
|
|
61
60
|
"apollo-angular": "~8.0.2",
|
|
62
61
|
"bootstrap": "^5.3.3",
|
|
63
|
-
"core-js": "~3.
|
|
64
|
-
"graphql": "15.
|
|
62
|
+
"core-js": "~3.45.0",
|
|
63
|
+
"graphql": "15.10.1",
|
|
65
64
|
"graphql-tag": "~2.11.0",
|
|
66
|
-
"rxjs": "~7.8.
|
|
67
|
-
"tslib": "^2.
|
|
65
|
+
"rxjs": "~7.8.2",
|
|
66
|
+
"tslib": "^2.8.1",
|
|
68
67
|
"zone.js": "~0.14.7",
|
|
69
68
|
"reflect-metadata": "^0.2.2"
|
|
70
69
|
},
|
|
@@ -83,17 +82,16 @@
|
|
|
83
82
|
"@sitecore-jss/sitecore-jss-cli": "<%- version %>",
|
|
84
83
|
"@sitecore-jss/sitecore-jss-dev-tools": "<%- version %>",
|
|
85
84
|
"@types/jasmine": "~3.6.7",
|
|
86
|
-
"@types/jasminewd2": "~2.0.8",
|
|
87
85
|
"@types/node": "~22.9.0",
|
|
88
86
|
"@typescript-eslint/eslint-plugin": "^8.14.0",
|
|
89
87
|
"@typescript-eslint/parser": "^8.14.0",
|
|
90
88
|
"chalk": "~4.1.0",
|
|
91
|
-
"chokidar": "^
|
|
89
|
+
"chokidar": "^4.0.3",
|
|
92
90
|
"codelyzer": "~6.0.1",
|
|
93
91
|
"constant-case": "^3.0.4",
|
|
94
92
|
"cross-env": "~7.0.3",
|
|
95
93
|
"del-cli": "^5.0.0",
|
|
96
|
-
"dotenv": "^
|
|
94
|
+
"dotenv": "^17.2.1",
|
|
97
95
|
"dotenv-webpack": "^7.1.0",
|
|
98
96
|
"eslint": "^8.56.0",
|
|
99
97
|
"eslint-plugin-import": "2.29.1",
|
|
@@ -109,8 +107,13 @@
|
|
|
109
107
|
"karma-jasmine-html-reporter": "~1.5.4",
|
|
110
108
|
"move-cli": "^2.0.0",
|
|
111
109
|
"npm-run-all2": "^7.0.1",
|
|
112
|
-
|
|
110
|
+
|
|
113
111
|
"ts-node": "~10.9.2",
|
|
114
112
|
"typescript": "~5.4.0"
|
|
113
|
+
},
|
|
114
|
+
"overrides": {
|
|
115
|
+
"request": {
|
|
116
|
+
"form-data": "^2.5.5"
|
|
117
|
+
}
|
|
115
118
|
}
|
|
116
119
|
}
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
"prepare:proxy-build": "ts-node --project src/tsconfig.webpack-server.json ./scripts/proxy-build.ts"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@sitecore-cloudsdk/core": "^0.5.
|
|
12
|
-
"@sitecore-cloudsdk/events": "^0.5.
|
|
11
|
+
"@sitecore-cloudsdk/core": "^0.5.2",
|
|
12
|
+
"@sitecore-cloudsdk/events": "^0.5.2",
|
|
13
13
|
"font-awesome": "^4.7.0",
|
|
14
14
|
"sass": "^1.52.3",
|
|
15
15
|
"sass-alias": "^1.0.5"
|
|
@@ -26,24 +26,24 @@
|
|
|
26
26
|
"license": "Apache-2.0",
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@sitecore-jss/sitecore-jss-nextjs": "<%- version %>",
|
|
29
|
-
"next": "^15.
|
|
29
|
+
"next": "^15.4.6",
|
|
30
30
|
"next-localization": "^0.12.0",
|
|
31
31
|
"react": "^19.1.0",
|
|
32
32
|
"react-dom": "^19.1.0",
|
|
33
|
-
"sharp": "0.
|
|
33
|
+
"sharp": "0.34.3"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@sitecore-jss/sitecore-jss-cli": "<%- version %>",
|
|
37
37
|
"@sitecore-jss/sitecore-jss-dev-tools": "<%- version %>",
|
|
38
38
|
"@types/node": "^22.9.0",
|
|
39
|
-
"@types/react": "^19.1.
|
|
40
|
-
"@types/react-dom": "^19.1.
|
|
39
|
+
"@types/react": "^19.1.7",
|
|
40
|
+
"@types/react-dom": "^19.1.7",
|
|
41
41
|
"@typescript-eslint/eslint-plugin": "^8.14.0",
|
|
42
42
|
"@typescript-eslint/parser": "^8.14.0",
|
|
43
43
|
"chalk": "~4.1.2",
|
|
44
|
-
"chokidar": "~
|
|
44
|
+
"chokidar": "~4.0.3",
|
|
45
45
|
"constant-case": "^3.0.4",
|
|
46
|
-
"cross-env": "~
|
|
46
|
+
"cross-env": "~10.0.0",
|
|
47
47
|
"dotenv-flow": "^4.1.0",
|
|
48
48
|
"eslint": "^8.56.0",
|
|
49
49
|
"eslint-config-next": "^13.1.5",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dependencies": {
|
|
3
3
|
"@sitecore/components": "~2.1.0",
|
|
4
|
-
"@sitecore-cloudsdk/core": "^0.5.
|
|
5
|
-
"@sitecore-cloudsdk/events": "^0.5.
|
|
6
|
-
"@sitecore-feaas/clientside": "^0.6.
|
|
4
|
+
"@sitecore-cloudsdk/core": "^0.5.2",
|
|
5
|
+
"@sitecore-cloudsdk/events": "^0.5.2",
|
|
6
|
+
"@sitecore-feaas/clientside": "^0.6.2"
|
|
7
7
|
}
|
|
8
8
|
}
|
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@sitecore-jss/sitecore-jss": "<%- version %>",
|
|
23
23
|
"compression": "^1.7.4",
|
|
24
|
-
"express": "^
|
|
25
|
-
"dotenv": "^
|
|
24
|
+
"express": "^5.1.0",
|
|
25
|
+
"dotenv": "^17.2.1"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/compression": "^1.7.2",
|
|
29
|
-
"@types/express": "^
|
|
29
|
+
"@types/express": "^5.0.3",
|
|
30
30
|
"ts-node": "^10.9.1",
|
|
31
|
-
"typescript": "~5.
|
|
31
|
+
"typescript": "~5.9.2"
|
|
32
32
|
},
|
|
33
33
|
"private": true
|
|
34
34
|
}
|
|
@@ -21,19 +21,19 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@sitecore-jss/sitecore-jss": "<%- version %>",
|
|
23
23
|
"@sitecore-jss/sitecore-jss-proxy": "<%- version %>",
|
|
24
|
-
"agentkeepalive": "^4.
|
|
24
|
+
"agentkeepalive": "^4.6.0",
|
|
25
25
|
"compression": "~1.7.4",
|
|
26
|
-
"express": "~
|
|
26
|
+
"express": "~5.1.0",
|
|
27
27
|
"memory-cache": "^0.2.0",
|
|
28
|
-
"dotenv": "^
|
|
28
|
+
"dotenv": "^17.2.1"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@types/compression": "^1.
|
|
32
|
-
"@types/express": "^
|
|
31
|
+
"@types/compression": "^1.8.1",
|
|
32
|
+
"@types/express": "^5.0.3",
|
|
33
33
|
"@types/memory-cache": "^0.2.2",
|
|
34
34
|
"@types/node": "^22.9.0",
|
|
35
35
|
"ts-node": "^10.9.1",
|
|
36
|
-
"typescript": "~5.
|
|
36
|
+
"typescript": "~5.9.2"
|
|
37
37
|
},
|
|
38
38
|
"private": true
|
|
39
39
|
}
|
|
@@ -11,16 +11,16 @@
|
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@sitecore-jss/sitecore-jss-proxy": "<%- version %>",
|
|
14
|
-
"compression": "^1.
|
|
15
|
-
"express": "^
|
|
16
|
-
"dotenv": "^
|
|
17
|
-
"http-proxy-middleware": "^3.0.
|
|
14
|
+
"compression": "^1.8.1",
|
|
15
|
+
"express": "^5.1.0",
|
|
16
|
+
"dotenv": "^17.2.1",
|
|
17
|
+
"http-proxy-middleware": "^3.0.5"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@sitecore-jss/sitecore-jss": "<%- version %>",
|
|
21
|
-
"@types/compression": "^1.
|
|
22
|
-
"@types/express": "^
|
|
21
|
+
"@types/compression": "^1.8.1",
|
|
22
|
+
"@types/express": "^5.0.3",
|
|
23
23
|
"ts-node": "^10.9.1",
|
|
24
|
-
"typescript": "~5.
|
|
24
|
+
"typescript": "~5.9.2"
|
|
25
25
|
}
|
|
26
26
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import 'dotenv/config';
|
|
2
2
|
import express, { Response } from 'express';
|
|
3
3
|
import compression from 'compression';
|
|
4
|
-
import { createProxyMiddleware, fixRequestBody } from 'http-proxy-middleware';
|
|
4
|
+
import { legacyCreateProxyMiddleware as createProxyMiddleware, fixRequestBody } from 'http-proxy-middleware';
|
|
5
5
|
import { debug } from '@sitecore-jss/sitecore-jss';
|
|
6
6
|
import { editingRouter, healthCheck } from '@sitecore-jss/sitecore-jss-proxy';
|
|
7
7
|
import { config, graphQLEndpoint } from './config';
|
|
@@ -27,14 +27,14 @@
|
|
|
27
27
|
},
|
|
28
28
|
"license": "Apache-2.0",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@apollo/client": "^3.
|
|
30
|
+
"@apollo/client": "^3.13.9",
|
|
31
31
|
"@sitecore-jss/sitecore-jss-react": "<%- version %>",
|
|
32
|
-
"bootstrap": "^5.
|
|
33
|
-
"cross-fetch": "^
|
|
32
|
+
"bootstrap": "^5.3.7",
|
|
33
|
+
"cross-fetch": "^4.1.0",
|
|
34
34
|
"fast-deep-equal": "^3.1.3",
|
|
35
|
-
"graphql": "~16.
|
|
35
|
+
"graphql": "~16.11.0",
|
|
36
36
|
"graphql-tag": "~2.12.6",
|
|
37
|
-
"i18next": "^22.
|
|
37
|
+
"i18next": "^22.5.1",
|
|
38
38
|
"react": "^19.1.0",
|
|
39
39
|
"react-app-polyfill": "^3.0.0",
|
|
40
40
|
"react-dom": "^19.1.0",
|
|
@@ -42,38 +42,38 @@
|
|
|
42
42
|
"react-i18next": "~12.0.0",
|
|
43
43
|
"react-router-dom": "~6.4.4",
|
|
44
44
|
"react-scripts": "~5.0.1",
|
|
45
|
-
"serialize-javascript": "^6.0.
|
|
45
|
+
"serialize-javascript": "^6.0.2"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@babel/core": "^7.
|
|
49
|
-
"@babel/eslint-parser": "^7.
|
|
50
|
-
"@babel/plugin-
|
|
51
|
-
"@babel/plugin-
|
|
52
|
-
"@babel/preset-env": "^7.
|
|
53
|
-
"@babel/preset-react": "^7.
|
|
54
|
-
"@babel/register": "~7.
|
|
48
|
+
"@babel/core": "^7.28.0",
|
|
49
|
+
"@babel/eslint-parser": "^7.28.0",
|
|
50
|
+
"@babel/plugin-transform-export-namespace-from": "^7.27.1",
|
|
51
|
+
"@babel/plugin-transform-private-property-in-object": "^7.27.1",
|
|
52
|
+
"@babel/preset-env": "^7.28.0",
|
|
53
|
+
"@babel/preset-react": "^7.27.1",
|
|
54
|
+
"@babel/register": "~7.27.1",
|
|
55
55
|
"@sitecore-jss/sitecore-jss-cli": "<%- version %>",
|
|
56
56
|
"@sitecore-jss/sitecore-jss-dev-tools": "<%- version %>",
|
|
57
57
|
"@sitecore-jss/sitecore-jss-rendering-host": "<%- version %>",
|
|
58
|
-
"babel-loader": "~
|
|
58
|
+
"babel-loader": "~10.0.0",
|
|
59
59
|
"babel-preset-react-app": "~10.0.1",
|
|
60
60
|
"chalk": "~4.1.2",
|
|
61
61
|
"constant-case": "^3.0.4",
|
|
62
|
-
"cross-env": "~
|
|
63
|
-
"cross-spawn": "^7.0.
|
|
64
|
-
"del-cli": "^
|
|
65
|
-
"dotenv": "^
|
|
62
|
+
"cross-env": "~10.0.0",
|
|
63
|
+
"cross-spawn": "^7.0.6",
|
|
64
|
+
"del-cli": "^6.0.0",
|
|
65
|
+
"dotenv": "^17.2.1",
|
|
66
66
|
"eslint": "^8.56.0",
|
|
67
67
|
"eslint-config-prettier": "^8.5.0",
|
|
68
68
|
"eslint-plugin-import": "^2.26.0",
|
|
69
69
|
"eslint-plugin-prettier": "^4.2.1",
|
|
70
70
|
"eslint-plugin-react": "^7.37.5",
|
|
71
71
|
"eslint-plugin-yaml": "^0.5.0",
|
|
72
|
-
"express": "^
|
|
73
|
-
"fs-extra": "^11.1
|
|
72
|
+
"express": "^5.1.0",
|
|
73
|
+
"fs-extra": "^11.3.1",
|
|
74
74
|
"graphql.macro": "~1.4.2",
|
|
75
|
-
"html-loader": "~
|
|
76
|
-
"http-proxy-middleware": "~
|
|
75
|
+
"html-loader": "~5.1.0",
|
|
76
|
+
"http-proxy-middleware": "~3.0.5",
|
|
77
77
|
"move-cli": "^2.0.0",
|
|
78
78
|
"ncp": "^2.0.0",
|
|
79
79
|
"ngrok": "^4.3.3",
|
|
@@ -83,8 +83,8 @@
|
|
|
83
83
|
"react-app-rewired": "^2.2.1",
|
|
84
84
|
"speed-measure-webpack-plugin": "^1.5.0",
|
|
85
85
|
"stats-webpack-plugin": "^0.7.0",
|
|
86
|
-
"webpack": "~5.
|
|
87
|
-
"webpack-cli": "~
|
|
86
|
+
"webpack": "~5.101.0",
|
|
87
|
+
"webpack-cli": "~6.0.1"
|
|
88
88
|
},
|
|
89
89
|
"scripts": {
|
|
90
90
|
"jss": "jss",
|
|
@@ -31,7 +31,7 @@ module.exports = {
|
|
|
31
31
|
use: {
|
|
32
32
|
loader: 'babel-loader',
|
|
33
33
|
options: {
|
|
34
|
-
plugins: ['@babel/plugin-
|
|
34
|
+
plugins: ['@babel/plugin-transform-export-namespace-from'],
|
|
35
35
|
},
|
|
36
36
|
},
|
|
37
37
|
},
|
|
@@ -45,10 +45,10 @@ module.exports = {
|
|
|
45
45
|
presets: [env, reactApp],
|
|
46
46
|
plugins: [
|
|
47
47
|
[
|
|
48
|
-
'@babel/plugin-
|
|
48
|
+
'@babel/plugin-transform-private-methods',
|
|
49
49
|
{ loose: true }
|
|
50
50
|
],
|
|
51
|
-
["@babel/plugin-
|
|
51
|
+
["@babel/plugin-transform-private-property-in-object", { "loose": true }]
|
|
52
52
|
]
|
|
53
53
|
},
|
|
54
54
|
},
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const {
|
|
1
|
+
const { legacyCreateProxyMiddleware } = require('http-proxy-middleware');
|
|
2
2
|
const config = require('./temp/config');
|
|
3
3
|
const { isDisconnected } = require('./util');
|
|
4
4
|
|
|
@@ -8,16 +8,16 @@ module.exports = (app) => {
|
|
|
8
8
|
// see scripts/disconnected-mode-proxy.js
|
|
9
9
|
const proxyUrl = `http://localhost:${process.env.PROXY_PORT || 3042}/`;
|
|
10
10
|
|
|
11
|
-
app.use(
|
|
12
|
-
app.use(
|
|
11
|
+
app.use(legacyCreateProxyMiddleware('/sitecore', { target: proxyUrl }));
|
|
12
|
+
app.use(legacyCreateProxyMiddleware('/data/media', { target: proxyUrl }));
|
|
13
13
|
} else {
|
|
14
14
|
// when in connected mode we want to proxy Sitecore paths
|
|
15
15
|
// off to Sitecore
|
|
16
16
|
|
|
17
|
-
app.use(
|
|
17
|
+
app.use(legacyCreateProxyMiddleware('/sitecore', { target: config.sitecoreApiHost, changeOrigin: true }));
|
|
18
18
|
// media items
|
|
19
|
-
app.use(
|
|
19
|
+
app.use(legacyCreateProxyMiddleware('/-', { target: config.sitecoreApiHost, changeOrigin: true }));
|
|
20
20
|
// visitor identification
|
|
21
|
-
app.use(
|
|
21
|
+
app.use(legacyCreateProxyMiddleware('/layouts', { target: config.sitecoreApiHost, changeOrigin: true }));
|
|
22
22
|
}
|
|
23
23
|
};
|
|
@@ -43,24 +43,24 @@
|
|
|
43
43
|
"install-pre-push-hook": "node ./scripts/install-pre-push-hook.js"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@apollo/client": "^3.
|
|
46
|
+
"@apollo/client": "^3.13.9",
|
|
47
47
|
"@panter/vue-i18next": "~0.15.2",
|
|
48
48
|
"@sitecore-jss/sitecore-jss-vue": "<%- version %>",
|
|
49
49
|
"@vue/apollo-composable": "4.0.0-beta.2",
|
|
50
50
|
"@vue/apollo-option": "^4.0.0",
|
|
51
51
|
"@vue/apollo-ssr": "^4.0.0",
|
|
52
|
-
"bootstrap": "^5.
|
|
52
|
+
"bootstrap": "^5.3.7",
|
|
53
53
|
"cross-fetch": "~3.1.5",
|
|
54
54
|
"graphql": "^16.6.0",
|
|
55
55
|
"register-service-worker": "~1.7.2",
|
|
56
|
-
"serialize-javascript": "^6.0.
|
|
56
|
+
"serialize-javascript": "^6.0.2",
|
|
57
57
|
"vue": "^3.5.12",
|
|
58
58
|
"vue-i18n": "9.1.10",
|
|
59
59
|
"vue-meta": "3.0.0-alpha.10",
|
|
60
60
|
"vue-router": "4.0.16"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@babel/eslint-parser": "^7.
|
|
63
|
+
"@babel/eslint-parser": "^7.28.0",
|
|
64
64
|
"@babel/register": "7.18.9",
|
|
65
65
|
"@sitecore-jss/sitecore-jss-cli": "<%- version %>",
|
|
66
66
|
"@sitecore-jss/sitecore-jss-dev-tools": "<%- version %>",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-sitecore-jss",
|
|
3
|
-
"version": "22.9.0-canary.
|
|
3
|
+
"version": "22.9.0-canary.21",
|
|
4
4
|
"description": "Sitecore JSS initializer",
|
|
5
5
|
"bin": "./dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -30,40 +30,38 @@
|
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"chalk": "^4.1.2",
|
|
33
|
-
"cross-spawn": "^7.0.
|
|
34
|
-
"diff": "^
|
|
35
|
-
"dotenv": "^
|
|
36
|
-
"ejs": "^3.1.
|
|
37
|
-
"fs-extra": "^11.1
|
|
38
|
-
"glob": "^
|
|
33
|
+
"cross-spawn": "^7.0.6",
|
|
34
|
+
"diff": "^8.0.2",
|
|
35
|
+
"dotenv": "^17.2.1",
|
|
36
|
+
"ejs": "^3.1.10",
|
|
37
|
+
"fs-extra": "^11.3.1",
|
|
38
|
+
"glob": "^10.4.5",
|
|
39
39
|
"inquirer": "^8.2.4",
|
|
40
|
-
"minimist": "^1.2.
|
|
40
|
+
"minimist": "^1.2.8"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@types/chai": "^4.3.4",
|
|
44
|
-
"@types/cross-spawn": "^6.0.
|
|
45
|
-
"@types/
|
|
46
|
-
"@types/
|
|
47
|
-
"@types/fs-extra": "^11.0.1",
|
|
48
|
-
"@types/glob": "^8.0.1",
|
|
44
|
+
"@types/cross-spawn": "^6.0.6",
|
|
45
|
+
"@types/ejs": "^3.1.5",
|
|
46
|
+
"@types/fs-extra": "^11.0.4",
|
|
49
47
|
"@types/inquirer": "^9.0.3",
|
|
50
|
-
"@types/minimist": "^1.2.
|
|
48
|
+
"@types/minimist": "^1.2.5",
|
|
51
49
|
"@types/mocha": "^10.0.1",
|
|
52
50
|
"@types/node": "^22.9.0",
|
|
53
51
|
"@types/proxyquire": "^1.3.31",
|
|
54
|
-
"@types/sinon": "17.0.
|
|
52
|
+
"@types/sinon": "17.0.4",
|
|
55
53
|
"@types/sinon-chai": "^4.0.0",
|
|
56
54
|
"chai": "^4.3.7",
|
|
57
|
-
"chokidar": "^
|
|
58
|
-
"del-cli": "^
|
|
55
|
+
"chokidar": "^4.0.3",
|
|
56
|
+
"del-cli": "^6.0.0",
|
|
59
57
|
"eslint": "^8.56.0",
|
|
60
58
|
"mocha": "^10.2.0",
|
|
61
|
-
"nyc": "^
|
|
59
|
+
"nyc": "^17.1.0",
|
|
62
60
|
"proxyquire": "^2.1.3",
|
|
63
|
-
"sinon": "^
|
|
61
|
+
"sinon": "^21.0.0",
|
|
64
62
|
"sinon-chai": "^3.7.0",
|
|
65
|
-
"ts-node": "^10.9.
|
|
66
|
-
"typescript": "~5.
|
|
63
|
+
"ts-node": "^10.9.2",
|
|
64
|
+
"typescript": "~5.9.2"
|
|
67
65
|
},
|
|
68
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "8db16970de59979c85d3c5af647ef99700b2c5ff"
|
|
69
67
|
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { AppPage } from './app.po';
|
|
2
|
-
|
|
3
|
-
describe('basic-app-angular App', () => {
|
|
4
|
-
let page: AppPage;
|
|
5
|
-
|
|
6
|
-
beforeEach(() => {
|
|
7
|
-
page = new AppPage();
|
|
8
|
-
});
|
|
9
|
-
|
|
10
|
-
it('should display welcome message', () => {
|
|
11
|
-
page.navigateTo();
|
|
12
|
-
expect(page.getParagraphText()).toEqual('Welcome to app!');
|
|
13
|
-
});
|
|
14
|
-
});
|