Skip to content

Commit

Permalink
add scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
chiefpansancolt committed Apr 8, 2023
1 parent 0f87eca commit 970e2b4
Show file tree
Hide file tree
Showing 3 changed files with 77 additions and 3 deletions.
38 changes: 38 additions & 0 deletions bin/lint
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#!/usr/bin/env bash

echo "== Starting Linting =="

echo ""
echo "== Linting Rubocop =="
yarn lint:ruby

echo ""
echo "== Linting ERB =="
yarn lint:erb

echo ""
echo "== Linting Markdown =="
yarn lint:markdown

echo ""
echo "== Linting Javascript =="
yarn lint:javascript

echo ""
echo "== Formatting with Prettier =="
if ! yarn format; then
echo ""
echo "== Files found needing formatting =="
echo "== Initialting Fixes =="
yarn format:fix
fi

echo ""
echo "== Linting Complete for Simplecov Tailwind =="

echo ""
echo "== Starting Lint for Documentation =="

echo ""
cd documentation
yarn lint
23 changes: 20 additions & 3 deletions bin/setup
Original file line number Diff line number Diff line change
@@ -1,7 +1,24 @@
#!/usr/bin/env bash
set -euo pipefail
IFS=$'\n\t'
set -vx

command -v ruby >/dev/null 2>&1 || { echo >&2 "ruby is not installed. Aborting."; exit 1; }
command -v node >/dev/null 2>&1 || { echo >&2 "node is not installed. Aborting."; exit 1; }
command -v yarn >/dev/null 2>&1 || { echo >&2 "yarn is not installed. Aborting."; exit 1; }

echo "== Getting Setup =="

echo ""
echo "== Running Yarn Install =="
yarn install

echo ""
echo "== Running Bundle Install =="
bundle install

echo ""
echo "== Running Documentation Install =="
cd documentation
yarn install

echo ""
echo "== Setup Finished =="
echo "Enjoy Coding and thank you for your contribution!"
19 changes: 19 additions & 0 deletions bin/upgrade
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/env bash

echo "== Upgrade Starting =="

echo ""
echo "== Running Yarn Upgrade =="
yarn upgrade --latest

echo ""
echo "== Running Bundle Upgrade =="
bundle update

echo ""
echo "== Running Documentation Upgrade =="
cd docs
yarn upgrade --latest

echo ""
echo "== Upgrade Finished =="

0 comments on commit 970e2b4

Please sign in to comment.