Skip to content

Instantly share code, notes, and snippets.

@manifestinteractive
Created November 6, 2022 09:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save manifestinteractive/efa3f8ea1d132682f81a73337b5685ef to your computer and use it in GitHub Desktop.
Save manifestinteractive/efa3f8ea1d132682f81a73337b5685ef to your computer and use it in GitHub Desktop.
Initialize New Git Repo with Native SFCC Cartridges used on `RedArchGlobal` Demo Site
#!/usr/bin/env bash
#
# description: Initialize New Git Repo with Native SFCC Cartridges used on `RedArchGlobal` Demo Site
# author: Peter Schmalfeldt <me@peterschmalfeldt.com>
# Base Folder for SFRA Project
BASE=sfccdevops_sfra
# SFCC GitHub Remote Origin
SFCC=git@github.com:SalesforceCommerceCloud
# Download Native SFCC Cartridges for SFRA Project
git submodule add $SFCC/lib_productlist.git $BASE/lib_productlist
git submodule add $SFCC/plugin_cartridge_merge.git $BASE/plugin_cartridge_merge
git submodule add $SFCC/plugin_datadownload.git $BASE/plugin_datadownload
git submodule add $SFCC/plugin_giftregistry.git $BASE/plugin_giftregistry
git submodule add $SFCC/plugin_instorepickup.git $BASE/plugin_instorepickup
git submodule add $SFCC/plugin_productcompare.git $BASE/plugin_productcompare
git submodule add $SFCC/plugin_sitemap.git $BASE/plugin_sitemap
git submodule add $SFCC/plugin_wishlists.git $BASE/plugin_wishlists
git submodule add $SFCC/plugin-applepay.git $BASE/plugin-applepay
git submodule add $SFCC/sfra-webpack-builder.git $BASE/sfra-webpack-builder
git submodule add $SFCC/storefront-reference-architecture.git $BASE/storefront-reference-architecture
@manifestinteractive
Copy link
Author

Demo Sandbox

ℹ️ This script was made for my personal demo-sandbox repo so I could open source that sandbox code without publishing any private repos from the SalesforceCommerceCloud GitHub Organization.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment