create-content-sdk-app 2.0.0-canary.8 → 2.0.0

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.
Files changed (68) hide show
  1. package/LICENSE.MD +202 -202
  2. package/dist/initializers/angular/args.js +2 -0
  3. package/dist/initializers/angular/index.js +30 -0
  4. package/dist/initializers/angular/prompts.js +20 -0
  5. package/dist/templates/angular/.postcssrc.json +5 -0
  6. package/dist/templates/angular/.vscode/extensions.json +4 -0
  7. package/dist/templates/angular/README.md +3 -0
  8. package/dist/templates/angular/angular.json +79 -0
  9. package/dist/templates/angular/package.json +58 -0
  10. package/dist/templates/angular/public/favicon.ico +0 -0
  11. package/dist/templates/angular/src/app/app.config.server.ts +12 -0
  12. package/dist/templates/angular/src/app/app.config.ts +31 -0
  13. package/dist/templates/angular/src/app/app.css +0 -0
  14. package/dist/templates/angular/src/app/app.html +1 -0
  15. package/dist/templates/angular/src/app/app.routes.server.ts +15 -0
  16. package/dist/templates/angular/src/app/app.routes.ts +28 -0
  17. package/dist/templates/angular/src/app/app.ts +12 -0
  18. package/dist/templates/angular/src/app/loaders/error.loader.ts +12 -0
  19. package/dist/templates/angular/src/app/loaders/index.ts +14 -0
  20. package/dist/templates/angular/src/app/loaders/not-found.loader.ts +12 -0
  21. package/dist/templates/angular/src/app/loaders/page.loader.ts +15 -0
  22. package/dist/templates/angular/src/app/loaders/stub-utils.ts +83 -0
  23. package/dist/templates/angular/src/app/pages/error.component.ts +124 -0
  24. package/dist/templates/angular/src/app/pages/not-found.component.ts +85 -0
  25. package/dist/templates/angular/src/app/pages/page.component.ts +58 -0
  26. package/dist/templates/angular/src/app/shared/layout.component.ts +106 -0
  27. package/dist/templates/angular/src/index.html +13 -0
  28. package/dist/templates/angular/src/main.server.ts +8 -0
  29. package/dist/templates/angular/src/main.ts +6 -0
  30. package/dist/templates/angular/src/server.ts +65 -0
  31. package/dist/templates/angular/src/styles.css +3 -0
  32. package/dist/templates/angular/tsconfig.json +38 -0
  33. package/dist/templates/angular/tsconfig.spec.json +10 -0
  34. package/dist/templates/nextjs/.cursor/rules/general.mdc +81 -81
  35. package/dist/templates/nextjs/.cursor/rules/javascript.mdc +112 -112
  36. package/dist/templates/nextjs/.cursor/rules/project-setup.mdc +100 -100
  37. package/dist/templates/nextjs/.cursor/rules/sitecore.mdc +150 -150
  38. package/dist/templates/nextjs/.env.container.example +27 -27
  39. package/dist/templates/nextjs/.env.remote.example +51 -51
  40. package/dist/templates/nextjs/.gitattributes +11 -11
  41. package/dist/templates/nextjs/.prettierrc +8 -8
  42. package/dist/templates/nextjs/.vscode/extensions.json +8 -8
  43. package/dist/templates/nextjs/.vscode/launch.json +15 -15
  44. package/dist/templates/nextjs/.windsurfrules +186 -186
  45. package/dist/templates/nextjs/LICENSE.txt +202 -202
  46. package/dist/templates/nextjs/LLMs.txt +179 -179
  47. package/dist/templates/nextjs/eslint.config.mjs +81 -81
  48. package/dist/templates/nextjs/gitignore +28 -28
  49. package/dist/templates/nextjs/package.json +68 -68
  50. package/dist/templates/nextjs/sitecore.config.ts.example +40 -40
  51. package/dist/templates/nextjs/tsconfig.json +40 -40
  52. package/dist/templates/nextjs-app-router/.cursor/rules/app-router-setup.mdc +116 -116
  53. package/dist/templates/nextjs-app-router/.cursor/rules/general.mdc +80 -80
  54. package/dist/templates/nextjs-app-router/.cursor/rules/javascript.mdc +112 -112
  55. package/dist/templates/nextjs-app-router/.cursor/rules/sitecore.mdc +174 -174
  56. package/dist/templates/nextjs-app-router/.env.container.example +27 -27
  57. package/dist/templates/nextjs-app-router/.env.remote.example +51 -51
  58. package/dist/templates/nextjs-app-router/.gitattributes +11 -11
  59. package/dist/templates/nextjs-app-router/.windsurfrules +290 -290
  60. package/dist/templates/nextjs-app-router/LLMs.txt +236 -236
  61. package/dist/templates/nextjs-app-router/eslint.config.mjs +29 -29
  62. package/dist/templates/nextjs-app-router/gitignore +31 -31
  63. package/dist/templates/nextjs-app-router/package.json +54 -54
  64. package/dist/templates/nextjs-app-router/postcss.config.mjs +5 -5
  65. package/dist/templates/nextjs-app-router/sitecore.config.ts.example +40 -40
  66. package/dist/templates/nextjs-app-router/src/app/globals.css +1 -1
  67. package/dist/templates/nextjs-app-router/tsconfig.json +48 -48
  68. package/package.json +2 -2
@@ -1,55 +1,55 @@
1
- {
2
- "name": "content-sdk-nextjs-app-router",
3
- "description": "Application utilizing Content SDK and Next.js",
4
- "version": "0.1.0",
5
- "private": true,
6
- "author": {
7
- "name": "Sitecore Corporation",
8
- "url": "https://doc.sitecore.com/xmc/en/developers/content-sdk/index.html"
9
- },
10
- "repository": {
11
- "type": "git",
12
- "url": "git+https://github.com/sitecore/content-sdk.git"
13
- },
14
- "bugs": {
15
- "url": "https://github.com/sitecore/content-sdk/issues"
16
- },
17
- "license": "Apache-2.0",
18
- "scripts": {
19
- "build": "cross-env NODE_ENV=production npm-run-all --serial sitecore-tools:generate-map sitecore-tools:build next:build",
20
- "lint": "eslint ./src/**/*.tsx ./src/**/*.ts",
21
- "next:build": "next build",
22
- "next:dev": "cross-env NODE_OPTIONS='--inspect' next dev",
23
- "next:start": "next start",
24
- "sitecore-tools:generate-map": "sitecore-tools project component generate-map",
25
- "sitecore-tools:generate-map:watch": "sitecore-tools project component generate-map --watch",
26
- "sitecore-tools:build": "sitecore-tools project build",
27
- "dev": "cross-env NODE_ENV=development npm-run-all --serial sitecore-tools:generate-map sitecore-tools:build --parallel next:dev sitecore-tools:generate-map:watch",
28
- "start": "cross-env-shell NODE_ENV=production npm-run-all --serial build next:start"
29
- },
30
- "dependencies": {
31
- "@sitecore-cloudsdk/core": "^0.5.4",
32
- "@sitecore-cloudsdk/events": "^0.5.4",
33
- "@sitecore-content-sdk/nextjs": "<%- version %>",
34
- "@sitecore-feaas/clientside": "^0.6.0",
35
- "@sitecore/components": "~2.1.0",
36
- "next": "^16.1.1",
37
- "react": "^19.2.1",
38
- "react-dom": "^19.2.1",
39
- "next-intl": "^4.3.5"
40
- },
41
- "devDependencies": {
42
- "@eslint/eslintrc": "^3",
43
- "@sitecore-content-sdk/cli": "<%- version %>",
44
- "@tailwindcss/postcss": "^4",
45
- "@types/node": "^24.10.4",
46
- "@types/react": "^19.2.7",
47
- "@types/react-dom": "^19.2.3",
48
- "cross-env": "^10.0.0",
49
- "eslint": "^9.33.0",
50
- "eslint-config-next": "15.5.3",
51
- "npm-run-all2": "^8.0.4",
52
- "tailwindcss": "^4",
53
- "typescript": "~5.8.3"
54
- }
1
+ {
2
+ "name": "content-sdk-nextjs-app-router",
3
+ "description": "Application utilizing Content SDK and Next.js",
4
+ "version": "0.1.0",
5
+ "private": true,
6
+ "author": {
7
+ "name": "Sitecore Corporation",
8
+ "url": "https://doc.sitecore.com/xmc/en/developers/content-sdk/index.html"
9
+ },
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/sitecore/content-sdk.git"
13
+ },
14
+ "bugs": {
15
+ "url": "https://github.com/sitecore/content-sdk/issues"
16
+ },
17
+ "license": "Apache-2.0",
18
+ "scripts": {
19
+ "build": "cross-env NODE_ENV=production npm-run-all --serial sitecore-tools:generate-map sitecore-tools:build next:build",
20
+ "lint": "eslint ./src/**/*.tsx ./src/**/*.ts",
21
+ "next:build": "next build",
22
+ "next:dev": "cross-env NODE_OPTIONS='--inspect' next dev",
23
+ "next:start": "next start",
24
+ "sitecore-tools:generate-map": "sitecore-tools project component generate-map",
25
+ "sitecore-tools:generate-map:watch": "sitecore-tools project component generate-map --watch",
26
+ "sitecore-tools:build": "sitecore-tools project build",
27
+ "dev": "cross-env NODE_ENV=development npm-run-all --serial sitecore-tools:generate-map sitecore-tools:build --parallel next:dev sitecore-tools:generate-map:watch",
28
+ "start": "cross-env-shell NODE_ENV=production npm-run-all --serial build next:start"
29
+ },
30
+ "dependencies": {
31
+ "@sitecore-cloudsdk/core": "^0.5.4",
32
+ "@sitecore-cloudsdk/events": "^0.5.4",
33
+ "@sitecore-content-sdk/nextjs": "<%- version %>",
34
+ "@sitecore-feaas/clientside": "^0.6.0",
35
+ "@sitecore/components": "~2.1.0",
36
+ "next": "^16.1.1",
37
+ "react": "^19.2.1",
38
+ "react-dom": "^19.2.1",
39
+ "next-intl": "^4.3.5"
40
+ },
41
+ "devDependencies": {
42
+ "@eslint/eslintrc": "^3",
43
+ "@sitecore-content-sdk/cli": "<%- version %>",
44
+ "@tailwindcss/postcss": "^4",
45
+ "@types/node": "^24.10.4",
46
+ "@types/react": "^19.2.7",
47
+ "@types/react-dom": "^19.2.3",
48
+ "cross-env": "^10.0.0",
49
+ "eslint": "^9.33.0",
50
+ "eslint-config-next": "15.5.3",
51
+ "npm-run-all2": "^8.0.4",
52
+ "tailwindcss": "^4",
53
+ "typescript": "~5.8.3"
54
+ }
55
55
  }
@@ -1,5 +1,5 @@
1
- const config = {
2
- plugins: ["@tailwindcss/postcss"],
3
- };
4
-
5
- export default config;
1
+ const config = {
2
+ plugins: ["@tailwindcss/postcss"],
3
+ };
4
+
5
+ export default config;
@@ -1,40 +1,40 @@
1
- import { defineConfig } from '@sitecore-content-sdk/nextjs/config';
2
- /**
3
- * @type {import('@sitecore-content-sdk/nextjs/config').SitecoreConfig}
4
- * See the documentation for `defineConfig`:
5
- * https://doc.sitecore.com/xmc/en/developers/content-sdk/the-sitecore-configuration-file.html
6
- */
7
- export default defineConfig({
8
- api: {
9
- edge: {
10
- contextId:
11
- process.env.SITECORE_EDGE_CONTEXT_ID ||
12
- process.env.NEXT_PUBLIC_SITECORE_EDGE_CONTEXT_ID ||
13
- '',
14
- clientContextId: process.env.NEXT_PUBLIC_SITECORE_EDGE_CONTEXT_ID,
15
- edgeUrl:
16
- process.env.NEXT_PUBLIC_SITECORE_EDGE_PLATFORM_HOSTNAME ||
17
- process.env.SITECORE_EDGE_PLATFORM_HOSTNAME,
18
- },
19
- local: {
20
- apiKey: process.env.NEXT_PUBLIC_SITECORE_API_KEY || '',
21
- apiHost: process.env.NEXT_PUBLIC_SITECORE_API_HOST || '',
22
- },
23
- },
24
- defaultSite: process.env.NEXT_PUBLIC_DEFAULT_SITE_NAME,
25
- defaultLanguage: process.env.NEXT_PUBLIC_DEFAULT_LANGUAGE || 'en',
26
- editingSecret: process.env.SITECORE_EDITING_SECRET,
27
- redirects: {
28
- enabled: true,
29
- locales: ['en'],
30
- },
31
- multisite: {
32
- enabled: true,
33
- useCookieResolution: () => process.env.VERCEL_ENV === 'preview',
34
- },
35
- personalize: {
36
- scope: process.env.NEXT_PUBLIC_PERSONALIZE_SCOPE,
37
- edgeTimeout: parseInt(process.env.PERSONALIZE_PROXY_EDGE_TIMEOUT!, 10),
38
- cdpTimeout: parseInt(process.env.PERSONALIZE_PROXY_EDGE_TIMEOUT!, 10),
39
- },
40
- });
1
+ import { defineConfig } from '@sitecore-content-sdk/nextjs/config';
2
+ /**
3
+ * @type {import('@sitecore-content-sdk/nextjs/config').SitecoreConfig}
4
+ * See the documentation for `defineConfig`:
5
+ * https://doc.sitecore.com/xmc/en/developers/content-sdk/the-sitecore-configuration-file.html
6
+ */
7
+ export default defineConfig({
8
+ api: {
9
+ edge: {
10
+ contextId:
11
+ process.env.SITECORE_EDGE_CONTEXT_ID ||
12
+ process.env.NEXT_PUBLIC_SITECORE_EDGE_CONTEXT_ID ||
13
+ '',
14
+ clientContextId: process.env.NEXT_PUBLIC_SITECORE_EDGE_CONTEXT_ID,
15
+ edgeUrl:
16
+ process.env.NEXT_PUBLIC_SITECORE_EDGE_PLATFORM_HOSTNAME ||
17
+ process.env.SITECORE_EDGE_PLATFORM_HOSTNAME,
18
+ },
19
+ local: {
20
+ apiKey: process.env.NEXT_PUBLIC_SITECORE_API_KEY || '',
21
+ apiHost: process.env.NEXT_PUBLIC_SITECORE_API_HOST || '',
22
+ },
23
+ },
24
+ defaultSite: process.env.NEXT_PUBLIC_DEFAULT_SITE_NAME,
25
+ defaultLanguage: process.env.NEXT_PUBLIC_DEFAULT_LANGUAGE || 'en',
26
+ editingSecret: process.env.SITECORE_EDITING_SECRET,
27
+ redirects: {
28
+ enabled: true,
29
+ locales: ['en'],
30
+ },
31
+ multisite: {
32
+ enabled: true,
33
+ useCookieResolution: () => process.env.VERCEL_ENV === 'preview',
34
+ },
35
+ personalize: {
36
+ scope: process.env.NEXT_PUBLIC_PERSONALIZE_SCOPE,
37
+ edgeTimeout: parseInt(process.env.PERSONALIZE_PROXY_EDGE_TIMEOUT!, 10),
38
+ cdpTimeout: parseInt(process.env.PERSONALIZE_PROXY_EDGE_TIMEOUT!, 10),
39
+ },
40
+ });
@@ -1 +1 @@
1
- @import "tailwindcss";
1
+ @import "tailwindcss";
@@ -1,48 +1,48 @@
1
- {
2
- "compilerOptions": {
3
- "baseUrl": ".",
4
- "paths": {
5
- "components/*": [
6
- "src/components/*"
7
- ],
8
- "lib/*": [
9
- "src/lib/*"
10
- ],
11
- "temp/*": [
12
- "src/temp/*"
13
- ],
14
- "assets/*": [
15
- "src/assets/*"
16
- ],
17
- ".sitecore/*": [
18
- ".sitecore/*"
19
- ],
20
- <%_ if (helper.isDev) { _%>
21
- "next/*": ["node_modules/next/*"],
22
- <%_ } _%>
23
- },
24
- "target": "ES2017",
25
- "types": ["node"],
26
- "lib": ["dom", "dom.iterable", "esnext"],
27
- "allowJs": true,
28
- "skipLibCheck": true,
29
- "strict": true,
30
- "noEmit": true,
31
- "esModuleInterop": true,
32
- "strictFunctionTypes": false,
33
- "module": "esnext",
34
- "moduleResolution": "node",
35
- "allowSyntheticDefaultImports": true,
36
- "resolveJsonModule": true,
37
- "isolatedModules": true,
38
- "jsx": "preserve",
39
- "incremental": true,
40
- "plugins": [
41
- {
42
- "name": "next"
43
- }
44
- ],
45
- },
46
- "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
47
- "exclude": ["node_modules"]
48
- }
1
+ {
2
+ "compilerOptions": {
3
+ "baseUrl": ".",
4
+ "paths": {
5
+ "components/*": [
6
+ "src/components/*"
7
+ ],
8
+ "lib/*": [
9
+ "src/lib/*"
10
+ ],
11
+ "temp/*": [
12
+ "src/temp/*"
13
+ ],
14
+ "assets/*": [
15
+ "src/assets/*"
16
+ ],
17
+ ".sitecore/*": [
18
+ ".sitecore/*"
19
+ ],
20
+ <%_ if (helper.isDev) { _%>
21
+ "next/*": ["node_modules/next/*"],
22
+ <%_ } _%>
23
+ },
24
+ "target": "ES2017",
25
+ "types": ["node"],
26
+ "lib": ["dom", "dom.iterable", "esnext"],
27
+ "allowJs": true,
28
+ "skipLibCheck": true,
29
+ "strict": true,
30
+ "noEmit": true,
31
+ "esModuleInterop": true,
32
+ "strictFunctionTypes": false,
33
+ "module": "esnext",
34
+ "moduleResolution": "node",
35
+ "allowSyntheticDefaultImports": true,
36
+ "resolveJsonModule": true,
37
+ "isolatedModules": true,
38
+ "jsx": "preserve",
39
+ "incremental": true,
40
+ "plugins": [
41
+ {
42
+ "name": "next"
43
+ }
44
+ ],
45
+ },
46
+ "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
47
+ "exclude": ["node_modules"]
48
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-content-sdk-app",
3
- "version": "2.0.0-canary.8",
3
+ "version": "2.0.0",
4
4
  "description": "Sitecore Content SDK initializer",
5
5
  "bin": "./dist/index.js",
6
6
  "scripts": {
@@ -70,5 +70,5 @@
70
70
  "ts-node": "^10.9.2",
71
71
  "typescript": "~5.8.3"
72
72
  },
73
- "gitHead": "c8a8944d642f6c97020be92e09544b502d8c0ea9"
73
+ "gitHead": "492d7d718c965bbfe394d6c12c2e4870220cf4bf"
74
74
  }