-
Notifications
You must be signed in to change notification settings - Fork 0
/
Justfile
85 lines (65 loc) · 1.7 KB
/
Justfile
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# List available commands
default:
just --list
# Run iOS and Android builds
build:
yarn build:android
yarn build:ios
# Run all checks from CI
ci: spellcheck format lint typecheck test-coverage
# Format files with Prettier
format:
yarn format
# Run the GraphQL code generation
graphql-codegen:
yarn graphql:codegen
# Run the GraphQL validation (check for the usage of deprecated fields)
graphql-validate:
yarn graphql:validate
# Lint the JS/TS files with ESLint
lint:
yarn lint
# Auto-fix ESLint errors
lint-fix:
yarn lint --fix
# Open a deep link in the iOS simulator (url should be like com.peak-tracker://...)
open-deep-link url:
xcrun simctl openurl booted {{url}}
# Install iOS Cocoa Pods
pod-install:
(cd ios && pod install)
# Run the spellchecker
spellcheck:
yarn spellcheck
# List all unknown words to add them to .cspell.dictionary.txt
spellcheck-list:
yarn spellcheck:list
# Start Metro
start:
# NOTE: we can't do `yarn ios` because then dotenv won't work
# See https://github.com/goatandsheep/react-native-dotenv/issues/393#issuecomment-1380913100
yarn start
# Run this command when new *.stories.tsx files have been created
storybook-generate:
yarn storybook:generate
# Run the unit and integration tests with Jest
test:
yarn test
# Run Jest with coverage
test-coverage:
yarn test:coverage
# Run Jest with coverage and open the coverage report
test-coverage-open:
yarn test:coverage:open
# Run the tests in watch mode
test-watch:
yarn test:watch
# Typecheck the TS files
typecheck:
yarn typecheck
# Typecheck the TS files in watch mode
typecheck-watch:
yarn typecheck:watch
# Run this if you have watchman recrawl issues
watchman-reset:
watchman shutdown-server