create-sitecore-jss 21.0.2 → 21.0.4

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 (317) hide show
  1. package/LICENSE.MD +202 -202
  2. package/README.md +7 -7
  3. package/dist/templates/angular/.env +33 -33
  4. package/dist/templates/angular/.eslintignore +2 -2
  5. package/dist/templates/angular/.eslintrc +79 -79
  6. package/dist/templates/angular/LICENSE.txt +202 -202
  7. package/dist/templates/angular/README.md +51 -51
  8. package/dist/templates/angular/angular.json +169 -169
  9. package/dist/templates/angular/data/component-content/Styleguide/ContentReuse/LoremIpsumContentBlock/en.yml +9 -9
  10. package/dist/templates/angular/data/content/Styleguide/ContentListField/Item1/en.yml +6 -6
  11. package/dist/templates/angular/data/content/Styleguide/ContentListField/Item2/en.yml +6 -6
  12. package/dist/templates/angular/data/content/Styleguide/ItemLinkField/Item1/en.yml +6 -6
  13. package/dist/templates/angular/data/content/Styleguide/ItemLinkField/Item2/en.yml +6 -6
  14. package/dist/templates/angular/data/dictionary/en.yml +4 -4
  15. package/dist/templates/angular/data/dictionary/{{language}}.yml +4 -4
  16. package/dist/templates/angular/data/routes/en.yml +61 -61
  17. package/dist/templates/angular/data/routes/graphql/en.yml +27 -27
  18. package/dist/templates/angular/data/routes/graphql/sample-1/en.yml +9 -9
  19. package/dist/templates/angular/data/routes/graphql/sample-2/en.yml +9 -9
  20. package/dist/templates/angular/data/routes/styleguide/custom-route-type/en.yml +12 -12
  21. package/dist/templates/angular/data/routes/styleguide/en.yml +253 -253
  22. package/dist/templates/angular/data/routes/styleguide/{{language}}.yml +25 -25
  23. package/dist/templates/angular/data/routes/{{language}}.yml +4 -4
  24. package/dist/templates/angular/e2e/tsconfig.e2e.json +15 -15
  25. package/dist/templates/angular/gitignore +47 -47
  26. package/dist/templates/angular/package.json +131 -131
  27. package/dist/templates/angular/sitecore/config/{{appName}}.config +90 -90
  28. package/dist/templates/angular/sitecore/definitions/components/graph-ql-integrated-demo.sitecore.graphql +71 -71
  29. package/dist/templates/angular/sitecore/gitignore +2 -2
  30. package/dist/templates/angular/src/app/app.component.html +1 -1
  31. package/dist/templates/angular/src/app/components/content-block/content-block.component.html +4 -4
  32. package/dist/templates/angular/src/app/components/gitignore +7 -7
  33. package/dist/templates/angular/src/app/components/graph-ql-connected-demo/graph-ql-connected-demo.component.graphql +69 -69
  34. package/dist/templates/angular/src/app/components/graph-ql-connected-demo/graph-ql-connected-demo.component.html +55 -55
  35. package/dist/templates/angular/src/app/components/graph-ql-integrated-demo/graph-ql-integrated-demo.component.html +47 -47
  36. package/dist/templates/angular/src/app/components/graph-ql-layout/graph-ql-layout.component.html +22 -22
  37. package/dist/templates/angular/src/app/components/styleguide-angular-lazy-loading/styleguide-angular-lazy-loading.component.html +5 -5
  38. package/dist/templates/angular/src/app/components/styleguide-component-params/styleguide-component-params.component.html +19 -19
  39. package/dist/templates/angular/src/app/components/styleguide-custom-route-type/styleguide-custom-route-type.component.html +14 -14
  40. package/dist/templates/angular/src/app/components/styleguide-field-usage-checkbox/styleguide-field-usage-checkbox.component.html +11 -11
  41. package/dist/templates/angular/src/app/components/styleguide-field-usage-content-list/styleguide-field-usage-content-list.component.html +26 -26
  42. package/dist/templates/angular/src/app/components/styleguide-field-usage-custom/styleguide-field-usage-custom.component.html +4 -4
  43. package/dist/templates/angular/src/app/components/styleguide-field-usage-date/styleguide-field-usage-date.component.html +27 -27
  44. package/dist/templates/angular/src/app/components/styleguide-field-usage-file/styleguide-field-usage-file.component.html +10 -10
  45. package/dist/templates/angular/src/app/components/styleguide-field-usage-image/styleguide-field-usage-image.component.html +30 -30
  46. package/dist/templates/angular/src/app/components/styleguide-field-usage-item-link/styleguide-field-usage-item-link.component.html +17 -17
  47. package/dist/templates/angular/src/app/components/styleguide-field-usage-link/styleguide-field-usage-link.component.html +44 -44
  48. package/dist/templates/angular/src/app/components/styleguide-field-usage-number/styleguide-field-usage-number.component.html +11 -11
  49. package/dist/templates/angular/src/app/components/styleguide-field-usage-rich-text/styleguide-field-usage-rich-text.component.html +11 -11
  50. package/dist/templates/angular/src/app/components/styleguide-field-usage-text/styleguide-field-usage-text.component.html +13 -13
  51. package/dist/templates/angular/src/app/components/styleguide-layout/styleguide-layout.component.html +20 -20
  52. package/dist/templates/angular/src/app/components/styleguide-layout-reuse/styleguide-layout-reuse.component.html +52 -52
  53. package/dist/templates/angular/src/app/components/styleguide-layout-tabs/styleguide-layout-tabs.component.html +37 -37
  54. package/dist/templates/angular/src/app/components/styleguide-layout-tabs-tab/styleguide-layout-tabs-tab.component.html +12 -12
  55. package/dist/templates/angular/src/app/components/styleguide-multilingual/styleguide-multilingual.component.html +15 -15
  56. package/dist/templates/angular/src/app/components/styleguide-route-fields/styleguide-route-fields.component.html +8 -8
  57. package/dist/templates/angular/src/app/components/styleguide-section/styleguide-section.component.html +7 -7
  58. package/dist/templates/angular/src/app/components/styleguide-sitecore-context/styleguide-sitecore-context.component.html +3 -3
  59. package/dist/templates/angular/src/app/components/styleguide-tracking/styleguide-tracking.component.html +175 -175
  60. package/dist/templates/angular/src/app/routing/layout/layout.component.html +17 -17
  61. package/dist/templates/angular/src/app/routing/navigation/navigation.component.html +21 -21
  62. package/dist/templates/angular/src/app/routing/not-found/not-found.component.html +7 -7
  63. package/dist/templates/angular/src/app/routing/server-error/server-error.component.html +3 -3
  64. package/dist/templates/angular/src/assets/images/sc_logo.svg +19 -19
  65. package/dist/templates/angular/src/index.html +12 -12
  66. package/dist/templates/angular/src/styles.css +26 -26
  67. package/dist/templates/angular/src/tsconfig.app.json +22 -22
  68. package/dist/templates/angular/src/tsconfig.server.json +21 -21
  69. package/dist/templates/angular/src/tsconfig.spec.json +24 -24
  70. package/dist/templates/angular/src/tsconfig.webpack-server.json +6 -6
  71. package/dist/templates/angular/tsconfig.json +30 -30
  72. package/dist/templates/nextjs/.babelrc +8 -8
  73. package/dist/templates/nextjs/.env +59 -59
  74. package/dist/templates/nextjs/.eslintrc +25 -25
  75. package/dist/templates/nextjs/.gitattributes +11 -11
  76. package/dist/templates/nextjs/.graphql-let.yml +10 -10
  77. package/dist/templates/nextjs/.prettierrc +8 -8
  78. package/dist/templates/nextjs/.vscode/launch.json +15 -15
  79. package/dist/templates/nextjs/LICENSE.txt +202 -202
  80. package/dist/templates/nextjs/README.md +6 -6
  81. package/dist/templates/nextjs/gitignore +32 -32
  82. package/dist/templates/nextjs/package.json +87 -87
  83. package/dist/templates/nextjs/public/sc_logo.svg +19 -19
  84. package/dist/templates/nextjs/sitecore/config/{{appName}}.config +165 -165
  85. package/dist/templates/nextjs/src/assets/app.css +28 -28
  86. package/dist/templates/nextjs/src/temp/GraphQLIntrospectionResult.json +22215 -22215
  87. package/dist/templates/nextjs/src/temp/gitignore +3 -3
  88. package/dist/templates/nextjs/tsconfig.json +34 -34
  89. package/dist/templates/nextjs/tsconfig.scripts.json +6 -6
  90. package/dist/templates/nextjs-personalize/.env +15 -15
  91. package/dist/templates/nextjs-personalize/package.json +5 -5
  92. package/dist/templates/nextjs-styleguide/data/component-content/Styleguide/ContentReuse/LoremIpsumContentBlock/en.yml +9 -9
  93. package/dist/templates/nextjs-styleguide/data/content/Styleguide/ContentListField/Item1/en.yml +6 -6
  94. package/dist/templates/nextjs-styleguide/data/content/Styleguide/ContentListField/Item2/en.yml +6 -6
  95. package/dist/templates/nextjs-styleguide/data/content/Styleguide/ItemLinkField/Item1/en.yml +6 -6
  96. package/dist/templates/nextjs-styleguide/data/content/Styleguide/ItemLinkField/Item2/en.yml +6 -6
  97. package/dist/templates/nextjs-styleguide/data/dictionary/en.yml +4 -4
  98. package/dist/templates/nextjs-styleguide/data/dictionary/{{language}}.yml +4 -4
  99. package/dist/templates/nextjs-styleguide/data/routes/en.yml +63 -63
  100. package/dist/templates/nextjs-styleguide/data/routes/graphql/en.yml +27 -27
  101. package/dist/templates/nextjs-styleguide/data/routes/graphql/sample-1/en.yml +9 -9
  102. package/dist/templates/nextjs-styleguide/data/routes/graphql/sample-2/en.yml +9 -9
  103. package/dist/templates/nextjs-styleguide/data/routes/styleguide/custom-route-type/en.yml +12 -12
  104. package/dist/templates/nextjs-styleguide/data/routes/styleguide/en.yml +242 -242
  105. package/dist/templates/nextjs-styleguide/data/routes/styleguide/{{language}}.yml +25 -25
  106. package/dist/templates/nextjs-styleguide/data/routes/{{language}}.yml +4 -4
  107. package/dist/templates/nextjs-styleguide/package.json +13 -13
  108. package/dist/templates/nextjs-styleguide/sitecore/definitions/components/graphql/GraphQL-IntegratedDemo.sitecore.graphql +71 -71
  109. package/dist/templates/nextjs-styleguide/sitecore/gitignore +3 -3
  110. package/dist/templates/nextjs-styleguide/src/components/graphql/GraphQL-ConnectedDemo.dynamic.graphql +69 -69
  111. package/dist/templates/nextjs-styleguide-tracking/data/dictionary/en.yml +5 -5
  112. package/dist/templates/nextjs-styleguide-tracking/data/routes/tracking/en.yml +8 -8
  113. package/dist/templates/nextjs-sxa/package.json +10 -10
  114. package/dist/templates/nextjs-sxa/src/assets/basic/_component.scss +18 -18
  115. package/dist/templates/nextjs-sxa/src/assets/basic/_container.scss +80 -80
  116. package/dist/templates/nextjs-sxa/src/assets/basic/_fonts.scss +1 -1
  117. package/dist/templates/nextjs-sxa/src/assets/basic/_footer.scss +31 -31
  118. package/dist/templates/nextjs-sxa/src/assets/basic/_header.scss +50 -50
  119. package/dist/templates/nextjs-sxa/src/assets/basic/_navigation.scss +150 -150
  120. package/dist/templates/nextjs-sxa/src/assets/basic/_promo.scss +58 -58
  121. package/dist/templates/nextjs-sxa/src/assets/basic/_rich-text.scss +11 -11
  122. package/dist/templates/nextjs-sxa/src/assets/basic/_variables.scss +9 -9
  123. package/dist/templates/nextjs-sxa/src/assets/basic/main.scss +8 -8
  124. package/dist/templates/nextjs-sxa/src/assets/main.scss +5 -5
  125. package/dist/templates/nextjs-sxa/src/assets/sass/_app.scss +102 -102
  126. package/dist/templates/nextjs-sxa/src/assets/sass/abstracts/_functions.scss +8 -8
  127. package/dist/templates/nextjs-sxa/src/assets/sass/abstracts/_mixins.scss +121 -121
  128. package/dist/templates/nextjs-sxa/src/assets/sass/abstracts/_vars.scss +3 -3
  129. package/dist/templates/nextjs-sxa/src/assets/sass/abstracts/vars/_colors.scss +283 -283
  130. package/dist/templates/nextjs-sxa/src/assets/sass/abstracts/vars/_fontSizes.scss +16 -16
  131. package/dist/templates/nextjs-sxa/src/assets/sass/abstracts/vars/_margins.scss +10 -10
  132. package/dist/templates/nextjs-sxa/src/assets/sass/base/fonts/_fonts.scss +1 -1
  133. package/dist/templates/nextjs-sxa/src/assets/sass/base/fonts/index.scss +1 -1
  134. package/dist/templates/nextjs-sxa/src/assets/sass/base/index.scss +3 -3
  135. package/dist/templates/nextjs-sxa/src/assets/sass/base/links/_link-button.scss +26 -26
  136. package/dist/templates/nextjs-sxa/src/assets/sass/base/links/index.scss +1 -1
  137. package/dist/templates/nextjs-sxa/src/assets/sass/base/reset/_inputs.scss +58 -58
  138. package/dist/templates/nextjs-sxa/src/assets/sass/base/reset/_links.scss +14 -14
  139. package/dist/templates/nextjs-sxa/src/assets/sass/base/reset/_ui-datepicker.scss +7 -7
  140. package/dist/templates/nextjs-sxa/src/assets/sass/base/richtext/_richtext-files-icons.scss +86 -86
  141. package/dist/templates/nextjs-sxa/src/assets/sass/base/richtext/_richtext.scss +101 -101
  142. package/dist/templates/nextjs-sxa/src/assets/sass/base/richtext/index.scss +2 -2
  143. package/dist/templates/nextjs-sxa/src/assets/sass/base/typehead/_typehead.scss +95 -95
  144. package/dist/templates/nextjs-sxa/src/assets/sass/base/typehead/index.scss +1 -1
  145. package/dist/templates/nextjs-sxa/src/assets/sass/components/_component-column-splitter.scss +14 -14
  146. package/dist/templates/nextjs-sxa/src/assets/sass/components/_component-container.scss +18 -18
  147. package/dist/templates/nextjs-sxa/src/assets/sass/components/_component-image.scss +18 -18
  148. package/dist/templates/nextjs-sxa/src/assets/sass/components/_component-navigation.scss +51 -51
  149. package/dist/templates/nextjs-sxa/src/assets/sass/components/_component-promo.scss +42 -42
  150. package/dist/templates/nextjs-sxa/src/assets/sass/components/_component-richtext-content.scss +19 -19
  151. package/dist/templates/nextjs-sxa/src/assets/sass/components/common/_alignment.scss +25 -25
  152. package/dist/templates/nextjs-sxa/src/assets/sass/components/common/_boxed.scss +16 -16
  153. package/dist/templates/nextjs-sxa/src/assets/sass/components/common/_clearfix.scss +11 -11
  154. package/dist/templates/nextjs-sxa/src/assets/sass/components/common/_highlighted.scss +62 -62
  155. package/dist/templates/nextjs-sxa/src/assets/sass/components/common/_link-button.scss +16 -16
  156. package/dist/templates/nextjs-sxa/src/assets/sass/components/common/_promoted-box.scss +3 -3
  157. package/dist/templates/nextjs-sxa/src/assets/sass/components/common/index.scss +5 -5
  158. package/dist/templates/nextjs-sxa/src/assets/sass/components/container/_bordered.scss +23 -23
  159. package/dist/templates/nextjs-sxa/src/assets/sass/components/container/_title-row-box.scss +66 -66
  160. package/dist/templates/nextjs-sxa/src/assets/sass/components/container/index.scss +1 -1
  161. package/dist/templates/nextjs-sxa/src/assets/sass/components/image/_image-banner.scss +14 -14
  162. package/dist/templates/nextjs-sxa/src/assets/sass/components/image/_image-default-size.scss +6 -6
  163. package/dist/templates/nextjs-sxa/src/assets/sass/components/image/index.scss +2 -2
  164. package/dist/templates/nextjs-sxa/src/assets/sass/components/image-alignment/_image-left.scss +3 -3
  165. package/dist/templates/nextjs-sxa/src/assets/sass/components/image-alignment/_image-right.scss +3 -3
  166. package/dist/templates/nextjs-sxa/src/assets/sass/components/index.scss +17 -17
  167. package/dist/templates/nextjs-sxa/src/assets/sass/components/layout/_acaindent.scss +5 -5
  168. package/dist/templates/nextjs-sxa/src/assets/sass/components/layout/_background.scss +27 -27
  169. package/dist/templates/nextjs-sxa/src/assets/sass/components/layout/index.scss +1 -1
  170. package/dist/templates/nextjs-sxa/src/assets/sass/components/link-list/_component-link-list.scss +45 -45
  171. package/dist/templates/nextjs-sxa/src/assets/sass/components/link-list/_list-vertical.scss +20 -20
  172. package/dist/templates/nextjs-sxa/src/assets/sass/components/link-list/index.scss +2 -2
  173. package/dist/templates/nextjs-sxa/src/assets/sass/components/navigation/_navigation-fat.scss +58 -58
  174. package/dist/templates/nextjs-sxa/src/assets/sass/components/navigation/_navigation-main-horizontal-vertical.scss +152 -152
  175. package/dist/templates/nextjs-sxa/src/assets/sass/components/navigation/_navigation-mobile.scss +89 -89
  176. package/dist/templates/nextjs-sxa/src/assets/sass/components/navigation/_navigation-sidebar.scss +29 -29
  177. package/dist/templates/nextjs-sxa/src/assets/sass/components/navigation/_sitemap-navigation.scss +20 -20
  178. package/dist/templates/nextjs-sxa/src/assets/sass/components/navigation/index.scss +5 -5
  179. package/dist/templates/nextjs-sxa/src/assets/sass/components/promo/_absolute-bottom-link.scss +8 -8
  180. package/dist/templates/nextjs-sxa/src/assets/sass/components/promo/_promo-hero.scss +40 -40
  181. package/dist/templates/nextjs-sxa/src/assets/sass/components/promo/_promo-shadow.scss +42 -42
  182. package/dist/templates/nextjs-sxa/src/assets/sass/components/promo/index.scss +3 -3
  183. package/dist/templates/nextjs-sxa/src/assets/sass/components/rich-text/_rich-text-lists.scss +63 -63
  184. package/dist/templates/nextjs-sxa/src/assets/sass/components/rich-text/index.scss +1 -1
  185. package/dist/templates/nextjs-sxa/src/assets/sass/components/spacing/_background-colors.scss +14 -14
  186. package/dist/templates/nextjs-sxa/src/assets/sass/components/spacing/_indent.scss +10 -10
  187. package/dist/templates/nextjs-sxa/src/assets/sass/components/spacing/index.scss +2 -2
  188. package/dist/templates/nextjs-sxa/src/assets/sass/components/title/_component-title.scss +24 -24
  189. package/dist/templates/nextjs-sxa/src/assets/sass/components/title/index.scss +1 -1
  190. package/dist/templates/nextjs-sxa/src/assets/sass/main.scss +4 -4
  191. package/dist/templates/nextjs-sxa/src/assets/sass/variants/index.scss +5 -5
  192. package/dist/templates/node-headless-ssr-experience-edge/.env +6 -6
  193. package/dist/templates/node-headless-ssr-experience-edge/README.md +51 -51
  194. package/dist/templates/node-headless-ssr-experience-edge/package.json +38 -38
  195. package/dist/templates/node-headless-ssr-experience-edge/tsconfig.json +22 -22
  196. package/dist/templates/node-headless-ssr-proxy/.env +8 -8
  197. package/dist/templates/node-headless-ssr-proxy/.vscode/launch.json +47 -47
  198. package/dist/templates/node-headless-ssr-proxy/LICENSE.txt +202 -202
  199. package/dist/templates/node-headless-ssr-proxy/README.md +60 -60
  200. package/dist/templates/node-headless-ssr-proxy/package.json +43 -43
  201. package/dist/templates/node-headless-ssr-proxy/src/error.html +200 -200
  202. package/dist/templates/node-headless-ssr-proxy/tsconfig.json +22 -22
  203. package/dist/templates/react/.env +36 -36
  204. package/dist/templates/react/.eslintrc +78 -78
  205. package/dist/templates/react/.prettierrc +9 -9
  206. package/dist/templates/react/LICENSE.txt +202 -202
  207. package/dist/templates/react/README.md +2400 -2400
  208. package/dist/templates/react/data/component-content/Styleguide/ContentReuse/LoremIpsumContentBlock/en.yml +9 -9
  209. package/dist/templates/react/data/content/Styleguide/ContentListField/Item1/en.yml +6 -6
  210. package/dist/templates/react/data/content/Styleguide/ContentListField/Item2/en.yml +6 -6
  211. package/dist/templates/react/data/content/Styleguide/ItemLinkField/Item1/en.yml +6 -6
  212. package/dist/templates/react/data/content/Styleguide/ItemLinkField/Item2/en.yml +6 -6
  213. package/dist/templates/react/data/dictionary/en.yml +4 -4
  214. package/dist/templates/react/data/dictionary/{{language}}.yml +4 -4
  215. package/dist/templates/react/data/routes/en.yml +61 -61
  216. package/dist/templates/react/data/routes/graphql/en.yml +27 -27
  217. package/dist/templates/react/data/routes/graphql/sample-1/en.yml +9 -9
  218. package/dist/templates/react/data/routes/graphql/sample-2/en.yml +9 -9
  219. package/dist/templates/react/data/routes/styleguide/custom-route-type/en.yml +12 -12
  220. package/dist/templates/react/data/routes/styleguide/en.yml +247 -247
  221. package/dist/templates/react/data/routes/styleguide/{{language}}.yml +26 -26
  222. package/dist/templates/react/data/routes/{{language}}.yml +4 -4
  223. package/dist/templates/react/gitignore +25 -25
  224. package/dist/templates/react/package.json +120 -120
  225. package/dist/templates/react/public/index.html +35 -35
  226. package/dist/templates/react/sitecore/config/{{appName}}.config +90 -90
  227. package/dist/templates/react/sitecore/definitions/components/GraphQL-IntegratedDemo.sitecore.graphql +71 -71
  228. package/dist/templates/react/sitecore/gitignore +2 -2
  229. package/dist/templates/react/src/assets/app.css +19 -19
  230. package/dist/templates/react/src/assets/sc_logo.svg +19 -19
  231. package/dist/templates/react/src/components/GraphQL-ConnectedDemo/query.graphql +69 -69
  232. package/dist/templates/react/src/temp/GraphQLFragmentTypes.json +207 -207
  233. package/dist/templates/react/src/temp/gitignore +3 -3
  234. package/dist/templates/react-native/.buckconfig +6 -6
  235. package/dist/templates/react-native/.eslintrc +74 -74
  236. package/dist/templates/react-native/.gitattributes +1 -1
  237. package/dist/templates/react-native/.prettierrc +9 -9
  238. package/dist/templates/react-native/.vscode/launch.json +42 -42
  239. package/dist/templates/react-native/.vscode/settings.json +1 -1
  240. package/dist/templates/react-native/LICENSE.txt +202 -202
  241. package/dist/templates/react-native/README.MD +113 -113
  242. package/dist/templates/react-native/android/app/BUCK +55 -55
  243. package/dist/templates/react-native/android/app/build.gradle +201 -201
  244. package/dist/templates/react-native/android/app/build_defs.bzl +19 -19
  245. package/dist/templates/react-native/android/app/proguard-rules.pro +10 -10
  246. package/dist/templates/react-native/android/app/src/debug/AndroidManifest.xml +8 -8
  247. package/dist/templates/react-native/android/app/src/main/AndroidManifest.xml +26 -26
  248. package/dist/templates/react-native/android/app/src/main/java/com/{{appName}}/MainActivity.java +15 -15
  249. package/dist/templates/react-native/android/app/src/main/java/com/{{appName}}/MainApplication.java +74 -74
  250. package/dist/templates/react-native/android/app/src/main/res/values/strings.xml +3 -3
  251. package/dist/templates/react-native/android/app/src/main/res/values/styles.xml +9 -9
  252. package/dist/templates/react-native/android/build.gradle +38 -38
  253. package/dist/templates/react-native/android/gradle/wrapper/gradle-wrapper.properties +5 -5
  254. package/dist/templates/react-native/android/gradle.properties +21 -21
  255. package/dist/templates/react-native/android/gradlew +188 -188
  256. package/dist/templates/react-native/android/gradlew.bat +100 -100
  257. package/dist/templates/react-native/android/settings.gradle +3 -3
  258. package/dist/templates/react-native/app.json +3 -3
  259. package/dist/templates/react-native/assets/img/sc_logo.svg +16 -16
  260. package/dist/templates/react-native/data/content/Styleguide/ItemLinkField/Item1/en.json +10 -10
  261. package/dist/templates/react-native/data/routes/en.json +22 -22
  262. package/dist/templates/react-native/data/routes/styleguide/en.json +227 -227
  263. package/dist/templates/react-native/data/routes/styleguide/{{language}}.json +31 -31
  264. package/dist/templates/react-native/data/routes/{{language}}.json +7 -7
  265. package/dist/templates/react-native/gitignore +60 -60
  266. package/dist/templates/react-native/ios/Podfile +53 -53
  267. package/dist/templates/react-native/ios/{{appName}}/AppDelegate.h +15 -15
  268. package/dist/templates/react-native/ios/{{appName}}/AppDelegate.m +42 -42
  269. package/dist/templates/react-native/ios/{{appName}}/Base.lproj/LaunchScreen.xib +42 -42
  270. package/dist/templates/react-native/ios/{{appName}}/Images.xcassets/AppIcon.appiconset/Contents.json +38 -38
  271. package/dist/templates/react-native/ios/{{appName}}/Images.xcassets/Contents.json +6 -6
  272. package/dist/templates/react-native/ios/{{appName}}/Info.plist +57 -57
  273. package/dist/templates/react-native/ios/{{appName}}/main.m +16 -16
  274. package/dist/templates/react-native/ios/{{appName}}-tvOS/Info.plist +53 -53
  275. package/dist/templates/react-native/ios/{{appName}}-tvOSTests/Info.plist +24 -24
  276. package/dist/templates/react-native/ios/{{appName}}.xcodeproj/xcshareddata/xcschemes/BasicSampleReactNative-tvOS.xcscheme +129 -129
  277. package/dist/templates/react-native/ios/{{appName}}.xcodeproj/xcshareddata/xcschemes/BasicSampleReactNative.xcscheme +129 -129
  278. package/dist/templates/react-native/ios/{{appName}}Tests/BasicSampleReactNativeTests.m +72 -72
  279. package/dist/templates/react-native/ios/{{appName}}Tests/Info.plist +24 -24
  280. package/dist/templates/react-native/package.json +82 -82
  281. package/dist/templates/react-native/sitecore/config/{{appName}}.config +47 -47
  282. package/dist/templates/react-native/sitecore/gitignore +2 -2
  283. package/dist/templates/vue/.browserslistrc +2 -2
  284. package/dist/templates/vue/.env +35 -35
  285. package/dist/templates/vue/.prettierrc +9 -9
  286. package/dist/templates/vue/LICENSE.txt +202 -202
  287. package/dist/templates/vue/README.md +34 -34
  288. package/dist/templates/vue/data/component-content/Styleguide/ContentReuse/LoremIpsumContentBlock/en.yml +9 -9
  289. package/dist/templates/vue/data/content/Styleguide/ContentListField/Item1/en.yml +6 -6
  290. package/dist/templates/vue/data/content/Styleguide/ContentListField/Item2/en.yml +6 -6
  291. package/dist/templates/vue/data/content/Styleguide/ItemLinkField/Item1/en.yml +6 -6
  292. package/dist/templates/vue/data/content/Styleguide/ItemLinkField/Item2/en.yml +6 -6
  293. package/dist/templates/vue/data/dictionary/en.yml +7 -7
  294. package/dist/templates/vue/data/dictionary/{{language}}.yml +7 -7
  295. package/dist/templates/vue/data/routes/en.yml +63 -63
  296. package/dist/templates/vue/data/routes/graphql/en.yml +34 -34
  297. package/dist/templates/vue/data/routes/graphql/sample-1/en.yml +9 -9
  298. package/dist/templates/vue/data/routes/graphql/sample-2/en.yml +9 -9
  299. package/dist/templates/vue/data/routes/styleguide/custom-route-type/en.yml +12 -12
  300. package/dist/templates/vue/data/routes/styleguide/en.yml +247 -247
  301. package/dist/templates/vue/data/routes/styleguide/{{language}}.yml +26 -26
  302. package/dist/templates/vue/data/routes/{{language}}.yml +4 -4
  303. package/dist/templates/vue/gitignore +25 -25
  304. package/dist/templates/vue/package.json +91 -91
  305. package/dist/templates/vue/public/img/icons/safari-pinned-tab.svg +75 -75
  306. package/dist/templates/vue/public/index.html +27 -27
  307. package/dist/templates/vue/public/manifest.json +14 -14
  308. package/dist/templates/vue/public/robots.txt +2 -2
  309. package/dist/templates/vue/sitecore/config/{{appName}}.config +89 -89
  310. package/dist/templates/vue/sitecore/definitions/components/GraphQL-IntegratedDemo.sitecore.graphql +71 -71
  311. package/dist/templates/vue/sitecore/gitignore +4 -4
  312. package/dist/templates/vue/src/assets/app.css +22 -22
  313. package/dist/templates/vue/src/assets/sc_logo.svg +19 -19
  314. package/dist/templates/vue/src/components/GraphQL/GraphQL-ConnectedDemo.query.graphql +69 -69
  315. package/dist/templates/vue/src/temp/GraphQLFragmentTypes.json +273 -273
  316. package/dist/templates/vue/src/temp/gitignore +3 -3
  317. package/package.json +2 -2
@@ -1,20 +1,20 @@
1
- @import '@sass/abstracts/vars';
2
- @import '@sass/abstracts/mixins';
3
- @import '@fontawesome/scss/mixins';
4
- @import '@fontawesome/scss/variables';
5
-
6
- .navigation.sitemap-navigation {
7
- .level2 a {
8
- position: relative;
9
- padding-left: 10px;
10
- &:before {
11
- @include font-size(1.4);
12
- @include fa-icon();
13
- transform: translateY(-50%) scale(1, -1);
14
- position: absolute;
15
- content: $fa-var-share;
16
- top: 50%;
17
- left: -8px;
18
- }
19
- }
20
- }
1
+ @import '@sass/abstracts/vars';
2
+ @import '@sass/abstracts/mixins';
3
+ @import '@fontawesome/scss/mixins';
4
+ @import '@fontawesome/scss/variables';
5
+
6
+ .navigation.sitemap-navigation {
7
+ .level2 a {
8
+ position: relative;
9
+ padding-left: 10px;
10
+ &:before {
11
+ @include font-size(1.4);
12
+ @include fa-icon();
13
+ transform: translateY(-50%) scale(1, -1);
14
+ position: absolute;
15
+ content: $fa-var-share;
16
+ top: 50%;
17
+ left: -8px;
18
+ }
19
+ }
20
+ }
@@ -1,5 +1,5 @@
1
- @import "navigation-main-horizontal-vertical";
2
- @import "navigation-mobile";
3
- @import "navigation-sidebar";
4
- @import "sitemap-navigation";
5
- @import "navigation-fat";
1
+ @import "navigation-main-horizontal-vertical";
2
+ @import "navigation-mobile";
3
+ @import "navigation-sidebar";
4
+ @import "sitemap-navigation";
5
+ @import "navigation-fat";
@@ -1,8 +1,8 @@
1
- .promo.absolute-bottom-link {
2
- position: relative;
3
- .field-promolink {
4
- position: absolute;
5
- bottom: 10px;
6
- right: 10px;
7
- }
8
- }
1
+ .promo.absolute-bottom-link {
2
+ position: relative;
3
+ .field-promolink {
4
+ position: absolute;
5
+ bottom: 10px;
6
+ right: 10px;
7
+ }
8
+ }
@@ -1,40 +1,40 @@
1
- @import "@sass/abstracts/vars";
2
- @import "@sass/abstracts/mixins";
3
-
4
- .promo.promo-hero {
5
- position: relative;
6
- text-align: center;
7
- &.promo-hero-half {
8
- float: left;
9
- width: 50%;
10
- @include respond-to(all-mobile) {
11
- float: none;
12
- width: 100%;
13
- }
14
- }
15
- .field-promotext {
16
- display: inline-block;
17
- transform: translateY(-50%);
18
- position: absolute;
19
- top: 50%;
20
- left: 0;
21
- right: 0;
22
- padding: 20px;
23
- color: $promo-hero-text-color;
24
- background: $promo-bg-hero;
25
- >a {
26
- color: inherit;
27
- text-decoration: none;
28
- }
29
- @include respond-to(all-mobile) {
30
- width: 100%;
31
- margin: 0;
32
- h1 {
33
- @include font-size(2.4);
34
- }
35
- h2, h3, h4 {
36
- @include font-size(2.0);
37
- }
38
- }
39
- }
40
- }
1
+ @import "@sass/abstracts/vars";
2
+ @import "@sass/abstracts/mixins";
3
+
4
+ .promo.promo-hero {
5
+ position: relative;
6
+ text-align: center;
7
+ &.promo-hero-half {
8
+ float: left;
9
+ width: 50%;
10
+ @include respond-to(all-mobile) {
11
+ float: none;
12
+ width: 100%;
13
+ }
14
+ }
15
+ .field-promotext {
16
+ display: inline-block;
17
+ transform: translateY(-50%);
18
+ position: absolute;
19
+ top: 50%;
20
+ left: 0;
21
+ right: 0;
22
+ padding: 20px;
23
+ color: $promo-hero-text-color;
24
+ background: $promo-bg-hero;
25
+ >a {
26
+ color: inherit;
27
+ text-decoration: none;
28
+ }
29
+ @include respond-to(all-mobile) {
30
+ width: 100%;
31
+ margin: 0;
32
+ h1 {
33
+ @include font-size(2.4);
34
+ }
35
+ h2, h3, h4 {
36
+ @include font-size(2.0);
37
+ }
38
+ }
39
+ }
40
+ }
@@ -1,42 +1,42 @@
1
- @import "@sass/abstracts/vars";
2
- @import "@sass/abstracts/mixins";
3
-
4
- .promo-shadow {
5
- max-width: 960px;
6
- padding: 0;
7
- border-top-width: 3px;
8
- border-top-color: $promo-shadow-border;
9
- border-style: solid;
10
- overflow: visible;
11
- position: relative;
12
- &.promo {
13
- float: left;
14
- }
15
- >.component-content {
16
- @include respond-to(all-mobile) {
17
- margin: 0 10px 30px 10px;
18
- }
19
- padding: 15px;
20
- margin: 0 0 30px 0;
21
- &:before, &:after {
22
- opacity: 0.7;
23
- box-shadow: 0 17px 10px rgba(0, 0, 0, 0.7);
24
- position: absolute;
25
- z-index: -1;
26
- height: 20%;
27
- max-height: 100px;
28
- max-width: 460px;
29
- width: 47%;
30
- content: "";
31
- bottom: 10px;
32
- }
33
- &:before {
34
- left: 2%;
35
- transform: rotate(-3deg);
36
- }
37
- &:after {
38
- right: 2%;
39
- transform: rotate(3deg);
40
- }
41
- }
42
- }
1
+ @import "@sass/abstracts/vars";
2
+ @import "@sass/abstracts/mixins";
3
+
4
+ .promo-shadow {
5
+ max-width: 960px;
6
+ padding: 0;
7
+ border-top-width: 3px;
8
+ border-top-color: $promo-shadow-border;
9
+ border-style: solid;
10
+ overflow: visible;
11
+ position: relative;
12
+ &.promo {
13
+ float: left;
14
+ }
15
+ >.component-content {
16
+ @include respond-to(all-mobile) {
17
+ margin: 0 10px 30px 10px;
18
+ }
19
+ padding: 15px;
20
+ margin: 0 0 30px 0;
21
+ &:before, &:after {
22
+ opacity: 0.7;
23
+ box-shadow: 0 17px 10px rgba(0, 0, 0, 0.7);
24
+ position: absolute;
25
+ z-index: -1;
26
+ height: 20%;
27
+ max-height: 100px;
28
+ max-width: 460px;
29
+ width: 47%;
30
+ content: "";
31
+ bottom: 10px;
32
+ }
33
+ &:before {
34
+ left: 2%;
35
+ transform: rotate(-3deg);
36
+ }
37
+ &:after {
38
+ right: 2%;
39
+ transform: rotate(3deg);
40
+ }
41
+ }
42
+ }
@@ -1,3 +1,3 @@
1
- @import "absolute-bottom-link";
2
- @import "promo-hero";
3
- @import "promo-shadow";
1
+ @import "absolute-bottom-link";
2
+ @import "promo-hero";
3
+ @import "promo-shadow";
@@ -1,63 +1,63 @@
1
- @import '@sass/abstracts/vars';
2
- @import '@sass/abstracts/mixins';
3
-
4
- .rich-text-lists,
5
- .field-featurelist {
6
- ul {
7
- box-sizing: border-box;
8
- margin: 0;
9
- padding: 0;
10
- li {
11
- @include font-size(1.3);
12
- position: relative;
13
- line-height: 21px;
14
- list-style: none;
15
- margin: 0;
16
- padding: 5px 0 5px 25px;
17
- &:before {
18
- display: inline-block;
19
- vertical-align: middle;
20
- @include font-size(1.2);
21
- font-family: 'FontAwesome', sans-serif;
22
- position: absolute;
23
- top: 3px;
24
- left: 0;
25
- color: $text-basic;
26
- text-align: center;
27
- content: '\f00c';
28
- width: 20px;
29
- margin: 0 5px 0 0;
30
- padding: 0;
31
- }
32
- }
33
- }
34
- }
35
- .field-featurelist {
36
- ul {
37
- li {
38
- &:before {
39
- display: inline-block;
40
- vertical-align: middle;
41
- @include font-size(1.2);
42
- font-family: 'FontAwesome', sans-serif;
43
- position: absolute;
44
- top: 3px;
45
- left: 0;
46
- color: $text-basic;
47
- text-align: center;
48
- content: '\f046';
49
- width: 20px;
50
- margin: 0 5px 0 0;
51
- padding: 0;
52
- }
53
- }
54
- }
55
- }
56
- .media-link {
57
- &.file-type-icon-media-link {
58
- float: left;
59
- .field-filetypeicon {
60
- text-align: center;
61
- }
62
- }
63
- }
1
+ @import '@sass/abstracts/vars';
2
+ @import '@sass/abstracts/mixins';
3
+
4
+ .rich-text-lists,
5
+ .field-featurelist {
6
+ ul {
7
+ box-sizing: border-box;
8
+ margin: 0;
9
+ padding: 0;
10
+ li {
11
+ @include font-size(1.3);
12
+ position: relative;
13
+ line-height: 21px;
14
+ list-style: none;
15
+ margin: 0;
16
+ padding: 5px 0 5px 25px;
17
+ &:before {
18
+ display: inline-block;
19
+ vertical-align: middle;
20
+ @include font-size(1.2);
21
+ font-family: 'FontAwesome', sans-serif;
22
+ position: absolute;
23
+ top: 3px;
24
+ left: 0;
25
+ color: $text-basic;
26
+ text-align: center;
27
+ content: '\f00c';
28
+ width: 20px;
29
+ margin: 0 5px 0 0;
30
+ padding: 0;
31
+ }
32
+ }
33
+ }
34
+ }
35
+ .field-featurelist {
36
+ ul {
37
+ li {
38
+ &:before {
39
+ display: inline-block;
40
+ vertical-align: middle;
41
+ @include font-size(1.2);
42
+ font-family: 'FontAwesome', sans-serif;
43
+ position: absolute;
44
+ top: 3px;
45
+ left: 0;
46
+ color: $text-basic;
47
+ text-align: center;
48
+ content: '\f046';
49
+ width: 20px;
50
+ margin: 0 5px 0 0;
51
+ padding: 0;
52
+ }
53
+ }
54
+ }
55
+ }
56
+ .media-link {
57
+ &.file-type-icon-media-link {
58
+ float: left;
59
+ .field-filetypeicon {
60
+ text-align: center;
61
+ }
62
+ }
63
+ }
@@ -1 +1 @@
1
- @import "rich-text-lists";
1
+ @import "rich-text-lists";
@@ -1,14 +1,14 @@
1
- @import '@sass/abstracts/vars';
2
-
3
- .container-gray-background {
4
- background: $bg-light-gray;
5
- }
6
- .container-clean-background {
7
- background: $bg-basic-color;
8
- }
9
- .container-dark-background {
10
- background: $bg-black-active;
11
- }
12
- .container-color-background {
13
- background: $bg-blue;
14
- }
1
+ @import '@sass/abstracts/vars';
2
+
3
+ .container-gray-background {
4
+ background: $bg-light-gray;
5
+ }
6
+ .container-clean-background {
7
+ background: $bg-basic-color;
8
+ }
9
+ .container-dark-background {
10
+ background: $bg-black-active;
11
+ }
12
+ .container-color-background {
13
+ background: $bg-blue;
14
+ }
@@ -1,10 +1,10 @@
1
- @import '@sass/abstracts/vars';
2
- .indent {
3
- margin: 0 $extralarge-margin;
4
- }
5
- .indent-top {
6
- margin-top: $middle-margin;
7
- }
8
- .indent-bottom {
9
- margin-bottom: $middle-margin;
10
- }
1
+ @import '@sass/abstracts/vars';
2
+ .indent {
3
+ margin: 0 $extralarge-margin;
4
+ }
5
+ .indent-top {
6
+ margin-top: $middle-margin;
7
+ }
8
+ .indent-bottom {
9
+ margin-bottom: $middle-margin;
10
+ }
@@ -1,2 +1,2 @@
1
- @import "background-colors";
2
- @import "indent";
1
+ @import "background-colors";
2
+ @import "indent";
@@ -1,24 +1,24 @@
1
- @import '@sass/abstracts/vars';
2
- @import '@sass/abstracts/mixins';
3
-
4
- .title {
5
- background: $title-bg;
6
- h1,
7
- .field-title {
8
- >a, >span {
9
- @include border-basic(bottom, $border-basic-color);
10
- font-size: $font-extrabig;
11
- margin-bottom: $small-margin;
12
- color: $title-color;
13
- line-height: normal;
14
- padding-bottom: 10px;
15
- display: block;
16
- text-decoration: none;
17
- cursor: pointer;
18
- &:hover {
19
- color: $title-color-active;
20
- }
21
- }
22
- }
23
- @import '@sass/variants/title';
24
- }
1
+ @import '@sass/abstracts/vars';
2
+ @import '@sass/abstracts/mixins';
3
+
4
+ .title {
5
+ background: $title-bg;
6
+ h1,
7
+ .field-title {
8
+ >a, >span {
9
+ @include border-basic(bottom, $border-basic-color);
10
+ font-size: $font-extrabig;
11
+ margin-bottom: $small-margin;
12
+ color: $title-color;
13
+ line-height: normal;
14
+ padding-bottom: 10px;
15
+ display: block;
16
+ text-decoration: none;
17
+ cursor: pointer;
18
+ &:hover {
19
+ color: $title-color-active;
20
+ }
21
+ }
22
+ }
23
+ @import '@sass/variants/title';
24
+ }
@@ -1 +1 @@
1
- @import "component-title";
1
+ @import "component-title";
@@ -1,4 +1,4 @@
1
- @import "base";
2
- @import "components";
3
- @import "variants";
4
- @import "app";
1
+ @import "base";
2
+ @import "components";
3
+ @import "variants";
4
+ @import "app";
@@ -1,6 +1,6 @@
1
- @import "link-list";
2
- @import "navigation";
3
- @import "page-content";
4
- @import "promo";
5
- @import "rich-text";
1
+ @import "link-list";
2
+ @import "navigation";
3
+ @import "page-content";
4
+ @import "promo";
5
+ @import "rich-text";
6
6
  @import "title";
@@ -1,6 +1,6 @@
1
- SITECORE_JSS_APP_NAME=
2
- SITECORE_JSS_SERVER_BUNDLE=
3
- SITECORE_EXPERIENCE_EDGE_ENDPOINT=
4
- SITECORE_API_KEY=
5
- PORT=
6
- DEFAULT_LANGUAGE=
1
+ SITECORE_JSS_APP_NAME=
2
+ SITECORE_JSS_SERVER_BUNDLE=
3
+ SITECORE_EXPERIENCE_EDGE_ENDPOINT=
4
+ SITECORE_API_KEY=
5
+ PORT=
6
+ DEFAULT_LANGUAGE=
@@ -1,51 +1,51 @@
1
- # node/express scaffolding for SSR using Sitecore Experience Edge
2
-
3
- Sitecore JSS for SSR using Experience Edge is considered experimental.
4
-
5
- [Documentation (Experience Platform)](https://doc.sitecore.com/xp/en/developers/hd/201/sitecore-headless-development/server-side-render-jss-apps-headlessly-using-a-sitecore-experience-edge-endpoint.html)
6
-
7
- > This is a sample setup that is not officially supported by Sitecore.
8
-
9
- This is a sample setup showing one of how you can configure rendering server on top of node.js and Express using Experience Edge. It performs only render of the sample app, quering layout data and dictionary data without proxying requests.
10
-
11
- ## Pre-requisites
12
-
13
- 1. Your instance needs to be configured with Headless Services Module and the API Key provisioned.
14
-
15
- ### // TODO: document how to test GraphQL queries
16
-
17
- 1. Next.js, React, Angular, and Vue samples support Experience Edge out of the box. The GraphQL components and query are compatible with the Experience Edge schema with no further changes necessary. Provide a `sc_apikey` header for authentication, this header is used for both Sitecore XM Edge schema and Sitecore Experience Edge. Refer to the GraphQL Connected demo component in the desired framework.
18
-
19
- 1. Build your JS app bundle with `jss build`.
20
-
21
- > You can use JSS sample apps which support server side rendering (JSS integrated mode) to operate with this project.
22
-
23
- 1. Deploy the build artifacts from your app (`/dist` or `/build` within the app) to the `sitecoreDistPath` set in your app's `package.json` under the SSR sample root path. Most apps use `/dist/${jssAppName}`, for example `$ssrSampleRoot/dist/${jssAppName}`.
24
-
25
- > Another way to deploy the artifacts to the SSR sample is to change the `instancePath` in your app's `scjssconfig.json` to the SSR sample root path, and then use `jss deploy files` within the app to complete the deployment to the SSR sample.
26
-
27
- ## Setup
28
-
29
- Open `config.js` and specify your application bundle and connection settings.
30
-
31
- ### Environment Variables
32
-
33
- The following environment variables can be set to configure the SSR sample instead of modifying `config.js`. You can use the `.env` file located in the root of the app or set these directly in the environment (for example, in containers).
34
-
35
- | Parameter | Description |
36
- | ----------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
37
- | `SITECORE_JSS_APP_NAME` | The JSS app's name. Used when request layout data and dictionary using graphql query and the default value of `SITECORE_JSS_SERVER_BUNDLE` if it's not set. |
38
- | `SITECORE_API_KEY` | The API key provisioned on Sitecore Experience Edge. |
39
- | `SITECORE_JSS_SERVER_BUNDLE` | Path to the JSS app's `server.bundle.js` file. |
40
- | `SITECORE_EXPERIENCE_EDGE_ENDPOINT` | Sitecore Experience Edge endpoint. |
41
- | `DEFAULT_LANGUAGE` | The JSS app's default language. Used to determine language context in case language is not specified in request URL. |
42
- | `PORT` | Optional. Port which will be used when start sample. Default can be seen in [config.js](./config.js). |
43
-
44
- ## Build & run
45
-
46
- 1. Run `npm install`
47
-
48
- 1. Run `npm run start`
49
-
50
- You should be able to see the following message:
51
- `server listening on port 3000!`.
1
+ # node/express scaffolding for SSR using Sitecore Experience Edge
2
+
3
+ Sitecore JSS for SSR using Experience Edge is considered experimental.
4
+
5
+ [Documentation (Experience Platform)](https://doc.sitecore.com/xp/en/developers/hd/201/sitecore-headless-development/server-side-render-jss-apps-headlessly-using-a-sitecore-experience-edge-endpoint.html)
6
+
7
+ > This is a sample setup that is not officially supported by Sitecore.
8
+
9
+ This is a sample setup showing one of how you can configure rendering server on top of node.js and Express using Experience Edge. It performs only render of the sample app, quering layout data and dictionary data without proxying requests.
10
+
11
+ ## Pre-requisites
12
+
13
+ 1. Your instance needs to be configured with Headless Services Module and the API Key provisioned.
14
+
15
+ ### // TODO: document how to test GraphQL queries
16
+
17
+ 1. Next.js, React, Angular, and Vue samples support Experience Edge out of the box. The GraphQL components and query are compatible with the Experience Edge schema with no further changes necessary. Provide a `sc_apikey` header for authentication, this header is used for both Sitecore XM Edge schema and Sitecore Experience Edge. Refer to the GraphQL Connected demo component in the desired framework.
18
+
19
+ 1. Build your JS app bundle with `jss build`.
20
+
21
+ > You can use JSS sample apps which support server side rendering (JSS integrated mode) to operate with this project.
22
+
23
+ 1. Deploy the build artifacts from your app (`/dist` or `/build` within the app) to the `sitecoreDistPath` set in your app's `package.json` under the SSR sample root path. Most apps use `/dist/${jssAppName}`, for example `$ssrSampleRoot/dist/${jssAppName}`.
24
+
25
+ > Another way to deploy the artifacts to the SSR sample is to change the `instancePath` in your app's `scjssconfig.json` to the SSR sample root path, and then use `jss deploy files` within the app to complete the deployment to the SSR sample.
26
+
27
+ ## Setup
28
+
29
+ Open `config.js` and specify your application bundle and connection settings.
30
+
31
+ ### Environment Variables
32
+
33
+ The following environment variables can be set to configure the SSR sample instead of modifying `config.js`. You can use the `.env` file located in the root of the app or set these directly in the environment (for example, in containers).
34
+
35
+ | Parameter | Description |
36
+ | ----------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
37
+ | `SITECORE_JSS_APP_NAME` | The JSS app's name. Used when request layout data and dictionary using graphql query and the default value of `SITECORE_JSS_SERVER_BUNDLE` if it's not set. |
38
+ | `SITECORE_API_KEY` | The API key provisioned on Sitecore Experience Edge. |
39
+ | `SITECORE_JSS_SERVER_BUNDLE` | Path to the JSS app's `server.bundle.js` file. |
40
+ | `SITECORE_EXPERIENCE_EDGE_ENDPOINT` | Sitecore Experience Edge endpoint. |
41
+ | `DEFAULT_LANGUAGE` | The JSS app's default language. Used to determine language context in case language is not specified in request URL. |
42
+ | `PORT` | Optional. Port which will be used when start sample. Default can be seen in [config.js](./config.js). |
43
+
44
+ ## Build & run
45
+
46
+ 1. Run `npm install`
47
+
48
+ 1. Run `npm run start`
49
+
50
+ You should be able to see the following message:
51
+ `server listening on port 3000!`.