-
Notifications
You must be signed in to change notification settings - Fork 48
/
justfile
53 lines (41 loc) · 1.52 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
[doc('Build all JS/TS files')]
build-js:
bazel build -- $(bazel query "kind(npm_package, //...)" --output label 2>/dev/null | tr '\n' ' ')
[doc('Build all core JS/TS files')]
build-core:
bazel build //core/...
[doc('Test targets in the project')]
test-all:
bazel test //...
[doc('Test all JS/TS files')]
test-js:
bazel test -- $(bazel query "kind(js_test, //...)" --output label 2>/dev/null | tr '\n' ' ')
[doc('Test all core JS/TS files')]
test-core:
bazel test //core/...
[doc('Lint all JS/TS files')]
lint-js:
bazel test -- $(bazel query "kind(js_test, //...) intersect attr(name, 'eslint$', //...)" --output label 2>/dev/null | tr '\n' ' ')
[doc('Run a dev server of the main docs page')]
start-docs:
bazel run //docs/site:start
[doc('Run a dev server of storybook')]
start-storybook:
bazel run //docs/storybook:start
[doc('Install all generated artifacts into the system .m2 repository')]
mvn-install:
#!/usr/bin/env bash
set -u -e -o pipefail
# Find all the maven packages in the repo
readonly DEPLOY_LABELS=$(bazel query --output=label 'kind("maven_publish rule", //...) - attr("tags", "\[.*do-not-publish.*\]", //...)')
for pkg in $DEPLOY_LABELS ; do
bazel run "$pkg" --define=maven_repo="file://$HOME/.m2/repository"
done
alias maven-install := mvn-install
[doc('Generate and open the xcodeproj for Player')]
dev-ios:
bazel run //ios:xcodeproj
open -a Xcode ios/PlayerUI.xcodeproj/
[doc('Build and run the iOS demo app in a simulator')]
start-ios-demo:
bazel run //ios/demo:PlayerUIDemo