-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJustfile
More file actions
34 lines (26 loc) · 713 Bytes
/
Justfile
File metadata and controls
34 lines (26 loc) · 713 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# List available commands
default:
just --list
# Run all checks from CI
ci: graphql-schema-dump spellcheck format rubocop test
# Run the spellchecker
spellcheck:
cspell '**/*'
# Format files with Prettier
format:
bundle exec rbprettier --write '**/*.{graphql,rb,json,yml,md}'
# Dump the GraphQL schema
graphql-schema-dump:
rake graphql:schema:dump && bundle exec rbprettier --write '**/*.{graphql,rb,json,yml,md}'
# Lint the Ruby files with Rubocop
rubocop:
bundle exec rubocop
# Lint and autofix the Ruby files with Rubocop
rubocop-fix:
bundle exec rubocop -a
# Run the Ruby solargraph typechecker
typecheck:
bundle exec solargraph typecheck
# Run the RSpec tests
test:
bundle exec rspec