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.

Move executable files into bin directory

Damian Legawiecbfc90a9f09c5
diff --git a/.circleci/config.yml b/.circleci/config.yml
index 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-artifacts
destination: 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-artifacts
destination: test-artifacts
@@ -71,7 +71,7 @@ jobs:
name: Bundle Install
command: |
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 Install
command: |
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 Install
command: |
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-artifacts
destination: 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-artifacts
destination: test-artifacts
diff --git a/.gitignore b/.gitignore
index 091b9d3bf6..24fb51eddf 100644
--- a/.gitignore
+++ b/.gitignore
@@ -11,7 +11,6 @@
.loadpath
.project
.vscode
-bin/*
public/dispatch.cgi
public/dispatch.fcgi
public/dispatch.rb
diff --git a/Rakefile b/Rakefile
index 6f379944a8..8e5242ea04 100644
--- a/Rakefile
+++ b/Rakefile
@@ -93,6 +93,6 @@ end
desc "Creates a sandbox application for simulating the Spree code in a deployed Rails app"
task :sandbox do
Bundler.with_clean_env do
- exec("lib/sandbox.sh")
+ exec("bin/sandbox.sh")
end
end
diff --git a/build-ci.rb b/bin/build-ci.rb
similarity index 100%
rename from build-ci.rb
rename to bin/build-ci.rb
diff --git a/build.sh b/bin/build.sh
similarity index 95%
rename from build.sh
rename to bin/build.sh
index 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 defaults
diff --git a/lib/sandbox.sh b/bin/sandbox.sh
similarity index 100%
rename from lib/sandbox.sh
rename to bin/sandbox.sh
diff --git a/guides/src/content/developer/tutorials/testing.md b/guides/src/content/developer/tutorials/testing.md
index 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 spec
We 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: