Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Add git submodules of all Spree gems to make it easier to develop it … (#12027)

Damian Legawiecbafc766fd2af
diff --git a/.gitmodules b/.gitmodules
new file mode 100644
index 0000000000..897b6d4185
--- /dev/null
+++ b/.gitmodules
@@ -0,0 +1,12 @@
+[submodule "backend"]
+ path = backend
+ url = https://github.com/spree/spree_backend
+[submodule "frontend"]
+ path = frontend
+ url = https://github.com/spree/spree_rails_frontend
+[submodule "auth_devise"]
+ path = auth_devise
+ url = https://github.com/spree/spree_auth_devise
+[submodule "gateway"]
+ path = gateway
+ url = https://github.com/spree/spree_gateway
diff --git a/auth_devise b/auth_devise
new file mode 160000
index 0000000000..f5af568f2e
--- /dev/null
+++ b/auth_devise
@@ -0,0 +1 @@
+Subproject commit f5af568f2edaf65daaefef2888ca770170fdee09
diff --git a/backend b/backend
new file mode 160000
index 0000000000..c0003210c2
--- /dev/null
+++ b/backend
@@ -0,0 +1 @@
+Subproject commit c0003210c20d9960fe2c00ef1f1a5b6da6ae2fbc
diff --git a/bin/sandbox.sh b/bin/sandbox.sh
index 9feb93135c..94a828f791 100755
--- a/bin/sandbox.sh
+++ b/bin/sandbox.sh
@@ -34,38 +34,16 @@ fi
cd ./sandbox
-if [ "$SPREE_AUTH_DEVISE_PATH" != "" ]; then
- SPREE_AUTH_DEVISE_GEM="gem 'spree_auth_devise', path: '$SPREE_AUTH_DEVISE_PATH'"
-else
- SPREE_AUTH_DEVISE_GEM="gem 'spree_auth_devise', github: 'spree/spree_auth_devise', branch: 'main'"
-fi
-
-if [ "$SPREE_GATEWAY_PATH" != "" ]; then
- SPREE_GATEWAY_GEM="gem 'spree_gateway', path: '$SPREE_GATEWAY_PATH'"
-else
- SPREE_GATEWAY_GEM="gem 'spree_gateway', github: 'spree/spree_gateway', branch: 'main'"
-fi
-
-if [ "$SPREE_DASHBOARD_PATH" != "" ]; then
- SPREE_BACKEND_GEM="gem 'spree_backend', path: '$SPREE_DASHBOARD_PATH'"
-else
- SPREE_BACKEND_GEM="gem 'spree_backend', github: 'spree/spree_backend', branch: 'main'"
-fi
-
-if [ "$SPREE_STOREFRONT_PATH" != "" ]; then
- SPREE_STOREFRONT_PATH="gem 'spree_frontend', path: '$SPREE_STOREFRONT_PATH'"
-else
- SPREE_STOREFRONT_PATH="gem 'spree_frontend', github: 'spree/spree_rails_frontend', branch: 'main'"
-fi
+git submodule update --init --recursive
cat <<RUBY >> Gemfile
gem 'spree', path: '..'
gem 'spree_emails', path: '../emails'
gem 'spree_sample', path: '../sample'
-$SPREE_BACKEND_GEM
-$SPREE_GATEWAY_GEM
-$SPREE_STOREFRONT_PATH
-$SPREE_AUTH_DEVISE_GEM
+gem 'spree_backend', path: '../backend'
+gem 'spree_frontend', path: '../frontend'
+gem 'spree_auth_devise', path: '../auth_devise'
+gem 'spree_gateway', path: '../gateway'
gem 'spree_i18n', github: 'spree-contrib/spree_i18n', branch: 'main'
group :test, :development do
diff --git a/docs/developer/contributing/developing-spree.mdx b/docs/developer/contributing/developing-spree.mdx
index 3db8fc8565..89564fa393 100644
--- a/docs/developer/contributing/developing-spree.mdx
+++ b/docs/developer/contributing/developing-spree.mdx
@@ -64,19 +64,6 @@ By default, Sandbox uses the **SQLite** database. But you can switch to **Postgr
DB=postgres bin/sandbox.sh
```
-When developing [Spree Admin Dashboard](https://github.com/spree/spree\_backend) you can also pass `SPREE_DASHBOARD_PATH`
-
-```bash
-SPREE_DASHBOARD_PATH=../../spree_backend bin/sandbox.sh
-```
-
-Start the server
-
-```bash
-cd sandbox
-bin/rails s
-```
-
### Performance in development mode
You may notice that your Spree store runs slower in development environment. This is caused by disabled caching and automatic reloading of code after each change.
diff --git a/frontend b/frontend
new file mode 160000
index 0000000000..6f6a77e66d
--- /dev/null
+++ b/frontend
@@ -0,0 +1 @@
+Subproject commit 6f6a77e66d1d51fa568e02cce968fd307ffed21a
diff --git a/gateway b/gateway
new file mode 160000
index 0000000000..f2ef7ae0b0
--- /dev/null
+++ b/gateway
@@ -0,0 +1 @@
+Subproject commit f2ef7ae0b0fb69ed566524ba5bcd844f0eec13c7