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.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
Move executable files into bin directory
Damian Legawiecbfc90a9f09c5
diff --git a/.circleci/config.yml b/.circleci/config.ymlindex 6ca90166e1..ae8874983f 100644--- a/.circleci/config.yml+++ b/.circleci/config.yml@@ -27,7 +27,7 @@ run_tests: &run_tests- spree-bundle-v7-{{ checksum ".ruby-version" }}- run:name: Run rspec in parallel- command: BUNDLE_GEMFILE=../Gemfile ./build-ci.rb test+ command: BUNDLE_GEMFILE=../Gemfile ./bin/build-ci.rb test- store_artifacts:path: /tmp/test-artifactsdestination: test-artifacts@@ -48,7 +48,7 @@ run_tests_3_0: &run_tests_3_0- spree-bundle-v7-ruby-3-0- run:name: Run rspec in parallel- command: BUNDLE_GEMFILE=../Gemfile ./build-ci.rb test+ command: BUNDLE_GEMFILE=../Gemfile ./bin/build-ci.rb test- store_artifacts:path: /tmp/test-artifactsdestination: test-artifacts@@ -71,7 +71,7 @@ jobs:name: Bundle Installcommand: |bundle check || bundle install- ./build-ci.rb install+ ./bin/build-ci.rb install- save_cache:key: spree-bundle-v7-{{ checksum ".ruby-version" }}-{{ .Branch }}-{{ checksum "Gemfile.lock" }}paths:@@ -89,7 +89,7 @@ jobs:name: Bundle Installcommand: |bundle check || bundle install- ./build-ci.rb install+ ./bin/build-ci.rb install- save_cache:key: spree-bundle-v7-ruby-3-0-{{ .Branch }}-{{ checksum "Gemfile.lock" }}paths:@@ -131,10 +131,10 @@ jobs:name: Ensure Bundle Installcommand: |bundle install- ./build-ci.rb install+ ./bin/build-ci.rb install- run:name: Run rspec in parallel- command: BUNDLE_GEMFILE=../Gemfile ./build-ci.rb test+ command: BUNDLE_GEMFILE=../Gemfile ./bin/build-ci.rb test- store_artifacts:path: /tmp/test-artifactsdestination: test-artifacts@@ -173,7 +173,7 @@ jobs:- spree-bundle-v7-ruby-3-0- run:name: Run rspec in parallel- command: BUNDLE_GEMFILE=../Gemfile ./build-ci.rb test+ command: BUNDLE_GEMFILE=../Gemfile ./bin/build-ci.rb test- store_artifacts:path: /tmp/test-artifactsdestination: test-artifactsdiff --git a/.gitignore b/.gitignoreindex 091b9d3bf6..24fb51eddf 100644--- a/.gitignore+++ b/.gitignore@@ -11,7 +11,6 @@.loadpath.project.vscode-bin/*public/dispatch.cgipublic/dispatch.fcgipublic/dispatch.rbdiff --git a/Rakefile b/Rakefileindex 6f379944a8..8e5242ea04 100644--- a/Rakefile+++ b/Rakefile@@ -93,6 +93,6 @@ enddesc "Creates a sandbox application for simulating the Spree code in a deployed Rails app"task :sandbox doBundler.with_clean_env do- exec("lib/sandbox.sh")+ exec("bin/sandbox.sh")endenddiff --git a/build-ci.rb b/bin/build-ci.rbsimilarity index 100%rename from build-ci.rbrename to bin/build-ci.rbdiff --git a/build.sh b/bin/build.shsimilarity index 95%rename from build.shrename to bin/build.shindex 94b6ffde70..d2e60164d5 100755--- a/build.sh+++ b/bin/build.sh@@ -14,7 +14,7 @@ prepare_app(){echo "Preparing test app..."BUNDLE_GEMFILE=../Gemfile bundle exec rake test_app}-# Target postgres. Override with: `DB=sqlite bash build.sh`+# Target postgres. Override with: `DB=sqlite bash bin/build.sh`export DB=${DB:-postgres}# Spree defaultsdiff --git a/lib/sandbox.sh b/bin/sandbox.shsimilarity index 100%rename from lib/sandbox.shrename to bin/sandbox.shdiff --git a/guides/src/content/developer/tutorials/testing.md b/guides/src/content/developer/tutorials/testing.mdindex 48d63e8e57..3b354e6c9f 100644--- a/guides/src/content/developer/tutorials/testing.md+++ b/guides/src/content/developer/tutorials/testing.md@@ -34,7 +34,7 @@ bundle exec rspec specWe also set up a build script that mimics what our build server performs. You can run it from the root of the Spree project like this:```bash-$ bash build.sh+$ bin/build.sh```If you wish to run spec for a single file then you can do so like this: