Files
redux-scraper/justfile
2025-07-22 04:54:12 +00:00

40 lines
930 B
Makefile

default:
@just --list
[private]
changed-ruby-files:
@git diff --name-only | \
(grep -v 'db/schema.rb' || true) | \
(grep -E '(\.(rb|rake|erb)|Rakefile)$' || true)
format-changed:
just changed-ruby-files | xargs -I{} bash -c "stree format {} > {}.tmp && mv {}.tmp {}"
format-all:
find . -name '*.rb' -type f -exec sh -c 'stree format "$1" > "$1.tmp" && mv "$1.tmp" "$1"' sh {} \;
test:
bundle exec srb tc
rm -rf tmp/blob_files_test/thumbnails
RAILS_ENV=test bin/rspec ./spec/lib/has_bulk_enqueue_jobs_spec.rb
RAILS_ENV=test bin/parallel_rspec -n4 --exclude-pattern "spec/lib/has_bulk_enqueue_jobs_spec.rb"
tc *args:
bundle exec srb tc {{args}}
user_scripts:
yarn build:user-scripts
dev:
exo run Procfile.dev
dev-console:
RAILS_ENV=development bin/rails console
staging:
exo run Procfile.staging
staging-console:
RAILS_ENV=staging bin/rails console